Commit c76a996e authored by Valentin Reis's avatar Valentin Reis

add list CI test

parent 66581c19
Pipeline #7698 failed with stages
in 3 minutes and 13 seconds
...@@ -15,17 +15,9 @@ ...@@ -15,17 +15,9 @@
let idCmd = let id = λ(a : Type) → λ(x : a) → x in id types.Cmd let idCmd = let id = λ(a : Type) → λ(x : a) → x in id types.Cmd
let makeExtended = let dhrunTemplate =
λ(daemonArg : argotypes.MkDaemon) { cmds =
→ λ(daemonOverrides : types.Cmd → types.Cmd) [] : List types.Cmd
→ λ(runArg : argotypes.MkRun)
→ λ(runOverrides : types.Cmd → types.Cmd)
→ λ(extraCmds : List types.Cmd)
→ { cmds =
[ daemonOverrides (argo.nrmd.mk daemonArg)
, runOverrides (argo.run.mk runArg)
]
# extraCmds
, verbose = , verbose =
True True
, cleaning = , cleaning =
...@@ -39,6 +31,20 @@ ...@@ -39,6 +31,20 @@
} }
: types.Config : types.Config
let makeExtended =
λ(daemonArg : argotypes.MkDaemon)
→ λ(daemonOverrides : types.Cmd → types.Cmd)
→ λ(runArg : argotypes.MkRun)
→ λ(runOverrides : types.Cmd → types.Cmd)
→ λ(extraCmds : List types.Cmd)
→ dhrunTemplate
⫽ { cmds =
[ daemonOverrides (argo.nrmd.mk daemonArg)
, runOverrides (argo.run.mk runArg)
]
# extraCmds
}
let manifests = let manifests =
{ basic = { basic =
manifestDir ++ "basic.yml" manifestDir ++ "basic.yml"
...@@ -117,7 +123,9 @@ ...@@ -117,7 +123,9 @@
let singularityRun = mkrun manifests.singularity let singularityRun = mkrun manifests.singularity
in { run = in { list =
dhrunTemplate ⫽ { cmds = [ argo.nrmd.default, argo.listen.default ] }
, run =
withDaemonNoExtras (basicRun "true") idCmd withDaemonNoExtras (basicRun "true") idCmd
, pwd = , pwd =
let somedir = "toto" let somedir = "toto"
......
let types = ../dhrunlib/types.dh
let basicCommand = ./basicCommand.dh
let list =
basicCommand
{ name =
"nrm"
, outprefix =
"nrmlist"
, outavoids =
[] : List Text
, outwants =
[] : List Text
}
⫽ { args = [ "list" ] }
: types.Cmd
in { default = list : types.Cmd }
{basic = ./basicCommand.dh, nrmd = ./nrmd.dh, run = ./run.dh, listen = ./listen.dh } { basic =
./basicCommand.dh
, nrmd =
./nrmd.dh
, run =
./run.dh
, listen =
./listen.dh
, list =
./list.dh
}
...@@ -30,6 +30,11 @@ testHello: ...@@ -30,6 +30,11 @@ testHello:
script: script:
- "argonix test hello --argopkgs $ARGOPKGS $EXTRA --verbose" - "argonix test hello --argopkgs $ARGOPKGS $EXTRA --verbose"
testHello:
extends: .test
script:
- "argonix test list --argopkgs $ARGOPKGS $EXTRA --verbose"
testListen: testListen:
extends: .test extends: .test
script: script:
......
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