mirror of
https://github.com/clearlinux/swupd-server.git
synced 2026-09-03 04:01:31 +00:00
The test suite uses BATS to emit TAP and the Automake TAP driver to consume the output. Most of the tests are basic, and full-run.bats creates a minimal update using autogenerated chroot content. Signed-off-by: Patrick McCarty <patrick.mccarty@intel.com>
16 lines
364 B
Bash
Executable File
16 lines
364 B
Bash
Executable File
#!/usr/bin/env bats
|
|
|
|
@test "create_update required arg" {
|
|
run $srcdir/swupd_create_update
|
|
[ "$status" -eq 1 ]
|
|
[[ "$output" =~ "Missing version parameter:" ]]
|
|
}
|
|
|
|
@test "create_update root priv check" {
|
|
run $srcdir/swupd_create_update -o 10
|
|
[ "$status" -eq 1 ]
|
|
[[ "$output" =~ "not being run as root.. exiting" ]]
|
|
}
|
|
|
|
# vi: ft=sh ts=8 sw=2 sts=2 et tw=80
|