GNU bug report logs -
#37855
[PATCH] gnu: guix-data-service: Enable build time tests.
Previous Next
Reported by: Christopher Baines <mail <at> cbaines.net>
Date: Mon, 21 Oct 2019 17:43:02 UTC
Severity: normal
Tags: patch
Done: Christopher Baines <mail <at> cbaines.net>
Bug is archived. No further changes may be made.
Full log
View this message in rfc822 format
Hi,
Christopher Baines <mail <at> cbaines.net> skribis:
> Previously the tests were not run, as PostgreSQL wasn't running at build
> time. Now there's a new target, check-with-tmp-database that uses ephemeralpg
> to run the tests without relying on an externally managed PostgreSQL service.
>
> * gnu/packages/web.scm (guix-data-service)[arguments]: Remove #:tests? #f, and
> set #:test-target to "check-with-tmp-database".
> [native-inputs]: Add ephemeralpg.
Nice, LGTM!
I wonder: can’t you just have “make check” do this, or do you want to
have “make check” talk to a real database instead?
(For the Guix test suite, ‘test-env’ spawns a daemon with a temporary
store for test purposes; I wonder if the situation is comparable here.)
Thanks,
Ludo’.
This bug report was last modified 5 years and 214 days ago.
Previous Next
GNU bug tracking system
Copyright (C) 1999 Darren O. Benham,
1997,2003 nCipher Corporation Ltd,
1994-97 Ian Jackson.