Generate zsync file when running on GitLab CI (#804)
[appimagekit/gsi.git] / travis / test-appimage.sh
blob9cc0a9f236600735c882a6c89727cd5e1b69c18c
1 #! /bin/bash
3 set -x
4 # important to allow for checking the exit code of timeout
5 set +e
7 TIMEOUT=3
8 ARCH=${ARCH:-$(uname -m)}
10 error() {
11 echo "Error: command failed" >&2
12 exit 1
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
24 echo "" >&2
25 echo "Tests successful!" >&2