Bamvor Jian Zhang | cc19ada | 2015-09-09 21:06:26 +0800 | [diff] [blame] | 1 | CFLAGS += -O2 |
Bamvor Jian Zhang | b11054b | 2015-09-09 21:06:27 +0800 | [diff] [blame] | 2 | LDLIBS = -lrt -lpthread -lpopt |
| 3 | TEST_PROGS := mq_open_tests mq_perf_tests |
Tyler Baker | 6886f41 | 2015-04-01 16:20:20 -0700 | [diff] [blame] | 4 | |
Bamvor Jian Zhang | b11054b | 2015-09-09 21:06:27 +0800 | [diff] [blame] | 5 | all: $(TEST_PROGS) |
Doug Ledford | 50069a5 | 2012-05-31 16:26:34 -0700 | [diff] [blame] | 6 | |
Michael Ellerman | 5e29a91 | 2015-03-11 15:05:59 +1100 | [diff] [blame] | 7 | include ../lib.mk |
| 8 | |
| 9 | override define RUN_TESTS |
| 10 | @./mq_open_tests /test1 || echo "selftests: mq_open_tests [FAIL]" |
| 11 | @./mq_perf_tests || echo "selftests: mq_perf_tests [FAIL]" |
| 12 | endef |
Doug Ledford | 50069a5 | 2012-05-31 16:26:34 -0700 | [diff] [blame] | 13 | |
Michael Ellerman | 32dcfba | 2015-03-11 15:06:00 +1100 | [diff] [blame] | 14 | override 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]\"" |
| 17 | endef |
| 18 | |
Doug Ledford | 50069a5 | 2012-05-31 16:26:34 -0700 | [diff] [blame] | 19 | clean: |
Doug Ledford | 7820b07 | 2012-05-31 16:26:37 -0700 | [diff] [blame] | 20 | rm -f mq_open_tests mq_perf_tests |