File tree 5 files changed +29
-11
lines changed
5 files changed +29
-11
lines changed Original file line number Diff line number Diff line change
1
+ # IDE
2
+ .DS_Store
3
+ .idea
4
+ * .log
5
+ tmp /
1
6
* ~
2
- * .fasl
7
+ * # *
8
+
9
+ # SBCL
10
+ * .fasl
11
+
12
+ # Clozure
13
+ * .lx64fsl
Original file line number Diff line number Diff line change 3
3
4
4
Thespis is a threaded actor library for Common Lisp.
5
5
6
- * TODO Installation
6
+ * Installation
7
7
8
8
With [[https://ultralisp.org][Ultralisp]] installed:
9
9
Original file line number Diff line number Diff line change 1
- (fiasco :define-test-package # :thespis/test
1
+ (fiasco :define-test-package # :thespis/test/basic
2
2
(:use # :thespis)
3
3
(:export # :bruteforce))
4
- (in-package # :thespis/test)
5
-
6
- (defun bruteforce (&optional (times 1024 ))
7
- " Detect rare race conditions by brute force."
8
- (dotimes (i times)
9
- (assert (eql t (fiasco :run-tests :thespis/test )))))
4
+ (in-package # :thespis/test/basic)
10
5
11
6
(deftest test-counter ()
12
7
(define-actor counter ((c 0 )) (increment)
Original file line number Diff line number Diff line change
1
+ (fiasco :define-test-package # :thespis/test/fuzz)
2
+ (in-package # :thespis/test/fuzz)
3
+
4
+ (deftest fuzz-basic-tests (&optional (times 1024 ))
5
+ " Detect rare race conditions by brute force."
6
+ (dotimes (i times)
7
+ (let ((*standard-output* (make-broadcast-stream )))
8
+ (is (fiasco :run-tests :thespis/test/basic )))))
Original file line number Diff line number Diff line change 9
9
10
10
(asdf :defsystem # :thespis/test
11
11
:depends-on (# :thespis # :fiasco)
12
- :components ((:file " test" ))
12
+ :components ((:module " test"
13
+ :components ((:file " basic" )
14
+ (:file " fuzz" ))))
13
15
:perform (asdf :test-op
14
16
(o c)
15
17
(multiple-value-bind (stat result)
16
- (uiop :symbol-call :fiasco :run-tests ' (:thespis/test ))
18
+ (uiop :symbol-call :fiasco :run-tests
19
+ ' (:thespis/test/basic
20
+ :thespis/test/fuzz ))
17
21
(print result)
18
22
(assert (eql t stat)))))
You can’t perform that action at this time.
0 commit comments