diff --git a/src/pegrep.asd b/src/pegrep.asd index eb02646..89ef9b4 100644 --- a/src/pegrep.asd +++ b/src/pegrep.asd @@ -26,3 +26,11 @@ (debug 3) (speed 0))) (funcall next))) + +(asdf:defsystem :pegrep/tests + :depends-on (:pegrep :fiveam) + :perform (test-op (o s) + (uiop:symbol-call :pegrep-tests :test-pegrep)) + :components ((:module "../test" + :serial t + :components ((:file "main"))))) diff --git a/test/main.lisp b/test/main.lisp new file mode 100644 index 0000000..2c387db --- /dev/null +++ b/test/main.lisp @@ -0,0 +1,19 @@ +(defpackage :pegrep-tests + (:use :cl :fiveam) + (:export :run! + :all-tests + :test-quasi)) + +(in-package :pegrep-tests) + +(def-suite all-tests + :description "The master suite of all pegrep tests.") + +(in-suite all-tests) + +(defun test-pegrep () + (run! 'all-tests)) + +(test canary-test + (is (eq 1 1) + "Something is really wrong, the tests aren't working..."))