mirror of
https://github.com/clearlinux/swupd-client.git
synced 2026-09-02 11:41:50 +00:00
42 lines
570 B
Bash
Executable File
42 lines
570 B
Bash
Executable File
#!/usr/bin/env bats
|
|
|
|
load "../testlib"
|
|
|
|
test_setup() {
|
|
|
|
# do nothing
|
|
return
|
|
|
|
}
|
|
|
|
test_teardown() {
|
|
|
|
# do nothing
|
|
return
|
|
|
|
}
|
|
|
|
@test "USA001: Verify the script for autocomplete exists" {
|
|
|
|
assert_file_exists "$SWUPD_DIR"/swupd.bash
|
|
|
|
}
|
|
|
|
@test "USA002: Verify the autocomplete syntax" {
|
|
|
|
bash "$SWUPD_DIR"/swupd.bash
|
|
|
|
}
|
|
|
|
@test "USA003: Autocomplete has autoupdate" {
|
|
|
|
grep -q '("autoupdate")' "$SWUPD_DIR"/swupd.bash
|
|
|
|
}
|
|
|
|
@test "USA004: Autocomplete has expected hashdump opts" {
|
|
|
|
grep -q 'opts="--help --no-xattrs --path --debug --quiet "' "$SWUPD_DIR"/swupd.bash
|
|
|
|
}
|