From b81d71855f22831c072a2c8403ad43de7059b0f0 Mon Sep 17 00:00:00 2001 From: Snaipe Date: Mon, 16 Mar 2015 02:49:15 +0100 Subject: [PATCH] Fixed test scripts being deleted on make clean --- samples/Makefile.am | 22 ++++++++++++---------- 1 file changed, 12 insertions(+), 10 deletions(-) diff --git a/samples/Makefile.am b/samples/Makefile.am index e92ca78..2c3ba25 100644 --- a/samples/Makefile.am +++ b/samples/Makefile.am @@ -1,4 +1,4 @@ -TESTS = \ +BIN_TESTS = \ signal \ report \ suites \ @@ -6,18 +6,20 @@ TESTS = \ asserts \ simple -TESTS += tests/tap_test.sh \ - tests/early_exit.sh \ - tests/verbose.sh \ - tests/help.sh +TESTS_ENVIRONMENT = CRITERION_ALWAYS_SUCCEED=1 + +check_PROGRAMS := $(BIN_TESTS) +CFLAGS = -I$(top_srcdir)/include/ -std=c99 +LDADD = -L$(top_srcdir)/ -lcriterion + +SCRIPT_TESTS = tests/tap_test.sh \ + tests/early_exit.sh \ + tests/verbose.sh \ + tests/help.sh tests/tap_test.sh: simple signal asserts tests/early_exit.sh: simple tests/verbose.sh: simple tests/help.sh: simple -TESTS_ENVIRONMENT = CRITERION_ALWAYS_SUCCEED=1 - -check_PROGRAMS = $(TESTS) -CFLAGS = -I$(top_srcdir)/include/ -std=c99 -LDADD = -L$(top_srcdir)/ -lcriterion +TESTS = $(BIN_TESTS) $(SCRIPT_TESTS)