makefile 5.71 KB
Newer Older
1
# LISP=gcl
2
# LISP=../unixport/saved_ansi_gcl
3
# LISP=sbcl --noinform
pfdietz's avatar
pfdietz committed
4 5 6
# LISP=~/sbcl/src/runtime/sbcl --core ~/sbcl/output/sbcl.core --noinform
# LISP=clisp -ansi -q
# LISP=abcl
Daniel Kochmański's avatar
Daniel Kochmański committed
7
LISP=ecl
8
# LISP=/usr/local/lib/LispWorks/nongraphic-lispworks-4450
9
# LISP=acl
10

11 12
MAKE=make

13
test:
14
	@rm -rf sandbox/scratch
15
	cat doit.lsp | $(LISP) | tee test.out
16

17
test-symbols:
18
	(cat doit1.lsp ; echo "(load \"symbols/load.lsp\")"; cat doit2.lsp) | $(LISP) | tee test-symbols.out
19 20

test-eval-and-compile:
21
	(cat doit1.lsp ; echo "(load \"eval-and-compile/load.lsp\")"; cat doit2.lsp) | $(LISP) | tee test-eval-and-compile.out
22 23

test-data-and-control-flow:
24
	(cat doit1.lsp ; echo "(load \"data-and-control-flow/load.lsp\")"; cat doit2.lsp) | $(LISP) | tee test-data-and-control-flow.out
25 26

test-iteration:
27
	(cat doit1.lsp ; echo "(load \"iteration/load.lsp\")"; cat doit2.lsp) | $(LISP) | tee test-iteration.out
28 29

test-objects:
30
	(cat doit1.lsp ; echo "(load \"objects/load.lsp\")"; cat doit2.lsp) | $(LISP) | tee test-objects.out
31 32

test-conditions:
33
	(cat doit1.lsp ; echo "(load \"conditions/load.lsp\")"; cat doit2.lsp) | $(LISP) | tee test-conditions.out
34 35

test-cons:
36
	(cat doit1.lsp ; echo "(load \"cons/load.lsp\")"; cat doit2.lsp) | $(LISP) | tee test-cons.out
37 38

test-arrays:
39
	(cat doit1.lsp ; echo "(load \"arrays/load.lsp\")"; cat doit2.lsp) | $(LISP) | tee test-arrays.out
40 41

test-hash-tables:
42
	(cat doit1.lsp ; echo "(load \"hash-tables/load.lsp\")"; cat doit2.lsp) | $(LISP) | tee test-hash-tables.out
43 44

test-packages:
45
	(cat doit1.lsp ; echo "(load \"packages/load.lsp\")"; cat doit2.lsp) | $(LISP) | tee test-packages.out
46 47

test-numbers:
48
	(cat doit1.lsp ; echo "(load \"numbers/load.lsp\")"; cat doit2.lsp) | $(LISP) | tee test-numbers.out
49 50

test-sequences:
51
	(cat doit1.lsp ; echo "(load \"sequences/load.lsp\")"; cat doit2.lsp) | $(LISP) | tee test-sequences.out
52 53

test-structures:
54
	(cat doit1.lsp ; echo "(load \"structures/load.lsp\")"; cat doit2.lsp) | $(LISP) | tee test-structures.out
55 56

test-types-and-class:
57
	(cat doit1.lsp ; echo "(load \"types-and-class/load.lsp\")"; cat doit2.lsp) | $(LISP) | tee test-types-and-class.out
58 59

test-strings:
60
	(cat doit1.lsp ; echo "(load \"strings/load.lsp\")"; cat doit2.lsp) | $(LISP) | tee test-strings.out
61 62

test-characters:
63
	(cat doit1.lsp ; echo "(load \"characters/load.lsp\")"; cat doit2.lsp) | $(LISP) | tee test-characters.out
64 65

test-pathnames:
66
	(cat doit1.lsp ; echo "(load \"pathnames/load.lsp\")"; cat doit2.lsp) | $(LISP) | tee test-pathnames.out
67 68

test-files:
69
	(cat doit1.lsp ; echo "(load \"files/load.lsp\")"; cat doit2.lsp) | $(LISP) | tee test-files.out
70 71

test-streams:
72
	(cat doit1.lsp ; echo "(load \"streams/load.lsp\")"; cat doit2.lsp) | $(LISP) | tee test-streams.out
73 74

test-printer:
75
	(cat doit1.lsp ; echo "(load \"printer/load.lsp\")"; cat doit2.lsp) | $(LISP) | tee test-printer.out
76 77

test-reader:
78
	(cat doit1.lsp ; echo "(load \"reader/load.lsp\")"; cat doit2.lsp) | $(LISP) | tee test-reader.out
79 80

test-system-construction:
81
	(cat doit1.lsp ; echo "(load \"system-construction/load.lsp\")"; cat doit2.lsp) | $(LISP) | tee test-system-construction.out
82 83

test-environment:
84
	(cat doit1.lsp ; echo "(load \"environment/load.lsp\")"; cat doit2.lsp) | $(LISP) | tee test-environment.out
85 86

test-misc:
87
	(cat doit1.lsp ; echo "(load \"misc/load.lsp\")"; cat doit2.lsp) | $(LISP) | tee test-misc.out
88 89 90 91 92 93 94

test-all: test-symbols test-eval-and-compile test-data-and-control-flow test-iteration test-objects \
         test-conditions test-cons test-arrays test-hash-tables test-packages test-numbers \
         test-sequences test-structures test-types-and-class test-strings test-characters test-pathnames \
         test-files test-streams test-printer test-reader test-system-construction test-environment \
         test-misc

95
test-compiled:
96
	@rm -rf scratch
97
	echo "(load \"compileit.lsp\")" | $(LISP) | tee test.out
98

99
test-unixport:
100
	echo "(load \"doit.lsp\")" | ../unixport/saved_ansi_gcl | tee test.out
101

102
random-test:
pfdietz's avatar
pfdietz committed
103 104
	(echo "(progn #+gcl (setq compiler::*cc* \"gcc -c -DVOL=volatile -fsigned-char -pipe \") \
		(setq *load-verbose* nil) \
105 106 107 108 109
		(let* ((*standard-output* (make-broadcast-stream)) \
		     (*error-output* *standard-output*)) \
		(load \"gclload1.lsp\") \
		(funcall (symbol-function 'compile-and-load) \"random-int-form.lsp\")))  \
	      (in-package :cl-test) \
pfdietz's avatar
pfdietz committed
110
	      (let ((x (cl-test::test-random-integer-forms 1000 3 1000 :random-size t :random-nvars t))) \
111 112 113 114 115
		(setq x (cl-test::prune-results x)) \
		(with-open-file (*standard-output* \"failures.lsp\" \
		   :direction :output \
		   :if-exists :append \
		   :if-does-not-exist :create) \
pfdietz's avatar
pfdietz committed
116 117 118 119 120 121 122 123 124 125 126 127 128 129
		  (mapc #'print x))) \
                #+allegro (excl::exit) \
		; extra quits added to avoid being trapped in debugger in some lisps \
	        (cl-user::quit) \
                (cl-user::quit) \
                (cl-user::quit) \
                (cl-user::quit) \
                (cl-user::quit) \
                (cl-user::quit) \
                (cl-user::quit) \
                (cl-user::quit) \
                (cl-user::quit) \
                (cl-user::quit) \
                (cl-user::quit)") | $(LISP)
pfdietz's avatar
pfdietz committed
130
	rm -f gazonk*
131

mjthomas's avatar
mjthomas committed
132 133 134 135 136 137
rt_1000_8:
		echo "(load \"gclload1.lsp\") \
		(compile-and-load \"random-int-form.lsp\")  \
		(in-package :cl-test) (loop-random-int-forms 1000 8)" | $(LISP)


138
clean:
139 140
	@rm -f */*.{out,fas,cls,fasl,o,so,~,fn,x86f,ufsl,abcl,lib}
	@rm -f */*/*.{out,fas,cls,fasl,o,so,~,fn,x86f,ufsl,abcl,lib}
141
	@rm -f test*.out *.cls *.fasl *.o *.so *~ *.fn *.x86f *.fasl *.ufsl *.abcl *.fas *.lib \#*\#
142
	@rm -f *.dfsl *.d64fsl
143
	@(cd beyond-ansi; $(MAKE) clean)
144
	@rm -rf sandbox/scratch/ sandbox/scratch.txt
145 146 147
	@rm -f foo.txt foo.lsp foo.dat
	@rm -f tmp.txt tmp.dat tmp2.dat temp.dat
	@rm -f gazonk* out.class
pfdietz's avatar
pfdietz committed
148
	@rm -rf TMP/
149
	@rm -f "CLTEST:file-that-was-renamed.txt" file-that-was-renamed.txt
150
	@rm -f compile-file-test-lp.lsp compile-file-test-lp.out ldtest.lsp