summaryrefslogtreecommitdiff
path: root/test/script/artifact.et
blob: f1fc74e223a2a179b2a31106d4057edb0581970e (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
module artifact

asset scripts:
    path: ../asset/artifact


test ExtractArtifact:
    node n
    local:
        spawn on n as p args [ "${scripts.path}/minici.yaml", "run", "generate" ]
        expect /job-finish generate done/ from p

    local:
        spawn on n as p args [ "${scripts.path}/minici.yaml", "extract", "generate.first", "extracted" ]
    local:
        shell on n as s:
            cat ./extracted
        expect /content 1/ from s

    local:
        spawn on n as p args [ "${scripts.path}/minici.yaml", "extract", "generate.second", "generate.third", "." ]
    local:
        shell on n as s:
            cat ./f2
            cat ./f3
        expect /content 2/ from s
        expect /content 3/ from s