-
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.
* Complete a YAML parser Unit test runner reimplemented from ground up. * fix test failure recording * code no longer derives from 'fiasco' * restore toplevel script entry point * require asdf * ci test script * handle error in test setup * handle error in test setup
- Loading branch information
Showing
29 changed files
with
836 additions
and
1,491 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 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 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,14 @@ | ||
(require :asdf) | ||
|
||
(load "epsilon.asd") | ||
|
||
(handler-case | ||
(asdf:load-system "epsilon/tests") | ||
(error (condition) | ||
(format *error-output "~A~%" condition) | ||
(sb-debug:print-backtrace :stream *error-output*))) | ||
|
||
(sb-posix:exit (if (epsilon.tool.test:run-success-p (epsilon.tool.test:run-tests)) | ||
0 | ||
1)) | ||
|
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,33 @@ | ||
#!/usr/bin/env nu | ||
|
||
def build [] { | ||
(sbcl --noinform | ||
--non-interactive | ||
--eval "(load \"epsilon.asd\")" | ||
--eval "(asdf:load-system \"epsilon\" :force t)") | ||
} | ||
|
||
def test [] { | ||
(sbcl --noinform | ||
--non-interactive | ||
--eval "(load \"etc/test.lisp\")") | ||
} | ||
|
||
def coverage [] { | ||
mkdir target/coverage | ||
(sbcl --noinform | ||
--non-interactive | ||
--eval "(require :sb-cover)" | ||
--eval "(load \"epsilon.asd\" :force t)" | ||
--eval "(asdf:test-system \"epsilon\")" | ||
--eval "(sb-cover:report \"target/coverage/\")") | ||
open target/coverage/cover-index.html | ||
} | ||
|
||
def main [args] { | ||
match $args { | ||
"build" => build, | ||
"test" => test, | ||
"coverage" => coverage | ||
} | ||
} |
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 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 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 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,32 @@ | ||
(defpackage #:epsilon.lib.format | ||
(:use #:cl #:sb-gray) | ||
(:export #:format-output-stream | ||
#:output-column)) | ||
|
||
(in-package #:epsilon.lib.format) | ||
|
||
(defclass format-output-stream (fundamental-character-output-stream) | ||
((column :initform 0 :accessor output-column) | ||
(understream :initarg :understream :initform (error "required!")))) | ||
|
||
(defmethod stream-write-sequence ((s format-output-stream) seq &optional start end) | ||
"Write SEQ to stream S." | ||
(let ((newline-pos (position #\Newline seq :from-end t))) | ||
(when newline-pos | ||
(setf (output-column s) (- (length seq) newline-pos 1)))) | ||
(write-sequence seq (slot-value s 'understream) :start start :end end)) | ||
|
||
(defmethod stream-line-column ((s format-output-stream)) | ||
"Tell column number that stream S is currently at." | ||
(output-column s)) | ||
|
||
(defmethod stream-start-line-p ((s format-output-stream)) | ||
"Tell if stream S is already at start of fresh new line." | ||
(zerop (output-column s))) | ||
|
||
(defmethod stream-write-char ((s format-output-stream) char) | ||
"Write CHAR to stream S." | ||
(if (char= char #\Newline) | ||
(setf (output-column s) 0) | ||
(incf (output-column s))) | ||
(write-char char (slot-value s 'understream))) |
This file was deleted.
Oops, something went wrong.
Oops, something went wrong.