]> rtime.felk.cvut.cz Git - omk.git/blobdiff - tests/programs-cflags-cmdline
Document AM_*FLAGS and relation to *FLAGS
[omk.git] / tests / programs-cflags-cmdline
index cefe77c6418a541129aeeca345920f3df1621b60..ddeda49fc8bb9488dee71bac2d30474fbc9ad925 100755 (executable)
@@ -1,8 +1,11 @@
-#!/bin/sh
+#!/bin/bash
 
-. ../functions.sh
+. ./functions.sh
 
 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