tests: add jobsdir and testdir to ctx hash
[?]
Mar 5, 2021, 1:22 AM
YIZWKGFIITUYV2TW5RGMXY4IGHHIKHJWJ3ZG53LWW3GBYHR4LW4QCDependencies
- [2]
F7WJVMRVtests/input-types: split out scminputs into individual tests - [3]
4QI6G7YBtests: replace the flat list of contexts with a hash - [4]
HENEI752evaluate-dependent-jobsets: clean up test to be more clear - [5]
PY5GVGC7Implemented quoted strings support in hydra-build-products to allow file names with spaces + testcase - [6]
3AKZKWCRRunCommand: Test - [7]
3G475GRTSplit out dependent tests in to its own .t - [8]
UIA3ULNUGive each test its own Nix directories - [9]
OWRS526HCreate an ephemeral PostgreSQL database per test - [10]
QIW2WZKWFix indentation - [11]
VU2OLHD2Move most of AddBuilds to hydra-eval-jobset - [12]
ZTYKNDOLMove tests for SCM inputs in to its own .t - [13]
HX4QYOYAadd first evaluations tests - [14]
FAIJDQKZ - [15]
5SMQ2PLKFix tests - [16]
E4TV6NH6RunCommand: pass homepage, description, license, system, and nixname - [17]
SBKX3YH2cleanup - [18]
3PNG7NIBRemove trailing whitespace
Change contents
- replacement in tests/build-products.t at line 18
my $jobset = createBaseJobset("build-products", "build-products.nix");my $jobset = createBaseJobset("build-products", "build-products.nix", $ctx{jobsdir}); - replacement in tests/evaluate-basic.t at line 19
my $jobset = createBaseJobset("basic", "basic.nix");my $jobset = createBaseJobset("basic", "basic.nix", $ctx{jobsdir}); - replacement in tests/evaluate-basic.t at line 32
done_testing;[4.1142]done_testing; - replacement in tests/evaluate-dependent-jobsets.t at line 16
my $jobset = createJobsetWithOneInput("build-output-as-input", "build-output-as-input.nix", "build1", "build", "build1");my $jobset = createJobsetWithOneInput("build-output-as-input", "build-output-as-input.nix", "build1", "build", "build1", $ctx{jobsdir}); - replacement in tests/input-types/bzr-checkout.t at line 6
(my $datadir, my $pgsql) = test_init();my %ctx = test_init(); - replacement in tests/input-types/bzr-checkout.t at line 24
datadir => $datadir,testdir => getcwd,datadir => $ctx{tmpdir},testdir => $ctx{testdir},jobsdir => $ctx{jobsdir}, - replacement in tests/input-types/bzr.t at line 6
(my $datadir, my $pgsql) = test_init();my %ctx = test_init(); - replacement in tests/input-types/bzr.t at line 24
datadir => $datadir,testdir => getcwd,datadir => $ctx{tmpdir},testdir => $ctx{testdir},jobsdir => $ctx{jobsdir}, - replacement in tests/input-types/darcs.t at line 6
(my $datadir, my $pgsql) = test_init();my %ctx = test_init(); - replacement in tests/input-types/darcs.t at line 24
datadir => $datadir,testdir => getcwd,datadir => $ctx{tmpdir},testdir => $ctx{testdir},jobsdir => $ctx{jobsdir}, - replacement in tests/input-types/deepgit.t at line 6
(my $datadir, my $pgsql) = test_init();my %ctx = test_init(); - replacement in tests/input-types/deepgit.t at line 25
datadir => $datadir,testdir => getcwd,datadir => $ctx{tmpdir},testdir => $ctx{testdir},jobsdir => $ctx{jobsdir}, - replacement in tests/input-types/git-rev.t at line 6
(my $datadir, my $pgsql) = test_init();my %ctx = test_init(); - replacement in tests/input-types/git-rev.t at line 25
datadir => $datadir,testdir => getcwd,datadir => $ctx{tmpdir},testdir => $ctx{testdir},jobsdir => $ctx{jobsdir}, - replacement in tests/input-types/git.t at line 6
(my $datadir, my $pgsql) = test_init();my %ctx = test_init(); - replacement in tests/input-types/git.t at line 24
datadir => $datadir,testdir => getcwd,datadir => $ctx{tmpdir},testdir => $ctx{testdir},jobsdir => $ctx{jobsdir}, - replacement in tests/input-types/hg.t at line 6
(my $datadir, my $pgsql) = test_init();my %ctx = test_init(); - replacement in tests/input-types/hg.t at line 24
datadir => $datadir,testdir => getcwd,datadir => $ctx{tmpdir},testdir => $ctx{testdir},jobsdir => $ctx{jobsdir}, - replacement in tests/input-types/svn-checkout.t at line 6
(my $datadir, my $pgsql) = test_init();my %ctx = test_init(); - replacement in tests/input-types/svn-checkout.t at line 24
datadir => $datadir,testdir => getcwd,datadir => $ctx{tmpdir},testdir => $ctx{testdir},jobsdir => $ctx{jobsdir}, - replacement in tests/input-types/svn.t at line 6
(my $datadir, my $pgsql) = test_init();my %ctx = test_init(); - replacement in tests/input-types/svn.t at line 24
datadir => $datadir,testdir => getcwd,datadir => $ctx{tmpdir},testdir => $ctx{testdir},jobsdir => $ctx{jobsdir}, - replacement in tests/lib/Setup.pm at line 8
use Cwd;use File::Basename;use Cwd qw(abs_path getcwd); - edit in tests/lib/Setup.pm at line 67
db => $pgsql, - replacement in tests/lib/Setup.pm at line 69
db => $pgsqltestdir => abs_path(dirname(__FILE__) . "/.."),jobsdir => abs_path(dirname(__FILE__) . "/../jobs") - replacement in tests/lib/Setup.pm at line 104
my ($jobsetName, $nixexprpath) = @_;my ($jobsetName, $nixexprpath, $jobspath) = @_; - replacement in tests/lib/Setup.pm at line 114
$jobsetinputals = $jobsetinput->jobsetinputalts->create({altnr => 0, value => getcwd."/jobs"});$jobsetinputals = $jobsetinput->jobsetinputalts->create({altnr => 0, value => $jobspath}); - replacement in tests/lib/Setup.pm at line 120
my ($jobsetName, $nixexprpath, $name, $type, $uri) = @_;my $jobset = createBaseJobset($jobsetName, $nixexprpath);my ($jobsetName, $nixexprpath, $name, $type, $uri, $jobspath) = @_;my $jobset = createBaseJobset($jobsetName, $nixexprpath, $jobspath); - edit in tests/lib/TestScmInput.pm at line 39
my $jobsdir = $args{jobsdir} // die "required arg 'jobsdir' missing"; - replacement in tests/lib/TestScmInput.pm at line 53
my $jobset = createJobsetWithOneInput($name, $expr, 'src', $type, $uri);my $jobset = createJobsetWithOneInput($name, $expr, 'src', $type, $uri, $jobsdir); - replacement in tests/plugins/runcommand.t at line 26
my $jobset = createBaseJobset("basic", "runcommand.nix");my $jobset = createBaseJobset("basic", "runcommand.nix", $ctx{jobsdir}); - replacement in tests/plugins/runcommand.t at line 141
done_testing;[4.6967]done_testing;