DeclarativeJobsets: test basic functionality
This commit is contained in:
29
t/jobs/declarative/generator.nix
Normal file
29
t/jobs/declarative/generator.nix
Normal file
@ -0,0 +1,29 @@
|
||||
{ jobspath, ... }:
|
||||
with import ../config.nix;
|
||||
{
|
||||
jobsets = mkDerivation {
|
||||
name = "jobsets";
|
||||
builder = ./generator.sh;
|
||||
jobsets = builtins.toJSON {
|
||||
my-jobset = {
|
||||
enabled = 1;
|
||||
hidden = false;
|
||||
description = "my-declarative-jobset";
|
||||
nixexprinput = "src";
|
||||
nixexprpath = "one-job.nix";
|
||||
checkinterval = 300;
|
||||
schedulingshares = 100;
|
||||
enableemail = false;
|
||||
emailoverride = "";
|
||||
keepnr = 3;
|
||||
inputs = {
|
||||
src = {
|
||||
type = "path";
|
||||
value = jobspath;
|
||||
emailresponsible = false;
|
||||
};
|
||||
};
|
||||
};
|
||||
};
|
||||
};
|
||||
}
|
3
t/jobs/declarative/generator.sh
Executable file
3
t/jobs/declarative/generator.sh
Executable file
@ -0,0 +1,3 @@
|
||||
#! /bin/sh
|
||||
|
||||
echo "$jobsets" > $out
|
Reference in New Issue
Block a user