* Start of a regression test for Hydra.

[?]
Mar 10, 2010, 3:48 PM
7C6HSXUQ6HFILY35VPZWCJOVBAL7IJ2QXOU2X5DTIFJ6FQ2RHOQAC

Dependencies

  • [2] Y2BFYLLK * Install the SQL schemata in $out/share/hydra/sql.
  • [3] YQWH4POV * Simplify.
  • [4] T4LLYESZ * Nix expression for building Hydra.

Change contents

  • replacement in release.nix at line 2
    [3.23][3.23:65]()
    , hydraSrc ? {outPath = ./.; rev = 1234;}
    [3.23]
    [3.65]
    , hydraSrc ? {outPath = ../hydra-wc; rev = 1234;}
  • edit in release.nix at line 120
    [3.3481]
    [2.134]
    tests =
    { nixos ? ../nixos, system ? "x86_64-linux" }:
    let hydra = build { inherit system; }; in
    with import "${nixos}/lib/testing.nix" { inherit nixpkgs system; services = null; };
    {
  • edit in release.nix at line 131
    [2.139]
    [3.3482]
    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");
    '';
    };
    };