citrun

watch C/C++ source code execute
Log | Files | Refs | LICENSE

commit 3aafe9294a3dfec4801729401b27329e544ccaad
parent 1b7eede7a1079acc8f336a5c16258642f7304b5d
Author: Kyle Milz <kyle@0x30.net>
Date:   Tue, 30 Aug 2016 22:50:54 -0600

test: compile test program at test time

Diffstat:
MJamfile | 1-
Mtest/Jamfile | 10++--------
Mtest/shm.pm | 1+
3 files changed, 3 insertions(+), 9 deletions(-)

diff --git a/Jamfile b/Jamfile @@ -2,4 +2,3 @@ SubDir TOP ; SubInclude TOP man ; SubInclude TOP src ; -SubInclude TOP test ; diff --git a/test/Jamfile b/test/Jamfile @@ -1,12 +1,6 @@ -SubDir TOP test ; - PROG_SRCS = one.c two.c three.c ; -MakeLocate $(PROG_SRCS) : $(LOCATE_SOURCE) ; - -Depends $(PROG_SRCS) : $(TOP)/src/inst_main.cc ; -Depends program : $(TOP)/src/runtime.h $(TOP)/src/runtime.c ; -CC on program = $(TOP)/src/citrun-wrap cc ; -LINK on program = $(TOP)/src/citrun-wrap cc ; +Depends one.o two.o three.o : ../src/citrun-inst ; +Depends program : ../src/libcitrun.a ; Main program : one.c two.c three.c ; diff --git a/test/shm.pm b/test/shm.pm @@ -5,6 +5,7 @@ use POSIX; # Triggers runtime to use alternate shm path. $ENV{CITRUN_TOOLS} = 1; +system("cd test && ../src/citrun-wrap jam"); sub new { my ($class) = @_;