| 1 |
#!/usr/bin/make -f |
| 2 |
|
| 3 |
CPPFLAGS = $(shell pkg-config fflas-ffpack --cflags) |
| 4 |
LDLIBS = $(shell pkg-config fflas-ffpack --libs) |
| 5 |
CC = g++ |
| 6 |
VPATH=tests |
| 7 |
|
| 8 |
# BASIC_TESTS from tests/Makefile.am |
| 9 |
# remove the ones skipped in d/p/skip-failing-tests.patch |
| 10 |
TESTS = test-fdot \ |
| 11 |
test-finit \ |
| 12 |
test-fscal \ |
| 13 |
test-fadd \ |
| 14 |
test-fger \ |
| 15 |
test-ftrsv \ |
| 16 |
test-ftrtri \ |
| 17 |
test-ftrmv \ |
| 18 |
test-ftrsm \ |
| 19 |
test-ftrstr \ |
| 20 |
test-ftrssyr2k \ |
| 21 |
test-ftrsm-check \ |
| 22 |
test-ftrmm \ |
| 23 |
test-fgemm \ |
| 24 |
test-fgemm-check \ |
| 25 |
test-permutations \ |
| 26 |
test-rpm \ |
| 27 |
test-compressQ \ |
| 28 |
test-lu \ |
| 29 |
test-pluq-check \ |
| 30 |
test-fsyr2k \ |
| 31 |
test-invert-check \ |
| 32 |
test-rankprofiles \ |
| 33 |
test-det \ |
| 34 |
test-det-check \ |
| 35 |
test-charpoly \ |
| 36 |
test-minpoly \ |
| 37 |
test-multifile1 \ |
| 38 |
test-io \ |
| 39 |
test-maxdelayeddim \ |
| 40 |
test-solve \ |
| 41 |
test-fgesv \ |
| 42 |
test-simd \ |
| 43 |
test-fgemv \ |
| 44 |
test-nullspace \ |
| 45 |
regression-check |
| 46 |
|
| 47 |
all: clean $(TESTS) |
| 48 |
# data directory needed by test-io |
| 49 |
@mkdir -p data; \ |
| 50 |
PASS=0; \ |
| 51 |
FAIL=0; \ |
| 52 |
for TEST in $(TESTS); \ |
| 53 |
do \ |
| 54 |
./$$TEST; \ |
| 55 |
if [ $$? = 0 ]; \ |
| 56 |
then \ |
| 57 |
echo "PASS: $$TEST"; \ |
| 58 |
PASS=$$(($$PASS+1)); \ |
| 59 |
else \ |
| 60 |
echo "FAIL: $$TEST"; \ |
| 61 |
FAIL=$$(($$FAIL+1)); \ |
| 62 |
fi; \ |
| 63 |
done; \ |
| 64 |
echo "========"; \ |
| 65 |
echo "Summary:"; \ |
| 66 |
echo "========"; \ |
| 67 |
echo "PASS: $$PASS"; \ |
| 68 |
echo "FAIL: $$FAIL"; \ |
| 69 |
rm -f $(TESTS) *.o; \ |
| 70 |
exit $$FAIL |
| 71 |
|
| 72 |
# we rename test-multifile -> testmultifile1 to take advantage of implicit rules |
| 73 |
test-multifile1: test-multifile2.o |
| 74 |
|
| 75 |
clean: |
| 76 |
rm -f $(TESTS) *.o |
| 77 |
cd tests && rm -f $(TESTS) *.o |