* Check and install libvirt with Homebrew
macOS does not have apt, dnf or yum. Add checking for homebrew for
installing libvirt.
* Use platform timeout for tests
* Add timeout detection to test/util.sh
* Use $timeout for shell test requiring timeout
14 lines
190 B
Bash
14 lines
190 B
Bash
# common settings and functions for test scripts
|
|
|
|
if [[ $(uname) == "Darwin" ]] ; then
|
|
export timeout="gtimeout"
|
|
else
|
|
export timeout="timeout"
|
|
fi
|
|
|
|
fail_test()
|
|
{
|
|
echo "FAIL: $@"
|
|
exit 1
|
|
}
|