]> rtime.felk.cvut.cz Git - omk.git/blobdiff - tests/qt/runtest
Merge branch 'master' into devel
[omk.git] / tests / qt / runtest
index bfd66d9f0a1022d21862d70a10e6f616574cee9c..96bf360b94951257530e71af09d2a1ec7c545644 100755 (executable)
@@ -1,8 +1,26 @@
 #!/bin/sh
 
-. $OMK_TESTSROOT/functions.sh
+. ../functions.sh
 
 touch config.omk-default
 QTDIR=/usr/share/qt4
+export QTDIR
 [ -d $QTDIR ] || canttest "Can't find QT4 instalation"
-make QTDIR=$QTDIR
+
+cp Makefile1.omk Makefile.omk
+make || error "QT compilation"
+[ -x _compiled/bin/qtapp ] || error "QT application was not compiled"
+
+make clean || error "QT clean 1"
+
+cp Makefile2.omk Makefile.omk
+make || error "QT Compilation in subdir"
+[ -x _compiled/bin/qtapp ] || error "QT application was not compiled"
+
+make clean || error "QT clean 2"
+
+cp Makefile3.omk Makefile.omk
+make || error "QT_PROJECT test "
+[ -x _compiled/bin/qtapp ] || error "QT application was not compiled"
+
+make clean || error "QT clean 3"