]> rtime.felk.cvut.cz Git - omk.git/blob - tests/programs/runtest-defs
d86ad0f404a68270768aec543b9e4124a4aaba7c
[omk.git] / tests / programs / runtest-defs
1 #!/bin/sh
2
3 source ../functions.sh
4
5 touch config.omk-default
6 echo "DEFS=-DNUMBER=123" > config.omk
7 make||error "Can't compile"
8 [ $OMK_RULES != linux ] && canttest "Should work only with Linux rules"
9 _compiled/bin/test|grep 123 || error "Variable DEFS didn't influence the output"