* Start of a regression test for Hydra.
[?]
Mar 10, 2010, 3:48 PM
7C6HSXUQ6HFILY35VPZWCJOVBAL7IJ2QXOU2X5DTIFJ6FQ2RHOQACDependencies
- [2]
Y2BFYLLK* Install the SQL schemata in $out/share/hydra/sql. - [3]
T4LLYESZ* Nix expression for building Hydra. - [4]
YQWH4POV* Simplify.
Change contents
- replacement in release.nix at line 2
, hydraSrc ? {outPath = ./.; rev = 1234;}, hydraSrc ? {outPath = ../hydra-wc; rev = 1234;} - edit in release.nix at line 120
tests ={ nixos ? ../nixos, system ? "x86_64-linux" }:let hydra = build { inherit system; }; inwith import "${nixos}/lib/testing.nix" { inherit nixpkgs system; services = null; };{ - edit in release.nix at line 131
install = simpleTest {machine ={ config, pkgs, ... }:{ services.postgresql.enable = true;environment.systemPackages = [ hydra ];};testScript =''$machine->waitForJob("postgresql");# Initialise the database and the state.$machine->mustSucceed( "createdb -O root hydra",, "psql hydra -f ${hydra}/share/hydra/sql/hydra-postgresql.sql", "mkdir /var/lib/hydra");# Start the web interface.#$machine->mustSucceed("HYDRA_DATA=/var/lib/hydra HYDRA_DBI='dbi:Pg:dbname=hydra;user=hydra;' hydra_server.pl >&2 &");#$machine->waitForOpenPort("3000");'';};};