fb565af0a0
Instead of typing out two function names to set up the test environment, type out only one. We never know if a new set up function will show up. https://github.com/containers/toolbox/pull/818
15 lines
303 B
Bash
15 lines
303 B
Bash
#!/usr/bin/env bats
|
|
|
|
load 'libs/bats-support/load'
|
|
load 'libs/bats-assert/load'
|
|
load 'libs/helpers.bash'
|
|
|
|
setup() {
|
|
_setup_environment
|
|
}
|
|
|
|
@test "version: Check version using option --version" {
|
|
run $TOOLBOX --version
|
|
|
|
assert_output --regexp '^toolbox version [0-9]+\.[0-9]+\.[0-9]+(\.[0-9]+)?$'
|
|
}
|