add tests skeleton
Signed-off-by: Antonio Murdaca <runcom@redhat.com>
This commit is contained in:
parent
4959e12543
commit
5fb0252fd2
6 changed files with 195 additions and 3 deletions
18
test/test_runner.sh
Executable file
18
test/test_runner.sh
Executable file
|
@ -0,0 +1,18 @@
|
|||
#!/usr/bin/env bash
|
||||
set -e
|
||||
|
||||
cd "$(dirname "$(readlink -f "$BASH_SOURCE")")"
|
||||
|
||||
# Load the helpers.
|
||||
. helpers.bash
|
||||
|
||||
function execute() {
|
||||
>&2 echo "++ $@"
|
||||
eval "$@"
|
||||
}
|
||||
|
||||
# Tests to run. Defaults to all.
|
||||
TESTS=${@:-.}
|
||||
|
||||
# Run the tests.
|
||||
execute time bats --tap $TESTS
|
Loading…
Add table
Add a link
Reference in a new issue