Add eval test for specific git revision
[?]
Apr 12, 2016, 8:27 PM
ABB3BIS2X3MOXUJD5CUEODSJ3QCRZ4YDSNME2AHNCPG5OJ2F2I5QCDependencies
- [2]
L7RW467ZAdd a test for darcs inputs. - [3]
3RL7VFKEAdd tests for "git describe --long". - [4]
WFJ3ZPRMadd tests for scm inputs - [5]
PY5GVGC7Implemented quoted strings support in hydra-build-products to allow file names with spaces + testcase - [6]
HX4QYOYAadd first evaluations tests - [7]
FAIJDQKZ - [8]
RBZRCTALhydra: fixed and re-enabled evaluation tests - [9]
5SMQ2PLKFix tests - [10]
SBKX3YH2cleanup - [11]
HE3GX5IPOptimize fetch-git.
Change contents
- replacement in tests/evaluation-tests.pl at line 10
use Test::Simple tests => 72;use Test::Simple tests => 76; - edit in tests/evaluation-tests.pl at line 79
name => "git-rev",nixexpr => "git-rev-input.nix",type => "git",uri => "$jobsBaseUri/git-repo 7f60df502b96fd54bbfa64dd94b56d936a407701",update => getcwd . "/jobs/git-rev-update.sh"},{ - file addition: git-rev-input.nix[3.1729]
with import ./config.nix;{ src }:{copy =mkDerivation {name = "git-rev-input";builder = ./scm-builder.sh;inherit src;};} - file addition: git-rev-update.sh[3.1729]
#! /bin/shset -erepo=git-repoexport HOME=$(pwd)STATE_FILE=$(pwd)/.git-rev-stateif test -e $STATE_FILE; thenstate=1rm $STATE_FILEelsestate=0touch $STATE_FILEfiecho "STATE: $state"case $state in(0) echo "::Create repo. -- continue -- updated::"git init $repocd $repogit config --global user.email "you@example.com"git config --global user.name "Your Name"touch foogit add fooGIT_AUTHOR_DATE="1970-01-01T00:00:00 +0000" GIT_COMMITTER_DATE="1970-01-01T00:00:00 +0000" git commit -m "Add foo"git tag -a -m "First Tag." tag0;;(*) echo "::End. -- stop -- nothing::"rm -rf $repo;;esac