This commit is contained in:
parent
aa2ff7b2f0
commit
2f3113f55d
11742 changed files with 1223940 additions and 0 deletions
57
unikernel/duniverse/mirage/test/functoria/e2e/context.t
Normal file
57
unikernel/duniverse/mirage/test/functoria/e2e/context.t
Normal file
|
|
@ -0,0 +1,57 @@
|
|||
Query package - no target - x.context
|
||||
$ ./test.exe query packages --context-file=context/x.context -f context/config.ml
|
||||
"fmt" { ?monorepo }
|
||||
"mirage-runtime" { ?monorepo }
|
||||
"x" { ?monorepo }
|
||||
|
||||
Query package - no target - y.context
|
||||
$ ./test.exe query packages --context-file=context/y.context -f context/config.ml
|
||||
"fmt" { ?monorepo }
|
||||
"mirage-runtime" { ?monorepo }
|
||||
"y" { ?monorepo }
|
||||
|
||||
Query package - x target - y.context
|
||||
$ ./test.exe query packages -t x --context-file=context/y.context -f context/config.ml
|
||||
"fmt" { ?monorepo }
|
||||
"mirage-runtime" { ?monorepo }
|
||||
"x" { ?monorepo }
|
||||
|
||||
Query package - y target - x.context
|
||||
$ ./test.exe query packages -t y --context-file=context/x.context -f context/config.ml
|
||||
"fmt" { ?monorepo }
|
||||
"mirage-runtime" { ?monorepo }
|
||||
"y" { ?monorepo }
|
||||
|
||||
Describe - no target - x.context
|
||||
$ ./test.exe describe --context-file=context/x.context -f context/config.ml
|
||||
Name noop
|
||||
Keys target=x,
|
||||
vote=cat (default),
|
||||
warn_error=false (default)
|
||||
|
||||
Describe - no target - y.context
|
||||
$ ./test.exe describe --context-file=context/y.context -f context/config.ml
|
||||
Name noop
|
||||
Keys target=y,
|
||||
vote=cat (default),
|
||||
warn_error=false (default)
|
||||
|
||||
Describe - x target - y.context
|
||||
$ ./test.exe describe -t x --context-file=context/y.context -f context/config.ml
|
||||
Name noop
|
||||
Keys target=x,
|
||||
vote=cat (default),
|
||||
warn_error=false (default)
|
||||
|
||||
Describe - y target - x.context
|
||||
$ ./test.exe describe -t y --context-file=context/x.context -f context/config.ml
|
||||
Name noop
|
||||
Keys target=y,
|
||||
vote=cat (default),
|
||||
warn_error=false (default)
|
||||
|
||||
Bad context cache
|
||||
$ ./test.exe configure -t nonexistent --context-file=context/z.context -f context/config.ml 2>&1 | tr -d \'
|
||||
test.exe: [WARNING] Skipping version check, since our_version ("1.0~test") fails to parse: only digits and . allowed in version
|
||||
Usage: test configure [--help] [-t ENUM] [OPTION]…
|
||||
test: option -t: invalid value nonexistent, expected either y or x
|
||||
Loading…
Add table
Add a link
Reference in a new issue