test, integration: Add an integration test framework

This adds an initial implementation of an integration test framework for
writing more complicated tests. In particular this also makes some small
additions to the mgmt core so that testing is easier.
This commit is contained in:
James Shubin
2018-03-08 21:56:08 -05:00
parent 97c11c18d0
commit f3b99b3940
11 changed files with 778 additions and 17 deletions

13
test/test-integration.sh Executable file
View File

@@ -0,0 +1,13 @@
#!/bin/bash
# this file exists to that bash completion for test names works
echo running "$0" "$@"
#ROOT="$( cd "$( dirname "${BASH_SOURCE[0]}" )" && cd .. && pwd )" # dir!
ROOT=$(dirname "${BASH_SOURCE}")/..
cd "${ROOT}"
. test/util.sh
# this test is handled as a special `go test` test
exec test/test-gotest.sh --integration $@