From 95b57c1d1746db672e47e4f149fec325a1f73635 Mon Sep 17 00:00:00 2001 From: Michal Sojka Date: Tue, 23 Oct 2007 09:51:00 +0000 Subject: [PATCH] Added test for command line specified CFLAGS. darcs-hash:20071023095108-f2ef6-6f01db841913b1538ce1887f9dbe92b4ffaf6e1b.gz --- tests/libraries/Makefile.omk | 2 +- tests/programs/runtest-cflags-cmdline | 8 ++++++++ 2 files changed, 9 insertions(+), 1 deletion(-) create mode 100755 tests/programs/runtest-cflags-cmdline diff --git a/tests/libraries/Makefile.omk b/tests/libraries/Makefile.omk index 5d8befd..3e76540 100644 --- a/tests/libraries/Makefile.omk +++ b/tests/libraries/Makefile.omk @@ -1,3 +1,3 @@ lib_LIBRARIES = mylib mylib_SOURCES = funca.c funcb.c -include_HEADERS mylib.h +include_HEADERS = mylib.h diff --git a/tests/programs/runtest-cflags-cmdline b/tests/programs/runtest-cflags-cmdline new file mode 100755 index 0000000..a4eb15c --- /dev/null +++ b/tests/programs/runtest-cflags-cmdline @@ -0,0 +1,8 @@ +#!/bin/sh + +source ../functions.sh + +touch config.omk-default +make CFLAGS="-DNONSENSE=abc -DNUMBER=123"||canttest "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" -- 2.39.2