2015-09-09 21:06:26 +08:00
|
|
|
CFLAGS += -O2
|
2015-09-09 21:06:27 +08:00
|
|
|
LDLIBS = -lrt -lpthread -lpopt
|
|
|
|
TEST_PROGS := mq_open_tests mq_perf_tests
|
2015-04-02 07:20:20 +08:00
|
|
|
|
2015-09-09 21:06:27 +08:00
|
|
|
all: $(TEST_PROGS)
|
2012-06-01 07:26:34 +08:00
|
|
|
|
2015-03-11 12:05:59 +08:00
|
|
|
include ../lib.mk
|
|
|
|
|
|
|
|
override define RUN_TESTS
|
|
|
|
@./mq_open_tests /test1 || echo "selftests: mq_open_tests [FAIL]"
|
|
|
|
@./mq_perf_tests || echo "selftests: mq_perf_tests [FAIL]"
|
|
|
|
endef
|
2012-06-01 07:26:34 +08:00
|
|
|
|
2015-03-11 12:06:00 +08:00
|
|
|
override define EMIT_TESTS
|
|
|
|
echo "./mq_open_tests /test1 || echo \"selftests: mq_open_tests [FAIL]\""
|
|
|
|
echo "./mq_perf_tests || echo \"selftests: mq_perf_tests [FAIL]\""
|
|
|
|
endef
|
|
|
|
|
2012-06-01 07:26:34 +08:00
|
|
|
clean:
|
2012-06-01 07:26:37 +08:00
|
|
|
rm -f mq_open_tests mq_perf_tests
|