-
Notifications
You must be signed in to change notification settings - Fork 1
/
Makefile_test
59 lines (46 loc) · 1.48 KB
/
Makefile_test
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
# |
# o---------------------------------------------------------------------o
# |
# | Numdiff makefile - Tests
# |
# o---------------------------------------------------------------------o
# |
# | Methodical Accelerator Design
# |
# | Copyright (c) 2011+ CERN, [email protected]
# |
# | For more information, see http://cern.ch/mad
# |
# o---------------------------------------------------------------------o
# |
# | $Id$
# |
#################################################
# testsuite
# variables:
# tests-all : contains all tests (includes tests-long)
# tests-long : contains all long tests (overlaps tests-all)
# rules (commands):
# tests : runs tests-all not in tests-long
# tests-all : runs tests-all
# tests order
tests-all := \
test-constraint \
test-register test-register-2
# same order as tests-all, tests that take +10s
# to know the timing: make tests-all TIMER=time (on Unixes)
tests-long :=
# tests dependencies
# lexicographical order
tests-to-setup :=
# testsuite titles (attached to first test of the suite, lex. order)
test-register: TESTSUITE := Register testsuite
# end of testsuite
#################################################
# numdiff supported command for tests
ifndef NUMDIFF
NUMDIFFCMD := $(firstword $(wildcard $(PROJECT)$(ARCH)$(BINARY_EXT) $(PROJECT)$(BINARY_EXT)))
NUMDIFF := $(if $(NUMDIFFCMD),..$/..$/$(NUMDIFFCMD),$(PROJECT)$(ARCH)$(BINARY_EXT))
endif
TESTCMD = $(NUMDIFF) --noloc $(@F).nd.lhs $(@F).nd.rhs $(@F).nd.cfg
# end of makefile