]> wimlib.net Git - wimlib/blobdiff - tests/tests-common.sh
wimlib.h: remove unused RESUME flag
[wimlib] / tests / tests-common.sh
index be6d882a94cca6c027dc18409bc6ee3f807bd545..5ebd2b1389d50b969b72c2c8bb28abe0d1e8baf2 100644 (file)
@@ -31,24 +31,94 @@ get_file_size()
        fi
 }
 
-imagex()
+wimlib_imagex()
 {
-       echo "imagex $@"
-       if [[ $1 == info || $1 == mountrw ]]; then
-               ../../wimlib-imagex "$@"
-       else
-               ../../wimlib-imagex "$@" > /dev/null
-       fi
+       ../../wimlib-imagex "$@"
 }
 
-imagex_raw()
+wimappend()
 {
-       ../../wimlib-imagex "$@"
+       wimlib_imagex append "$@" > /dev/null
+}
+
+wimapply()
+{
+       wimlib_imagex apply "$@" > /dev/null
+}
+
+wimcapture()
+{
+       wimlib_imagex capture "$@" > /dev/null
+}
+
+wimdelete()
+{
+       wimlib_imagex delete "$@" > /dev/null
+}
+
+wimdir()
+{
+       wimlib_imagex dir "$@"
+}
+
+wimexport()
+{
+       wimlib_imagex export "$@" > /dev/null
+}
+
+wimextract()
+{
+       wimlib_imagex extract "$@" > /dev/null
+}
+
+wiminfo()
+{
+       wimlib_imagex info "$@"
+}
+
+wimjoin()
+{
+       wimlib_imagex join "$@" > /dev/null
+}
+
+wimmount()
+{
+       wimlib_imagex mount "$@" > /dev/null
+}
+
+wimmountrw()
+{
+       wimlib_imagex mountrw "$@" > /dev/null
+}
+
+wimoptimize()
+{
+       wimlib_imagex optimize "$@" > /dev/null
+}
+
+wimsplit()
+{
+       wimlib_imagex split "$@" > /dev/null
+}
+
+wimunmount()
+{
+       wimlib_imagex unmount "$@" > /dev/null
+}
+
+wimupdate()
+{
+       wimlib_imagex update "$@" > /dev/null
+}
+
+wimverify()
+{
+       wimlib_imagex verify "$@" > /dev/null
 }
 
 wim_ctype()
 {
-       imagex info $1 | grep Compression | awk '{print $2}'
+       wiminfo $1 | grep Compression | awk '{print $2}'
 }
 
 default_cleanup()