For ease of use make the context_switch test do something useful when called with no arguments. Default to a 30 second run, using threads, doing yield, and use any online cpu. Make it print out what it's doing to avoid confusion. Signed-off-by: Michael Ellerman <mpe@ellerman.id.au> Acked-by: Anton Blanchard <anton@samba.org>
16 lines
225 B
Makefile
16 lines
225 B
Makefile
TEST_PROGS := gettimeofday context_switch
|
|
|
|
CFLAGS += -O2
|
|
|
|
all: $(TEST_PROGS)
|
|
|
|
$(TEST_PROGS): ../harness.c
|
|
|
|
context_switch: ../utils.c
|
|
context_switch: LDLIBS += -lpthread
|
|
|
|
include ../../lib.mk
|
|
|
|
clean:
|
|
rm -f $(TEST_PROGS) *.o
|