source: trunk/source/tests/ansi-tests/makefile @ 8991

Last change on this file since 8991 was 8991, checked in by gz, 11 years ago

Check in the gcl ansi test suite (original, in preparation for making local changes)

File size: 5.6 KB
Line 
1# LISP=gcl
2# LISP=../unixport/saved_ansi_gcl
3# LISP=sbcl --noinform
4# LISP=~/sbcl/src/runtime/sbcl --core ~/sbcl/output/sbcl.core --noinform
5# LISP=clisp -ansi -q
6# LISP=abcl
7# LISP=ecl
8# LISP=/usr/local/lib/LispWorks/nongraphic-lispworks-4450
9# LISP=acl
10
11MAKE=make
12
13test:
14        @rm -rf scratch
15        cat doit.lsp | $(LISP) | tee test.out
16
17test-symbols:
18        (cat doit1.lsp ; echo "(load \"load-symbols.lsp\")"; cat doit2.lsp) | $(LISP) | tee test-symbols.out
19
20test-eval-and-compile:
21        (cat doit1.lsp ; echo "(load \"load-eval-and-compile.lsp\")"; cat doit2.lsp) | $(LISP) | tee test-eval-and-compile.out
22
23test-data-and-control-flow:
24        (cat doit1.lsp ; echo "(load \"load-data-and-control-flow.lsp\")"; cat doit2.lsp) | $(LISP) | tee test-data-and-control-flow.out
25
26test-iteration:
27        (cat doit1.lsp ; echo "(load \"load-iteration.lsp\")"; cat doit2.lsp) | $(LISP) | tee test-iteration.out
28
29test-objects:
30        (cat doit1.lsp ; echo "(load \"load-objects.lsp\")"; cat doit2.lsp) | $(LISP) | tee test-objects.out
31
32test-conditions:
33        (cat doit1.lsp ; echo "(load \"load-conditions.lsp\")"; cat doit2.lsp) | $(LISP) | tee test-conditions.out
34
35test-cons:
36        (cat doit1.lsp ; echo "(load \"load-cons.lsp\")"; cat doit2.lsp) | $(LISP) | tee test-cons.out
37
38test-arrays:
39        (cat doit1.lsp ; echo "(load \"load-arrays.lsp\")"; cat doit2.lsp) | $(LISP) | tee test-arrays.out
40
41test-hash-tables:
42        (cat doit1.lsp ; echo "(load \"load-hash-tables.lsp\")"; cat doit2.lsp) | $(LISP) | tee test-hash-tables.out
43
44test-packages:
45        (cat doit1.lsp ; echo "(load \"load-packages.lsp\")"; cat doit2.lsp) | $(LISP) | tee test-packages.out
46
47test-numbers:
48        (cat doit1.lsp ; echo "(load \"load-numbers.lsp\")"; cat doit2.lsp) | $(LISP) | tee test-numbers.out
49
50test-sequences:
51        (cat doit1.lsp ; echo "(load \"load-sequences.lsp\")"; cat doit2.lsp) | $(LISP) | tee test-sequences.out
52
53test-structures:
54        (cat doit1.lsp ; echo "(load \"load-structures.lsp\")"; cat doit2.lsp) | $(LISP) | tee test-structures.out
55
56test-types-and-class:
57        (cat doit1.lsp ; echo "(load \"load-types-and-class.lsp\")"; cat doit2.lsp) | $(LISP) | tee test-types-and-class.out
58
59test-strings:
60        (cat doit1.lsp ; echo "(load \"load-strings.lsp\")"; cat doit2.lsp) | $(LISP) | tee test-strings.out
61
62test-characters:
63        (cat doit1.lsp ; echo "(load \"load-characters.lsp\")"; cat doit2.lsp) | $(LISP) | tee test-characters.out
64
65test-pathnames:
66        (cat doit1.lsp ; echo "(load \"load-pathnames.lsp\")"; cat doit2.lsp) | $(LISP) | tee test-pathnames.out
67
68test-files:
69        (cat doit1.lsp ; echo "(load \"load-files.lsp\")"; cat doit2.lsp) | $(LISP) | tee test-files.out
70
71test-streams:
72        (cat doit1.lsp ; echo "(load \"load-streams.lsp\")"; cat doit2.lsp) | $(LISP) | tee test-streams.out
73
74test-printer:
75        (cat doit1.lsp ; echo "(load \"load-printer.lsp\")"; cat doit2.lsp) | $(LISP) | tee test-printer.out
76
77test-reader:
78        (cat doit1.lsp ; echo "(load \"load-reader.lsp\")"; cat doit2.lsp) | $(LISP) | tee test-reader.out
79
80test-system-construction:
81        (cat doit1.lsp ; echo "(load \"load-system-construction.lsp\")"; cat doit2.lsp) | $(LISP) | tee test-system-construction.out
82
83test-environment:
84        (cat doit1.lsp ; echo "(load \"load-environment.lsp\")"; cat doit2.lsp) | $(LISP) | tee test-environment.out
85
86test-misc:
87        (cat doit1.lsp ; echo "(load \"load-misc.lsp\")"; cat doit2.lsp) | $(LISP) | tee test-misc.out
88
89test-all: test-symbols test-eval-and-compile test-data-and-control-flow test-iteration test-objects \
90         test-conditions test-cons test-arrays test-hash-tables test-packages test-numbers \
91         test-sequences test-structures test-types-and-class test-strings test-characters test-pathnames \
92         test-files test-streams test-printer test-reader test-system-construction test-environment \
93         test-misc
94
95test-compiled:
96        @rm -rf scratch
97        echo "(load \"compileit.lsp\")" | $(LISP) | tee test.out
98
99test-unixport:
100        echo "(load \"doit.lsp\")" | ../unixport/saved_ansi_gcl | tee test.out
101
102random-test:
103        (echo "(progn #+gcl (setq compiler::*cc* \"gcc -c -DVOL=volatile -fsigned-char -pipe \") \
104                (setq *load-verbose* nil) \
105                (let* ((*standard-output* (make-broadcast-stream)) \
106                     (*error-output* *standard-output*)) \
107                (load \"gclload1.lsp\") \
108                (funcall (symbol-function 'compile-and-load) \"random-int-form.lsp\")))  \
109              (in-package :cl-test) \
110              (let ((x (cl-test::test-random-integer-forms 1000 3 1000 :random-size t :random-nvars t))) \
111                (setq x (cl-test::prune-results x)) \
112                (with-open-file (*standard-output* \"failures.lsp\" \
113                   :direction :output \
114                   :if-exists :append \
115                   :if-does-not-exist :create) \
116                  (mapc #'print x))) \
117                #+allegro (excl::exit) \
118                ; extra quits added to avoid being trapped in debugger in some lisps \
119                (cl-user::quit) \
120                (cl-user::quit) \
121                (cl-user::quit) \
122                (cl-user::quit) \
123                (cl-user::quit) \
124                (cl-user::quit) \
125                (cl-user::quit) \
126                (cl-user::quit) \
127                (cl-user::quit) \
128                (cl-user::quit) \
129                (cl-user::quit)") | $(LISP)
130        rm -f gazonk*
131
132rt_1000_8:
133                echo "(load \"gclload1.lsp\") \
134                (compile-and-load \"random-int-form.lsp\")  \
135                (in-package :cl-test) (loop-random-int-forms 1000 8)" | $(LISP)
136
137
138clean:
139        @rm -f test*.out *.cls *.fasl *.o *.so *~ *.fn *.x86f *.fasl *.ufsl *.abcl *.fas *.lib \#*\#
140        @rm -f *.dfsl *.d64fsl
141        @(cd beyond-ansi; $(MAKE) clean)
142        @rm -rf scratch/ scratch.txt
143        @rm -f foo.txt foo.lsp foo.dat
144        @rm -f tmp.txt tmp.dat tmp2.dat temp.dat
145        @rm -f gazonk* out.class
146        @rm -rf TMP/
147        @rm -f "CLTEST:file-that-was-renamed.txt" file-that-was-renamed.txt
148        @rm -f compile-file-test-lp.lsp compile-file-test-lp.out ldtest.lsp
Note: See TracBrowser for help on using the repository browser.