Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 7 additions & 1 deletion tests/Makefile
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
EXEC=resumption seccomp_bpf_tests sigsegv
EXEC=resumption seccomp_bpf_tests sigsegv vsyscall fancy_actions

all: $(EXEC)

Expand All @@ -14,4 +14,10 @@ resumption: resumption.c test_harness.h
sigsegv: sigsegv.c test_harness.h
$(CC) $^ -o $@ $(CFLAGS) $(CPPFLAGS) $(LDFLAGS) -ggdb3

vsyscall: vsyscall.c test_harness.h
$(CC) $^ -o $@ $(CFLAGS) $(CPPFLAGS) $(LDFLAGS) -ggdb3

fancy_actions: vsyscall.c test_harness.h
$(CC) $^ -o $@ $(CFLAGS) $(CPPFLAGS) $(LDFLAGS) -ggdb3 -DFORCE_NATIVE

.PHONY: clean
2 changes: 2 additions & 0 deletions tests/test_harness.h
Original file line number Diff line number Diff line change
Expand Up @@ -425,6 +425,8 @@ static int test_harness_run(int __attribute__((unused)) argc,
unsigned int count = 0;
unsigned int pass_count = 0;

setvbuf(stdout, NULL, _IONBF, 0);

/* TODO(wad) add optional arguments similar to gtest. */
printf("[==========] Running %u tests from %u test cases.\n",
__test_count, __fixture_count + 1);
Expand Down
Loading