aboutsummaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
authorChristopher Baines <mail@cbaines.net>2019-04-14 10:08:11 +0100
committerChristopher Baines <mail@cbaines.net>2019-04-14 10:08:11 +0100
commitef4fd5ab4fee64639dcd18ead2a82aa2235661fd (patch)
tree0715f16144a8eadd915d9d17efa4e273afd8ac75 /tests
parentd69f77d59eefc1ca577d6df0cfe6d8cd46742b82 (diff)
downloaddata-service-ef4fd5ab4fee64639dcd18ead2a82aa2235661fd.tar
data-service-ef4fd5ab4fee64639dcd18ead2a82aa2235661fd.tar.gz
Add an initial test
Along with the buildsystem changes to make `make check` work.
Diffstat (limited to 'tests')
-rw-r--r--tests/model-derivation.scm18
1 files changed, 18 insertions, 0 deletions
diff --git a/tests/model-derivation.scm b/tests/model-derivation.scm
new file mode 100644
index 0000000..52b113b
--- /dev/null
+++ b/tests/model-derivation.scm
@@ -0,0 +1,18 @@
+(define-module (test-model-derivation)
+ #:use-module (srfi srfi-64)
+ #:use-module (guix-data-service database)
+ #:use-module (guix-data-service model derivation))
+
+(test-begin "test-model-derivation")
+
+(with-postgresql-connection
+ (lambda (conn)
+ (test-equal "valid-systems"
+ '()
+ (valid-systems conn))
+
+ (test-equal "count-derivations"
+ '("0")
+ (count-derivations conn))))
+
+(test-end)