Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
[trace] fix tests: tracing-tasks and smpi-tracing-ptp
[simgrid.git] / examples / gras / tests.mk
1 # This file factorize all the testing infrastructure for the GRAS examples
2 #
3 # it's made complicated by the facts that:
4 #  - we use tesh, we need to find it back
5 #  - we don't want to generate the test_* files with configure, so we
6 #    have to declare some variables in front of the shell command
7 #    running the test
8 #  - we want to fully test the surf on the way. So, we have to ask for
9 #    full precision timestamps in the tests. On the other hand,
10 #    message size differ when we are on 32bits and when we are on
11 #    64bits (obviously), so we have to maintain 2 tests per directory
12 #    and pick the right one here.
13
14 if GRAS_ARCH_32_BITS
15   TESTS= test_sg_32 test_rl
16 test-sg: 
17         $(TESTS_ENVIRONMENT) test_sg_32
18 else
19   TESTS= test_sg_64 test_rl
20 test-sg: 
21         $(TESTS_ENVIRONMENT) test_sg_64
22 endif
23
24 test-rl: force
25         $(TESTS_ENVIRONMENT) test_rl
26 TESTS_ENVIRONMENT=srcdir=$(srcdir) EXEEXT=$(EXEEXT) @top_builddir@/tools/tesh/tesh
27
28 force:
29
30 EXTRA_DIST+=test_rl test_sg_32 test_sg_64
31
32 .PHONY: test_sg_32 test_SG_64 test_rl