s 2 buildbot: use make test for tests

This commit is contained in:
lassulus 2016-08-05 00:03:41 +02:00
parent 25ab30726a
commit e58635b1d2

View File

@ -91,37 +91,24 @@
''; '';
builder = { builder = {
fast-tests = '' fast-tests = ''
f = util.BuildFactory() f = util.BuildFactory()
f.addStep(grab_repo) f.addStep(grab_repo)
for i in [ "test-centos7", "wolf", "test-failing" ]:
addShell(f,name="populate-{}".format(i),env=env,
command=nixshell + \
["{}(make system={} populate debug=true)".format("!" if "failing" in i else "",i)])
# XXX we must prepare ./retiolum.rsa_key.priv for secrets to work for i in [ "test-minimal-deploy", "test-all-krebs-modules", "wolf", "test-centos7" "test-failing" ]:
addShell(f,name="instantiate-test-all-modules",env=env, addShell(f,name="build-{}".format(i),env=env,
command=nixshell + \ command=nixshell + \
["touch retiolum.rsa_key.priv; \ ["mkdir -p /tmp/testbuild/$LOGNAME && touch /tmp/testbuild/$LOGNAME/.populate; \
nix-instantiate \ make \
--show-trace --eval --strict --json \ test \
-I nixos-config=./shared/1systems/test-all-krebs-modules.nix \ target=$LOGNAME@${config.krebs.build.host.name}/tmp/testbuild/$LOGNAME \
-I secrets=. \ method=eval \
-A config.system.build.toplevel"] system={}".format(i)])
)
addShell(f,name="build-test-minimal",env=env, bu.append(util.BuilderConfig(name="fast-tests",
command=nixshell + \ slavenames=slavenames,
["nix-instantiate \ factory=f))
--show-trace --eval --strict --json \
-I nixos-config=./shared/1systems/test-minimal-deploy.nix \
-I secrets=. \
-A config.system.build.toplevel"]
)
bu.append(util.BuilderConfig(name="fast-tests", '';
slavenames=slavenames,
factory=f))
'';
# this build will try to build against local nixpkgs # this build will try to build against local nixpkgs
# TODO change to do a 'local' populate and use the retrieved nixpkgs # TODO change to do a 'local' populate and use the retrieved nixpkgs
build-local = '' build-local = ''