]> rtime.felk.cvut.cz Git - omk.git/commitdiff
Fix a few tests to work correctly with rtems rules
authorMichal Sojka <sojkam1@fel.cvut.cz>
Sat, 12 Mar 2011 15:31:17 +0000 (16:31 +0100)
committerMichal Sojka <sojkam1@fel.cvut.cz>
Sat, 12 Mar 2011 16:07:40 +0000 (17:07 +0100)
tests/programs-cflags
tests/programs-cflags-cmdline
tests/programs-defs

index ecd2522ca8367fc2c8f4246a30fc9f61f00bbc63..90960ec9e96a17e67ccdf7efe1678945817e2580 100755 (executable)
@@ -6,5 +6,7 @@ touch config.omk-default
 echo "CFLAGS=-DNUMBER=123" > config.omk
 needs_valid_CC
 make||error "Can't compile"
-[ $OMK_RULES != linux ] && canttest "Should work only with Linux rules"
-_compiled/bin/test|grep 123 || error "Custom CFLAGS didn't influence the output"
+if [ $OMK_RULES = linux ]; then
+    # The following should work only with Linux rules
+    _compiled/bin/test|grep 123 || error "Custom CFLAGS didn't influence the output"
+fi
index 3214ecf321de2f25f3ea8921af4a46aeb7dfa08d..ddeda49fc8bb9488dee71bac2d30474fbc9ad925 100755 (executable)
@@ -5,5 +5,7 @@
 touch config.omk-default
 needs_valid_CC
 make CFLAGS="-DNONSENSE=abc -DNUMBER=123"||error "Can't compile"
-[ $OMK_RULES != linux ] && canttest "Should work only with Linux rules"
-_compiled/bin/test|grep 123 || error "Custom CFLAGS didn't influence the output"
+if [ $OMK_RULES = linux ]; then
+    # The following should work only with Linux rules
+    _compiled/bin/test|grep 123 || error "Custom CFLAGS didn't influence the output"
+fi
index cb28daaed469f3715b858c1c0fef155bd80d1f8f..3da2882abeefbdb1980e3a66f3d36aff4dbd4460 100755 (executable)
@@ -6,5 +6,7 @@ touch config.omk-default
 echo "DEFS=-DNUMBER=123" > config.omk
 needs_valid_CC
 make||error "Can't compile"
-[ $OMK_RULES != linux ] && canttest "Should work only with Linux rules"
-_compiled/bin/test|grep 123 || error "Variable DEFS didn't influence the output"
+if [ $OMK_RULES = linux ]; then
+    # The following should work only with Linux rules
+    _compiled/bin/test|grep 123 || error "Variable DEFS didn't influence the output"
+fi