#!/bin/bash . ./functions.sh touch config.omk-default echo "DEFS=-DNUMBER=123" > config.omk needs_valid_CC make||error "Can't compile" 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