diff options
author | Christopher Baines <mail@cbaines.net> | 2019-04-14 10:08:11 +0100 |
---|---|---|
committer | Christopher Baines <mail@cbaines.net> | 2019-04-14 10:08:11 +0100 |
commit | ef4fd5ab4fee64639dcd18ead2a82aa2235661fd (patch) | |
tree | 0715f16144a8eadd915d9d17efa4e273afd8ac75 /tests | |
parent | d69f77d59eefc1ca577d6df0cfe6d8cd46742b82 (diff) | |
download | data-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.scm | 18 |
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) |