Skip to content

Commit

Permalink
test: add raw runtime-config tests
Browse files Browse the repository at this point in the history
These tests are basically a clone of the umoci-config(1) tests, but
using just umoci-raw-runtime-config(1) to generate the config.json.

Signed-off-by: Aleksa Sarai <asarai@suse.de>
  • Loading branch information
cyphar committed Apr 10, 2017
1 parent fb1bfea commit 2d8b438
Show file tree
Hide file tree
Showing 2 changed files with 686 additions and 0 deletions.
24 changes: 24 additions & 0 deletions test/help.bats
Original file line number Diff line number Diff line change
Expand Up @@ -90,6 +90,30 @@ load helpers
[ "$status" -eq 0 ]
[[ "${lines[1]}" =~ "umoci tag"+ ]]

umoci raw --help
[ "$status" -eq 0 ]
[[ "${lines[1]}" =~ "umoci raw"+ ]]

umoci raw -h
[ "$status" -eq 0 ]
[[ "${lines[1]}" =~ "umoci raw"+ ]]

umoci raw runtime-config --help
[ "$status" -eq 0 ]
[[ "${lines[1]}" =~ "umoci raw runtime-config"+ ]]

umoci raw runtime-config -h
[ "$status" -eq 0 ]
[[ "${lines[1]}" =~ "umoci raw runtime-config"+ ]]

umoci raw config --help
[ "$status" -eq 0 ]
[[ "${lines[1]}" =~ "umoci raw runtime-config"+ ]]

umoci raw config -h
[ "$status" -eq 0 ]
[[ "${lines[1]}" =~ "umoci raw runtime-config"+ ]]

umoci remove --help
[ "$status" -eq 0 ]
[[ "${lines[1]}" =~ "umoci remove"+ ]]
Expand Down
Loading

0 comments on commit 2d8b438

Please sign in to comment.