2015-04-02 07:20:20 +08:00
|
|
|
CFLAGS = -O2
|
|
|
|
|
2012-06-01 07:26:34 +08:00
|
|
|
all:
|
2015-04-02 07:20:20 +08:00
|
|
|
$(CC) $(CFLAGS) mq_open_tests.c -o mq_open_tests -lrt
|
|
|
|
$(CC) $(CFLAGS) -o mq_perf_tests mq_perf_tests.c -lrt -lpthread -lpopt
|
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
|
|
|
TEST_PROGS := mq_open_tests mq_perf_tests
|
|
|
|
|
|
|
|
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
|