Blame bin/tests/virtual-time/setup.sh
|
Packit Service |
ae04f2 |
#!/bin/sh
|
|
Packit Service |
ae04f2 |
#
|
|
Packit Service |
ae04f2 |
# Copyright (C) Internet Systems Consortium, Inc. ("ISC")
|
|
Packit Service |
ae04f2 |
#
|
|
Packit Service |
ae04f2 |
# This Source Code Form is subject to the terms of the Mozilla Public
|
|
Packit Service |
ae04f2 |
# License, v. 2.0. If a copy of the MPL was not distributed with this
|
|
Packit Service |
ae04f2 |
# file, You can obtain one at http://mozilla.org/MPL/2.0/.
|
|
Packit Service |
ae04f2 |
#
|
|
Packit Service |
ae04f2 |
# See the COPYRIGHT file distributed with this work for additional
|
|
Packit Service |
ae04f2 |
# information regarding copyright ownership.
|
|
Packit Service |
ae04f2 |
|
|
Packit Service |
ae04f2 |
#
|
|
Packit Service |
ae04f2 |
# Run a system test.
|
|
Packit Service |
ae04f2 |
#
|
|
Packit Service |
ae04f2 |
|
|
Packit Service |
ae04f2 |
SYSTEMTESTTOP=.
|
|
Packit Service |
ae04f2 |
. $SYSTEMTESTTOP/conf.sh
|
|
Packit Service |
ae04f2 |
|
|
Packit Service |
ae04f2 |
test $# -gt 0 || { echo "usage: $0 test-directory" >&2; exit 1; }
|
|
Packit Service |
ae04f2 |
|
|
Packit Service |
ae04f2 |
test=$1
|
|
Packit Service |
ae04f2 |
shift
|
|
Packit Service |
ae04f2 |
|
|
Packit Service |
ae04f2 |
test -d $test || { echo "$0: $test: no such test" >&2; exit 1; }
|
|
Packit Service |
ae04f2 |
|
|
Packit Service |
ae04f2 |
# Set up any dynamically generated test data
|
|
Packit Service |
ae04f2 |
if test -f $test/setup.sh
|
|
Packit Service |
ae04f2 |
then
|
|
Packit Service |
ae04f2 |
( cd $test && sh setup.sh "$@" )
|
|
Packit Service |
ae04f2 |
fi
|