-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Unifiy building tests for JS and PHP targets.
- Loading branch information
1 parent
f7fd36d
commit 29510bb
Showing
5 changed files
with
39 additions
and
64 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,27 @@ | ||
(fn compile-env-tests (tr) | ||
(make-project (format nil "~A environment test" (transpiler-name tr)) | ||
(list "environment/stage3/type.lisp" | ||
(. 'tests (make-environment-tests)) | ||
(. 'toplevel '((environment-tests)))) | ||
:transpiler (copy-transpiler tr) | ||
:emitter [put-file (format nil "compiled/test.~A" (transpiler-file-postfix tr)) _])) | ||
|
||
(fn compile-unit-tests (tr lst) | ||
(do ((n 1 (++ n)) | ||
(i lst .i)) | ||
((not i)) | ||
(!= i. | ||
(make-project (format nil "Unit ~A: ~A" n .!.) | ||
(format nil "tests/unit-~A-~A.lisp" n !.) | ||
:transpiler (copy-transpiler tr) | ||
:emitter [put-file (format nil "compiled/unit-~A-~A.~A" n !. (transpiler-file-postfix tr)) _])))) | ||
|
||
(fn compile-tests (tr) | ||
(unix-sh-mkdir "compiled" :parents t) | ||
(compile-env-tests tr) | ||
(compile-unit-tests tr | ||
'(("smoke-test" "Smoke test") | ||
("getter" "Something with getters") | ||
("base64" "BASE64-ENCODE, BASE64-DECODE") | ||
))) | ||
; ("slot-value" "SLOT-VALUE as function")))) |
File renamed without changes.