Commit 74470a03 authored by Valentin Reis's avatar Valentin Reis
Browse files

adds a blank nrm run echo command with no dhrun 'wants'.

parent 71e219dd
Pipeline #7044 failed with stages
in 2 minutes and 39 seconds
...@@ -16,133 +16,21 @@ let argIfTest = ...@@ -16,133 +16,21 @@ let argIfTest =
let Powercap = < Cap : Text | NoCap : {} > let Powercap = < Cap : Text | NoCap : {} >
let apps = in { run =
{ qmcpack = lib.makeBase
λ(isTest : Bool) ( lib.emptyMakeBaseArg "echo" basicManifest cn
→ λ(powercap : Powercap) ⫽ { args =
→ lib.extendApp [ message ]
( lib.progressAppTest , verbose =
( lib.emptyProgressAppTestArg True
"mpiexec" , cmdwants =
[ "-n" [] :List Text
, if isTest then "2" else "24" , cmdavoids =
, "qmcpack" [ "Traceback" ]
, lib.qmcPackDir ++ "/simple-H2O.xml" , timeout =
] [ 600 ] : Optional Natural
⫽ argIfTest isTest }
⫽ { cmdavoids = )
[ "Error", "error", "ERROR" ]
, powercap =
powercap
}
)
)
isTest
, lammps =
λ(isTest : Bool)
→ λ(powercap : Powercap)
→ lib.extendApp
( lib.progressAppTest
( lib.emptyProgressAppTestArg
"mpiexec"
[ "-n"
, if isTest then "2" else "24"
, "-bind-to"
, "core"
, "lmp_mpi"
, "-i"
, lib.lammpsDir ++ "/modified.lj"
]
⫽ argIfTest isTest
⫽ { cmdavoids =
[ "Error", "error", "ERROR" ]
, powercap =
powercap
}
)
)
isTest
, openmc =
λ(isTest : Bool)
→ λ(powercap : Powercap)
→ lib.extendApp
( lib.progressAppTest
( lib.emptyProgressAppTestArg
"mpiexec"
[ "-n", if isTest then "2" else "24", "openmc" ]
⫽ argIfTest isTest
⫽ { passvars =
[ "OPENMC_CROSS_SECTIONS" ]
, cmdavoids =
[ "Error", "error", "ERROR" ]
, powercap =
powercap
}
)
⫽ { pre =
[ "cp --no-preserve=mode -r " ++ lib.openmcDir ++ "/* ." ]
}
)
isTest
, amg =
λ(isTest : Bool)
→ λ(powercap : Powercap)
→ lib.extendApp
( lib.progressAppTest
( lib.emptyProgressAppTestArg
"mpiexec"
[ "-n"
, if isTest then "2" else "24"
, "amg"
, "-problem"
, "2"
, "-n"
, "90"
, "90"
, "90"
, "-P"
, "2"
, if isTest then "1" else "12"
, "1"
]
⫽ argIfTest isTest
⫽ { vars =
[ { varname = "OMP_NUM_THREADS", value = "1" } ]
, cmdavoids =
[ "Error", "error", "ERROR" ]
, powercap =
powercap
}
)
)
isTest
, stream =
λ(isTest : Bool)
→ λ(powercap : Powercap)
→ lib.extendApp
( lib.progressAppTest
( lib.emptyProgressAppTestArg "stream_c" ([] : List Text)
⫽ argIfTest isTest
⫽ { vars =
[ { varname =
"OMP_NUM_THREADS"
, value =
if isTest then "2" else "24"
}
, { varname = "OMP_PLACES", value = "cores" }
]
, cmdavoids =
[ "Error", "error", "ERROR" ]
, powercap =
powercap
}
)
)
isTest
}
in { apps =
apps
, hello = , hello =
lib.makeBase lib.makeBase
( lib.emptyMakeBaseArg "echo" basicManifest cn ( lib.emptyMakeBaseArg "echo" basicManifest cn
...@@ -207,4 +95,126 @@ in { apps = ...@@ -207,4 +95,126 @@ in { apps =
"perfwrap.json" "perfwrap.json"
} }
) )
, qmcpack =
λ(isTest : Bool)
→ λ(powercap : Powercap)
→ lib.extendApp
( lib.progressAppTest
( lib.emptyProgressAppTestArg
"mpiexec"
[ "-n"
, if isTest then "2" else "24"
, "qmcpack"
, lib.qmcPackDir ++ "/simple-H2O.xml"
]
⫽ argIfTest isTest
⫽ { cmdavoids =
[ "Error", "error", "ERROR" ]
, powercap =
powercap
}
)
)
isTest
, lammps =
λ(isTest : Bool)
→ λ(powercap : Powercap)
→ lib.extendApp
( lib.progressAppTest
( lib.emptyProgressAppTestArg
"mpiexec"
[ "-n"
, if isTest then "2" else "24"
, "-bind-to"
, "core"
, "lmp_mpi"
, "-i"
, lib.lammpsDir ++ "/modified.lj"
]
⫽ argIfTest isTest
⫽ { cmdavoids =
[ "Error", "error", "ERROR" ]
, powercap =
powercap
}
)
)
isTest
, openmc =
λ(isTest : Bool)
→ λ(powercap : Powercap)
→ lib.extendApp
( lib.progressAppTest
( lib.emptyProgressAppTestArg
"mpiexec"
[ "-n", if isTest then "2" else "24", "openmc" ]
⫽ argIfTest isTest
⫽ { passvars =
[ "OPENMC_CROSS_SECTIONS" ]
, cmdavoids =
[ "Error", "error", "ERROR" ]
, powercap =
powercap
}
)
⫽ { pre =
[ "cp --no-preserve=mode -r " ++ lib.openmcDir ++ "/* ." ]
}
)
isTest
, amg =
λ(isTest : Bool)
→ λ(powercap : Powercap)
→ lib.extendApp
( lib.progressAppTest
( lib.emptyProgressAppTestArg
"mpiexec"
[ "-n"
, if isTest then "2" else "24"
, "amg"
, "-problem"
, "2"
, "-n"
, "90"
, "90"
, "90"
, "-P"
, "2"
, if isTest then "1" else "12"
, "1"
]
⫽ argIfTest isTest
⫽ { vars =
[ { varname = "OMP_NUM_THREADS", value = "1" } ]
, cmdavoids =
[ "Error", "error", "ERROR" ]
, powercap =
powercap
}
)
)
isTest
, stream =
λ(isTest : Bool)
→ λ(powercap : Powercap)
→ lib.extendApp
( lib.progressAppTest
( lib.emptyProgressAppTestArg "stream_c" ([] : List Text)
⫽ argIfTest isTest
⫽ { vars =
[ { varname =
"OMP_NUM_THREADS"
, value =
if isTest then "2" else "24"
}
, { varname = "OMP_PLACES", value = "cores" }
]
, cmdavoids =
[ "Error", "error", "ERROR" ]
, powercap =
powercap
}
)
)
isTest
} }
...@@ -15,6 +15,11 @@ ...@@ -15,6 +15,11 @@
expire_in: 1 week expire_in: 1 week
when: always when: always
testRun:
extends: .test
script:
- "argonix build testRun --argopkgs $ARGOPKGS $EXTRA --verbose"
testHello: testHello:
extends: .test extends: .test
script: script:
......
...@@ -377,7 +377,7 @@ let ...@@ -377,7 +377,7 @@ let
let let
dhrunscript = pkgs.writeText "test.dhall" '' dhrunscript = pkgs.writeText "test.dhall" ''
let all = ${dhrunSpecs}/all-tests.dh let all = ${dhrunSpecs}/all-tests.dh
in all.apps.${app} True < NoCap = {=} | Cap : Text > in all.${app} True < NoCap = {=} | Cap : Text >
''; '';
in in
doDhrun dhrunscript; doDhrun dhrunscript;
...@@ -391,6 +391,7 @@ let ...@@ -391,6 +391,7 @@ let
doDhrun dhrunscript; doDhrun dhrunscript;
testHello = doDhrunKey "hello"; testHello = doDhrunKey "hello";
testRun = doDhrunKey "run";
testListen = doDhrunKey "listen"; testListen = doDhrunKey "listen";
testPerfwrapper = doDhrunKey "performance"; testPerfwrapper = doDhrunKey "performance";
testPower = doDhrunKey "power"; testPower = doDhrunKey "power";
...@@ -402,7 +403,7 @@ let ...@@ -402,7 +403,7 @@ let
testLAMMPS = addBI (doDhrunApp "lammps") lammps; testLAMMPS = addBI (doDhrunApp "lammps") lammps;
testQMCPack = addBI (doDhrunApp "qmcpack") qmcpack ; testQMCPack = addBI (doDhrunApp "qmcpack") qmcpack ;
testAll = test.overrideAttrs testAll = (doDhrunKey "hello").overrideAttrs
(old:{ (old:{
buildInputs = old.buildInputs ++ [ buildInputs = old.buildInputs ++ [
lammps lammps
......
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