File: upstream-tests

package info (click to toggle)
fflas-ffpack 2.5.0-3
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid, trixie
  • size: 6,200 kB
  • sloc: cpp: 26,712; makefile: 784; sh: 430; csh: 95; ansic: 20
file content (77 lines) | stat: -rwxr-xr-x 1,691 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
#!/usr/bin/make -f

CPPFLAGS = $(shell pkg-config fflas-ffpack --cflags)
LDLIBS = $(shell pkg-config fflas-ffpack --libs)
CC = g++
VPATH=tests

# BASIC_TESTS from tests/Makefile.am
# remove the ones skipped in d/p/skip-failing-tests.patch
TESTS = test-fdot           \
	test-finit          \
	test-fscal          \
	test-fadd           \
	test-fger           \
	test-ftrsv          \
	test-ftrtri         \
	test-ftrmv          \
	test-ftrsm          \
	test-ftrstr         \
	test-ftrssyr2k      \
	test-ftrsm-check    \
	test-ftrmm          \
	test-fgemm          \
	test-fgemm-check    \
	test-permutations   \
	test-rpm            \
	test-compressQ      \
	test-lu             \
	test-pluq-check     \
	test-fsyr2k         \
	test-invert-check   \
	test-rankprofiles   \
	test-det            \
	test-det-check      \
	test-charpoly       \
	test-minpoly        \
	test-multifile1     \
	test-io             \
	test-maxdelayeddim  \
	test-solve          \
	test-fgesv          \
	test-simd           \
	test-fgemv          \
	test-nullspace      \
	regression-check

all: clean $(TESTS)
# data directory needed by test-io
	@mkdir -p data; \
	PASS=0; \
	FAIL=0; \
	for TEST in $(TESTS); \
	do \
		./$$TEST; \
		if [ $$? = 0 ]; \
		then \
			echo "PASS: $$TEST"; \
			PASS=$$(($$PASS+1)); \
		else \
			echo "FAIL: $$TEST"; \
			FAIL=$$(($$FAIL+1)); \
		fi; \
	done; \
	echo "========"; \
	echo "Summary:"; \
	echo "========"; \
	echo "PASS: $$PASS"; \
	echo "FAIL: $$FAIL"; \
	rm -f $(TESTS) *.o; \
	exit $$FAIL

# we rename test-multifile -> testmultifile1 to take advantage of implicit rules
test-multifile1: test-multifile2.o

clean:
	rm -f $(TESTS) *.o
	cd tests && rm -f $(TESTS) *.o