Add a test for darcs inputs.

[?]
Jul 10, 2013, 9:50 AM
L7RW467ZBDYCV332DAVH5PBVTCVQXNJXACVNZJTU5Y5H6P62X52QC

Dependencies

  • [2] PY5GVGC7 Implemented quoted strings support in hydra-build-products to allow file names with spaces + testcase
  • [3] 6K5PBUUN Use buildEnv to combine Hydra's Perl dependencies
  • [4] Q5HZWFCY Add support for darcs repositories.
  • [5] YQWH4POV * Simplify.
  • [6] FAIJDQKZ
  • [7] JD7AWXQG Remove now-unused SystemTypes table
  • [8] AK66K4KY Fix the test
  • [9] SBKX3YH2 cleanup
  • [10] V2ALOFRR Fix the test
  • [11] HX4QYOYA add first evaluations tests
  • [12] FANTYCR7 Materialize the number of finished builds
  • [13] D6EL7KR6 Fix broken test
  • [14] RBZRCTAL hydra: fixed and re-enabled evaluation tests
  • [15] T4LLYESZ * Nix expression for building Hydra.
  • [16] HE3GX5IP Optimize fetch-git.
  • [17] 4HPT4SDD Revert "Remove now-unused SystemTypes table"
  • [18] 2554VN4T Fix ‘Unable to handle files with the extension 'conf'’
  • [19] P43FHUUV there are 43 tests
  • [20] WFJ3ZPRM add tests for scm inputs
  • [21] YDW2NUIW Fix "make check"
  • [22] DES4PSRL add basic query tests for JobStatus/LatestSucceeded/ActiveJobs
  • [23] 3RL7VFKE Add tests for "git describe --long".
  • [24] E7FID72S Remove the BuildMachines and BuildMachinesSystemTypes tables
  • [25] LOHWNXEJ Cleanup
  • [26] 5SMQ2PLK Fix tests
  • [27] 3XM2QEGW Fix query-all-tables test count, there are more tables now
  • [28] FDHQ2OLB Forgot to commit
  • [29] G2ZB6464 first test, not yet in buildprocess
  • [30] WZ7PXAIT Doh

Change contents

  • replacement in release.nix at line 115
    [3.1272][3.1272:1343]()
    gitAndTools.topGit mercurial subversion bazaar openssl bzip2
    [3.1272]
    [3.1343]
    gitAndTools.topGit mercurial darcs subversion bazaar openssl bzip2
  • replacement in release.nix at line 122
    [5.416][5.416:511]()
    gzip bzip2 lzma gnutar unzip git gitAndTools.topGit mercurial gnused graphviz bazaar
    [5.416]
    [5.511]
    gzip bzip2 lzma gnutar unzip git gitAndTools.topGit mercurial darcs gnused graphviz bazaar
  • replacement in tests/evaluation-tests.pl at line 10
    [5.969][2.181:211]()
    use Test::Simple tests => 68;
    [5.969]
    [5.998]
    use Test::Simple tests => 72;
  • edit in tests/evaluation-tests.pl at line 105
    [5.1748]
    [5.1748]
    },
    {
    name => "darcs",
    nixexpr => "darcs-input.nix",
    type => "darcs",
    uri => "$jobsBaseUri/darcs-repo",
    update => getcwd . "/jobs/darcs-update.sh"
  • file addition: darcs-input.nix (----------)
    [5.1729]
    with import ./config.nix;
    { src }:
    {
    copy =
    mkDerivation {
    name = "git-input";
    builder = ./scm-builder.sh;
    inherit src;
    };
    }
  • file addition: darcs-update.sh (---r------)
    [5.1729]
    #! /bin/sh
    set -e
    repo="$1"
    STATE_FILE=$(pwd)/.hg-state
    if test -e $STATE_FILE; then
    state=$(cat $STATE_FILE)
    test $state -gt 1 && state=0
    else
    state=0;
    fi
    case $state in
    (0) echo "::Create repo. -- continue -- updated::"
    mkdir darcs-repo
    darcs init --repodir darcs-repo
    touch darcs-repo/file
    darcs add --repodir darcs-repo file
    darcs record --repodir darcs-repo -a -l -m "add a file" file -A foobar@bar.bar
    ;;
    (*) echo "::End. -- stop -- nothing::" ;;
    esac
    echo $(($state + 1)) > $STATE_FILE
  • replacement in tests/query-all-tables.pl at line 10
    [5.497][4.5466:5496]()
    use Test::Simple tests => 45;
    [5.497]
    [5.527]
    use Test::Simple tests => 42;