4 # important to allow for checking the exit code of timeout
8 ARCH
=${ARCH:-$(uname -m)}
11 echo "Error: command failed" >&2
15 # first of all, try to run appimagetool
16 out
/appimagetool-
"$ARCH".AppImage
&& error
# should fail due to missing parameter
17 out
/appimagetool-
"$ARCH".AppImage
-h || error
# should not fail
19 # print version and update information
20 out
/appimagetool-
"$ARCH".AppImage
--version || error
# should not fail
21 out
/appimagetool-
"$ARCH".AppImage
--appimage-version || error
# should not fail
22 out
/appimagetool-
"$ARCH".AppImage
--appimage-updateinformation || error
# should not fail
25 echo "Tests successful!" >&2