2019-04-14 11:08:11 +02:00
|
|
|
(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
|
2019-07-12 20:45:41 +02:00
|
|
|
"test-model-derivation"
|
2019-04-14 11:08:11 +02:00
|
|
|
(lambda (conn)
|
2020-02-24 22:16:41 +01:00
|
|
|
(check-test-database! conn)
|
|
|
|
|
2019-04-14 11:08:11 +02:00
|
|
|
(test-equal "valid-systems"
|
2020-04-20 09:59:10 +02:00
|
|
|
'("aarch64-linux" "armhf-linux" "i586-gnu"
|
|
|
|
"i686-linux" "mips64el-linux" "x86_64-linux")
|
2019-04-14 11:08:11 +02:00
|
|
|
(valid-systems conn))
|
|
|
|
|
|
|
|
(test-equal "count-derivations"
|
|
|
|
'("0")
|
|
|
|
(count-derivations conn))))
|
|
|
|
|
|
|
|
(test-end)
|