mirror of
https://github.com/clearlinux/swupd-server.git
synced 2026-08-23 15:37:28 +00:00
64e65bca92
To more easily implement tests, analyze test results, etc, store each test in a separate directory and dump all logs and the web-dir content there as well. The test suite can be run with 'make check', as before, but now tests can be run individually by directly invoking the appropriate test.bats file (at toplevel, or within the test directory). Signed-off-by: Patrick McCarty <patrick.mccarty@intel.com>
27 lines
474 B
Bash
Executable File
27 lines
474 B
Bash
Executable File
#!/usr/bin/env bats
|
|
|
|
load "../swupdlib"
|
|
|
|
@test "create_update help output" {
|
|
run $CREATE_UPDATE --help
|
|
[ "$status" -eq 1 ]
|
|
run $CREATE_UPDATE -h
|
|
[ "$status" -eq 1 ]
|
|
}
|
|
|
|
@test "make_fullfiles help output" {
|
|
run $MAKE_FULLFILES --help
|
|
[ "$status" -eq 1 ]
|
|
run $MAKE_FULLFILES -h
|
|
[ "$status" -eq 1 ]
|
|
}
|
|
|
|
@test "make_pack help output" {
|
|
run $MAKE_PACK --help
|
|
[ "$status" -eq 1 ]
|
|
run $MAKE_PACK -h
|
|
[ "$status" -eq 1 ]
|
|
}
|
|
|
|
# vi: ft=sh ts=8 sw=2 sts=2 et tw=80
|