From c933d60c08855ce84e25b4a51dca589aeaf0721b Mon Sep 17 00:00:00 2001 From: probonopd Date: Sun, 19 Feb 2017 12:21:38 +0100 Subject: [PATCH] Add tests, see #77 --- .travis.yml | 1 + tests/tests.sh | 24 ++++++++++++++++++++++++ 2 files changed, 25 insertions(+) create mode 100644 tests/tests.sh diff --git a/.travis.yml b/.travis.yml index e3c8e11..eedbf7c 100644 --- a/.travis.yml +++ b/.travis.yml @@ -35,6 +35,7 @@ script: - ./linuxdeployqt/linuxdeployqt linuxdeployqt.AppDir/usr/bin/linuxdeployqt -verbose=3 -appimage - ls -lh - find *.AppDir + - bash -e tests/tests.sh - wget -c https://github.com/probonopd/uploadtool/raw/master/upload.sh - bash ./upload.sh ./linuxdeployqt-*.AppImage diff --git a/tests/tests.sh b/tests/tests.sh new file mode 100644 index 0000000..ac90328 --- /dev/null +++ b/tests/tests.sh @@ -0,0 +1,24 @@ +#!/bin/bash + +# Build the sample Qt Widgets Application that comes with Qt Creator + +cd tests/QtWidgetsApplication/ +if [ -e build/ ] ; then + rm -rf build/ +fi +mkdir build +cd build/ +qmake ../QtWidgetsApplication.pro +make -j2 +rm *.o *.cpp *.h Makefile +mkdir -p nonfhs fhs/usr/bin + +cp QtWidgetsApplication nonfhs/ +../../../linuxdeployqt-*-x86_64.AppImage nonfhs/QtWidgetsApplication +find nonfhs/ + +cp QtWidgetsApplication fhs/usr/bin/ +../../../linuxdeployqt-*-x86_64.AppImage fhs/usr/bin/QtWidgetsApplication +find fhs/ + +cd ../../../