#!/bin/bash . ./functions.sh 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"