]> rtime.felk.cvut.cz Git - omk.git/blob - tests/programs-cflags
Fix a few tests to work correctly with rtems rules
[omk.git] / tests / programs-cflags
1 #!/bin/bash
2
3 . ./functions.sh
4
5 touch config.omk-default
6 echo "CFLAGS=-DNUMBER=123" > config.omk
7 needs_valid_CC
8 make||error "Can't compile"
9 if [ $OMK_RULES = linux ]; then
10     # The following should work only with Linux rules
11     _compiled/bin/test|grep 123 || error "Custom CFLAGS didn't influence the output"
12 fi