Debian Codegraph @

tests/general/Makefile

raw
1 # Makefile for testing Icon
2 .POSIX:
3
4
5 SAMPLES = btrees diffwrds kross meander prefix recogn roman sieve wordcnt
6
7
8
9 # default is to run all tests, using icont
10
11 Test Test-icont: Test-programs Test-preproc Test-options
12 ../../bin/icon -V
13
14
15 # test programs
16
17 Programs Programs-icont Test-programs:
18 sh Test-icon
19
20 Samples Samples-icont:
21 sh Test-icon $(SAMPLES)
22
23
24 # test preprocessor
25
26 Test-preproc:
27 ../../bin/icont -E tpp.icn tpp9.icn >tpp.out 2>tpp.err || :
28 cat tpp.err tpp.out >tpp.all
29 cmp tpp.ok tpp.all
30 : preprocessor test passed
31
32
33 # test various command options
34
35 Test-options:
36 sh Test-opts >options.out
37 cmp options.ok options.out
38 : options test passed
39
40
41 # test garbage collection by forcing small region sizes
42 # (note: gc2 and kwds will fail)
43
44 Test-tiny:
45 sh Test-icon 1000 1000
46
47
48 # clean up
49
50 Clean:
51 -rm -f *.u? *.[chp] foo.baz tmp? *.out *.err *.all
52 -rm -f xx \
53 `find * -type f -perm -100 ! -name '*.*' ! -name '[MT]*' -print`