1CFLAGS += -O2
2LDLIBS = -lrt -lpthread -lpopt
3TEST_PROGS := mq_open_tests mq_perf_tests
4
5all: $(TEST_PROGS)
6
7include ../lib.mk
8
9override define RUN_TESTS
10	@./mq_open_tests /test1 || echo "selftests: mq_open_tests [FAIL]"
11	@./mq_perf_tests || echo "selftests: mq_perf_tests [FAIL]"
12endef
13
14override define EMIT_TESTS
15	echo "./mq_open_tests /test1 || echo \"selftests: mq_open_tests [FAIL]\""
16	echo "./mq_perf_tests || echo \"selftests: mq_perf_tests [FAIL]\""
17endef
18
19clean:
20	rm -f mq_open_tests mq_perf_tests
21