2
0
Fork 0
mirror of git://git.savannah.gnu.org/guix/data-service.git synced 2023-12-14 03:23:03 +01:00
data-service/tests/model-derivation.scm
Christopher Baines e070c20030 Make valid-systems quicker
In the future, it would be good to pull this from the database again, but in
some way which is really quick.
2020-01-05 12:01:06 +00:00

19 lines
508 B
Scheme

(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
"test-model-derivation"
(lambda (conn)
(test-equal "valid-systems"
'("aarch64-linux" "armhf-linux" "i686-linux" "mips64el-linux" "x86_64-linux")
(valid-systems conn))
(test-equal "count-derivations"
'("0")
(count-derivations conn))))
(test-end)