From ea4f5113424abfaba1a1a71118f84ee9c04c291f Mon Sep 17 00:00:00 2001 From: probonopd Date: Sun, 19 Feb 2017 14:21:23 +0100 Subject: [PATCH] Reorganize tests --- tests/tests.sh | 49 ++++++++++++++++++++++++++++++++++--------------- 1 file changed, 34 insertions(+), 15 deletions(-) diff --git a/tests/tests.sh b/tests/tests.sh index 828d743..4e2e7c3 100644 --- a/tests/tests.sh +++ b/tests/tests.sh @@ -1,11 +1,5 @@ #!/bin/bash -# Workaround for: -# https://github.com/probonopd/linuxdeployqt/issues/65 -unset QT_PLUGIN_PATH -unset LD_LIBRARY_PATH -unset QTDIR - ############################################################################### # Build the sample Qt Widgets Application that comes with Qt Creator ############################################################################### @@ -18,6 +12,38 @@ mkdir build cd build/ qmake ../QtWidgetsApplication.pro make -j2 + +cd ../../../ + +############################################################################### +# Build the sample Qt Quick Controls 2 Application that comes with Qt Creator +############################################################################### + +cd tests/QtQuickControls2Application/ +if [ -e build/ ] ; then + rm -rf build/ +fi +mkdir build +cd build/ +qmake ../QtQuickControls2Application.pro +make -j2 + +cd ../../../ + +############################################################################### +# Workaround for: +# https://github.com/probonopd/linuxdeployqt/issues/65 +############################################################################### + +unset QT_PLUGIN_PATH +unset LD_LIBRARY_PATH +unset QTDIR + +############################################################################### +# Test the sample Qt Widgets Application that comes with Qt Creator +############################################################################### + +cd tests/QtWidgetsApplication/build/ rm *.o *.cpp *.h Makefile mkdir -p nonfhs fhs/usr/bin @@ -40,17 +66,10 @@ killall QtWidgetsApplication && echo "SUCCESS" cd ../../../ ############################################################################### -# Build the sample Qt Quick Controls 2 Application that comes with Qt Creator +# Test the sample Qt Quick Controls 2 Application that comes with Qt Creator ############################################################################### -cd tests/QtQuickControls2Application/ -if [ -e build/ ] ; then - rm -rf build/ -fi -mkdir build -cd build/ -qmake ../QtQuickControls2Application.pro -make -j2 +cd tests/QtQuickControls2Application/build/ rm *.o *.cpp *.h Makefile mkdir -p nonfhs fhs/usr/bin