Skip to content

Commit 2099f59

Browse files
committed
Use upstream ansi-test
1 parent 5c9f7ed commit 2099f59

File tree

5 files changed

+124
-22
lines changed

5 files changed

+124
-22
lines changed

repos.sexp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,9 +5,9 @@
55
;;;; 4. src/ - C/C++ dependencies for iclasp
66
;;;; 5. extensions/ - extensions and their dependencies
77
((:name :ansi-test
8-
:repository "https://gitlab.common-lisp.net/yitzchak/ansi-test"
8+
:repository "https://gitlab.common-lisp.net/ansi-test/ansi-test"
99
:directory "dependencies/ansi-test/"
10-
:branch "bytecode")
10+
:branch "master")
1111
(:name :cl-bench
1212
:repository "https://gitlab.common-lisp.net/ansi-test/cl-bench.git"
1313
:directory "dependencies/cl-bench/"

src/koga/configure.lisp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -647,8 +647,8 @@ is not compatible with snapshots.")
647647
(list (make-source #P"clasprc.lisp" :variant))
648648
:jupyter-kernel
649649
(list (make-source #P"jupyter-kernel.lisp" :variant))
650-
:ansi-test-subset
651-
(list (make-source #P"ansi-test-subset.lisp" :build))
650+
:ansi-test
651+
(list (make-source #P"ansi-test.lisp" :build))
652652
:bench
653653
(list (make-source #P"bench.lisp" :build))
654654
:ninja

src/koga/ninja.lisp

Lines changed: 1 addition & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -149,11 +149,7 @@
149149
:description "Running benchmarks"
150150
:pool "console")
151151
(ninja:write-rule output-stream :ansi-test
152-
:command "$clasp --norc --base --feature ignore-extensions --load \"../dependencies/ansi-test/doit-clasp.lsp\""
153-
:description "Running ANSI tests"
154-
:pool "console")
155-
(ninja:write-rule output-stream :ansi-test-subset
156-
:command "$clasp --norc -t c --feature ignore-extensions --load ansi-test-subset.lisp"
152+
:command "$clasp --norc --base --feature ignore-extensions --load ansi-test.lisp"
157153
:description "Running ANSI tests"
158154
:pool "console")
159155
(ninja:write-rule output-stream :test-random-integer
@@ -758,10 +754,6 @@
758754
:clasp (make-source "iclasp" :variant)
759755
:inputs (list (build-name "cclasp"))
760756
:outputs (list (build-name "ansi-test")))
761-
(ninja:write-build output-stream :ansi-test-subset
762-
:clasp (make-source "iclasp" :variant)
763-
:inputs (list (build-name "cclasp"))
764-
:outputs (list (build-name "ansi-test-subset")))
765757
(ninja:write-build output-stream :test-random-integer
766758
:clasp (make-source "iclasp" :variant)
767759
:inputs (list (build-name "cclasp"))

src/koga/scripts.lisp

Lines changed: 12 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -285,12 +285,15 @@ exec $(dirname \"$0\")/iclasp -f ignore-extensions --base \"$@\""))
285285
(cl-bench::bench-analysis-page))
286286
(ext:quit)"))
287287

288-
(defmethod print-prologue (configuration (name (eql :ansi-test-subset)) output-stream)
289-
(format output-stream "(setf *default-pathname-defaults*
290-
(truename (make-pathname :directory '(:relative :up \"dependencies\" \"ansi-test\"))))
291-
(load #P\"doit1.lsp\")
292-
(load #P\"gclload2.lsp\")
293-
(dolist (name (core:split (string-upcase (ext:getenv \"ANSI_TEST_SUBSET\")) \",\"))
294-
(write-line name)
295-
(rt:do-test (find-symbol name :cl-test) :catch-errors nil))
296-
(ext:quit)"))
288+
(defmethod print-prologue (configuration (name (eql :ansi-test)) output-stream)
289+
(format output-stream "~
290+
(let ((suite (ext:getenv \"ANSI_TEST_SUITE\")))
291+
(cond (suite
292+
(let ((*default-pathname-defaults* (truename #P\"../dependencies/ansi-test/\")))
293+
(load #P\"gclload1.lsp\")
294+
(load (make-pathname :directory (list :relative suite)
295+
:name \"load\"
296+
:type \"lsp\"))))
297+
(t
298+
(load #P\"../dependencies/ansi-test/init.lsp\"))))
299+
(rt:do-tests :exit t :expected-failures \"../tools-for-build/ansi-test-expected-failures.sexp\")"))
Lines changed: 107 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,107 @@
1+
;;; might work
2+
;;; MACROLET.36
3+
4+
;;; READ-SYMBOL.19
5+
;;; ARRAY-T.3.1
6+
;;; THE.6
7+
;;; THE.22
8+
;;; MISC.132
9+
;;; fails sometimes
10+
;;; FORMAT.E.26
11+
12+
:NIL-VECTORS-ARE-STRINGS
13+
:ALLOW-NIL-ARRAYS
14+
:MAKE-CONDITION-WITH-COMPOUND-NAME
15+
:NO-FLOATING-POINT-UNDERFLOW-BY-DEFAULT
16+
17+
;;; These aren't true failures. They only happen because we use LOAD.
18+
LOAD-PATHNAME.1
19+
LOAD-TRUENAME.1
20+
21+
PEEK-CHAR.ERROR.1
22+
PRINT.SYMBOL.RANDOM.3
23+
PRINT.SYMBOL.RANDOM.4
24+
PRINT.DOUBLE-FLOAT.RANDOM
25+
PRINT.LONG-FLOAT.RANDOM
26+
27+
;;; Clasp extends graphic-char-p to include space-like characters
28+
FORMAT.C.2A
29+
FORMATTER.C.2A
30+
31+
;;; these no longer crash, but fail
32+
EXP.ERROR.4
33+
EXP.ERROR.5
34+
EXP.ERROR.6
35+
EXP.ERROR.7
36+
EXP.ERROR.8
37+
EXP.ERROR.9
38+
EXP.ERROR.10
39+
EXP.ERROR.11
40+
EXPT.ERROR.6
41+
EXPT.ERROR.4
42+
EXPT.ERROR.5
43+
EXPT.ERROR.7
44+
EXPT.ERROR.8
45+
EXPT.ERROR.9
46+
EXPT.ERROR.10
47+
EXPT.ERROR.11
48+
;;; FIND-ALL-SYMBOLS.1
49+
FUNCALL.ERROR.3
50+
ATAN.IEEE.2
51+
READ-SUPPRESS.17
52+
CTYPECASE.15
53+
CTYPECASE.16
54+
LOOP.1.39
55+
LOOP.1.40
56+
LOOP.1.41
57+
LOOP.1.42
58+
LOOP.1.43
59+
DEFGENERIC.ERROR.20
60+
DEFGENERIC.ERROR.21
61+
CALL-NEXT-METHOD.ERROR.1
62+
CALL-NEXT-METHOD.ERROR.2
63+
DEFMETHOD.ERROR.14
64+
DEFMETHOD.ERROR.15
65+
UPGRADED-ARRAY-ELEMENT-TYPE.8
66+
ATAN.ERROR.5
67+
MAP.ERROR.11
68+
TYPE-OF.1
69+
TYPE-OF.4
70+
FORMAT.LOGICAL-BLOCK.23
71+
COMPILE-FILE.2
72+
DEFCLASS.FORWARD-REF.3
73+
MAKE-LOAD-FORM.ORDER.3
74+
MAKE-LOAD-FORM.ORDER.4
75+
MAKE-LOAD-FORM.ORDER.5
76+
MAKE-LOAD-FORM.ORDER.6
77+
MAKE-LOAD-FORM.ORDER.7
78+
MAKE-LOAD-FORM.ORDER.8
79+
MAKE-LOAD-FORM.ORDER.9
80+
MAKE-LOAD-FORM.ORDER.10
81+
MAKE-LOAD-FORM.ORDER.11
82+
MAKE-LOAD-FORM.ORDER.12
83+
MAKE-LOAD-FORM.ORDER.13
84+
MAKE-LOAD-FORM.ORDER.14
85+
BUTLAST.FOLD.1
86+
BUTLAST.FOLD.2
87+
BUTLAST.FOLD.3
88+
DEFSTRUCT.ERROR.3
89+
DEFSTRUCT.ERROR.4
90+
ALL-EXPORTED-CL-CLASS-NAMES-ARE-VALID
91+
MAKE-TWO-WAY-STREAM.13
92+
FORMAT.E.6
93+
FORMAT.E.26
94+
MISC.544
95+
CMUCL-TYPE-PROP.23
96+
CLEAR-INPUT.1
97+
CLEAR-INPUT.2
98+
CLEAR-INPUT.3
99+
CLEAR-INPUT.4
100+
PPRINT-NEWLINE.FILL.7
101+
102+
DEFINE-METHOD-COMBINATION-LONG.05.2
103+
DEFINE-METHOD-COMBINATION-LONG.06.2
104+
DEFINE-METHOD-COMBINATION-LONG.11.1
105+
DEFINE-METHOD-COMBINATION-LONG.11.2
106+
DEFINE-METHOD-COMBINATION-LONG.11.3
107+
DEFINE-METHOD-COMBINATION-LONG.11.4

0 commit comments

Comments
 (0)