From 523c6ed582ef7477b8cd1fb002e2dc665ca96241 Mon Sep 17 00:00:00 2001 From: paku Date: Fri, 16 Feb 2024 10:44:45 +0900 Subject: [PATCH] setup test env --- ningle-fbr-tests.asd | 9 +++++++++ ningle-fbr.asd | 3 ++- qlfile | 1 + qlfile.lock | 4 ++++ tests/main.lisp | 4 ++++ 5 files changed, 20 insertions(+), 1 deletion(-) create mode 100644 ningle-fbr-tests.asd create mode 100644 tests/main.lisp diff --git a/ningle-fbr-tests.asd b/ningle-fbr-tests.asd new file mode 100644 index 0000000..8bdb5a1 --- /dev/null +++ b/ningle-fbr-tests.asd @@ -0,0 +1,9 @@ +(defsystem "ningle-fbr-tests" + :author "skyizwhite " + :license "MIT" + :class :package-inferred-system + :pathname "tests" + :depends-on ("rove" + "ningle-fbr-tests/main") + :perform (test-op (o c) + (symbol-call :rove '#:run c))) diff --git a/ningle-fbr.asd b/ningle-fbr.asd index 4c99549..9b2737e 100644 --- a/ningle-fbr.asd +++ b/ningle-fbr.asd @@ -7,4 +7,5 @@ :license "MIT" :class :package-inferred-system :pathname "src" - :depends-on ("ningle-fbr/main")) + :depends-on ("ningle-fbr/main") + :in-order-to ((test-op (test-op "ningle-fbr-tests")))) diff --git a/qlfile b/qlfile index 6553439..d62ddb4 100644 --- a/qlfile +++ b/qlfile @@ -1,3 +1,4 @@ ql ningle ql cl-ppcre +ql rove ql alexandria diff --git a/qlfile.lock b/qlfile.lock index ae6cce7..7ee43ac 100644 --- a/qlfile.lock +++ b/qlfile.lock @@ -10,6 +10,10 @@ (:class qlot/source/ql:source-ql :initargs (:%version :latest) :version "ql-2023-10-21")) +("rove" . + (:class qlot/source/ql:source-ql + :initargs (:%version :latest) + :version "ql-2023-10-21")) ("alexandria" . (:class qlot/source/ql:source-ql :initargs (:%version :latest) diff --git a/tests/main.lisp b/tests/main.lisp new file mode 100644 index 0000000..06f02eb --- /dev/null +++ b/tests/main.lisp @@ -0,0 +1,4 @@ +(defpackage #:ningle-fbr-tests/main + (:use #:cl + #:rove)) +(in-package #:ningle-fbr-tests/main)