+name_desc_test() {
+ local name=$1
+ local desc=$2
+ if ! wimcapture dir dir.wim "$name" "$desc"; then
+ error "Failed to capture WIM with specified name and description"
+ fi
+ if ! test "`wiminfo dir.wim | grep Name | awk '{print $2}'`" = "$name"; then
+ error "WIM name not set correctly"
+ fi
+ if ! test "`wiminfo dir.wim | grep Description | awk '{print $2}'`" = "$desc"; then
+ error "WIM description not set correctly"
+ fi
+}
+