]> rtime.felk.cvut.cz Git - omk.git/blobdiff - tests/qt/runtest
Updated QT rules
[omk.git] / tests / qt / runtest
index 845edc1eeb350e6ce5e9aba815328b0955a1e28c..4961fd3cd849466702dc0995a68aaa7bd4c6554f 100755 (executable)
@@ -1,8 +1,22 @@
 #!/bin/sh
 
-source ../functions.sh
+. ../functions.sh
+
+trap 'rm -f qtapp/Makefile' EXIT
 
 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"
+
+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"