Commit 300c3b6a authored by Valentin Reis's avatar Valentin Reis

adds argotk tests to ci.

parent 4ad22c92
Pipeline #5334 failed with stage
in 4 minutes and 39 seconds
......@@ -3,6 +3,7 @@ before_script:
stages:
- build
- tests
.nix:
stage: build
......@@ -29,7 +30,24 @@ argotk.build:
script:
- argonix build argotk --argopkgs .
argonix.build:
testHello.build:
extends: .nix
script:
- argonix build argonix --argopkgs .
- argonix build testHello --argopkgs .
testListen.build:
extends: .nix
script:
- argonix build testListen --argopkgs .
testPerfwrapper.build:
extends: .nix
script:
- argonix build testPerfwrapper --argopkgs .
testPower.build:
extends: .nix
script:
- argonix build testPower --argopkgs .
tags:
- knl
......@@ -133,20 +133,6 @@ let
#SUDO = builtins.toPath sudoPath;
};
testBuild = command: test.overrideAttrs (old:{
buildPhase = command;
installPhase = ''
mkdir $out
cp _output/* $out/
'';
});
testHello = testBuild ''
argotk TestHello
'';
testAll = testBuild ''
argotk tests
'';
expe = test.overrideAttrs (old:{
buildInputs = old.buildInputs ++
[amg lammps qmcpack stream openmc openmc-data];
......@@ -154,6 +140,20 @@ let
OPENMC_PWD = "${argotk}/share/openmc";
});
doArgotk = command: test.overrideAttrs (old:{
buildPhase = "argotk "+command;
installPhase = ''
mkdir $out
cp _output/* $out/
'';
});
testHello = doArgotk "TestHello";
testListen = doArgotk "TestListen";
testPerfwrapper = doArgotk "TestPerfwrapper";
testPower = doArgotk "TestPower";
testSTREAM = doArgotk "TestSTREAM";
testAll = doArgotk "tests";
};
# This file re-exports a full nixpkgs-like package set.
in pkgs // argopkgs
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment