setup.sh revision bf8267aa453e5d2a735ed732a043b77a0b355b20
07688d18834aa5666b80571c67adac916f672b39Andreas Gustafsson#!/bin/sh
d3498432822fb487e58f8f72bb5f880dd8307d7dMichael Sawyer#
0c27b3fe77ac1d5094ba3521e8142d9e7973133fMark Andrews# Copyright (C) 2004, 2007 Internet Systems Consortium, Inc. ("ISC")
bf8267aa453e5d2a735ed732a043b77a0b355b20Mark Andrews# Copyright (C) 2000, 2001 Internet Software Consortium.
0c27b3fe77ac1d5094ba3521e8142d9e7973133fMark Andrews#
0c27b3fe77ac1d5094ba3521e8142d9e7973133fMark Andrews# Permission to use, copy, modify, and/or distribute this software for any
0c27b3fe77ac1d5094ba3521e8142d9e7973133fMark Andrews# purpose with or without fee is hereby granted, provided that the above
15a44745412679c30a6d022733925af70a38b715David Lawrence# copyright notice and this permission notice appear in all copies.
6c6ccd6b330fa92d62136ec1062cc07a790a7165Automatic Updater#
9c3531d72aeaad6c5f01efe6a1c82023e1379e4dDavid Lawrence# THE SOFTWARE IS PROVIDED "AS IS" AND ISC DISCLAIMS ALL WARRANTIES WITH
813d6c9781d1fb48bb5c1d6d3415e65f7be5eeb0Andreas Gustafsson# REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY
813d6c9781d1fb48bb5c1d6d3415e65f7be5eeb0Andreas Gustafsson# AND FITNESS. IN NO EVENT SHALL ISC BE LIABLE FOR ANY SPECIAL, DIRECT,
813d6c9781d1fb48bb5c1d6d3415e65f7be5eeb0Andreas Gustafsson# INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
bfc41f13e7037e92984b41b92b4a45599315a171Andreas Gustafsson# LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE
bfc41f13e7037e92984b41b92b4a45599315a171Andreas Gustafsson# OR OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
a7c6c06fadd696512ff02f8ed29d9eb0c937824bAndreas Gustafsson# PERFORMANCE OF THIS SOFTWARE.
f9da4a8e543cf895b6171773e75d343b2914a7e7Mark Andrews
260696e5e3d7ab7b8312614487c5f5d2302c65f4Andreas Gustafsson# $Id: setup.sh,v 1.11 2007/06/19 23:47:00 tbox Exp $
f9da4a8e543cf895b6171773e75d343b2914a7e7Mark Andrews
260696e5e3d7ab7b8312614487c5f5d2302c65f4Andreas Gustafsson#
bfc41f13e7037e92984b41b92b4a45599315a171Andreas Gustafsson# Run a system test.
aade2614cb08f69666ee5e48326fd5f656a4585aAndreas Gustafsson#
2383eb527269d333df4222da20e4b422c3662daaEvan Hunt
5474061e76d524bd0dcf2f97499a75ae77bc37afMichael SawyerSYSTEMTESTTOP=.
d29c05346a72817adfc5a9a4b9cf0c7f73d629b0Mark Andrews. $SYSTEMTESTTOP/conf.sh
d29c05346a72817adfc5a9a4b9cf0c7f73d629b0Mark Andrews
d29c05346a72817adfc5a9a4b9cf0c7f73d629b0Mark Andrewstest $# -gt 0 || { echo "usage: $0 test-directory" >&2; exit 1; }
d29c05346a72817adfc5a9a4b9cf0c7f73d629b0Mark Andrews
d29c05346a72817adfc5a9a4b9cf0c7f73d629b0Mark Andrewstest=$1
d29c05346a72817adfc5a9a4b9cf0c7f73d629b0Mark Andrewsshift
bfc41f13e7037e92984b41b92b4a45599315a171Andreas Gustafsson
d29c05346a72817adfc5a9a4b9cf0c7f73d629b0Mark Andrewstest -d $test || { echo "$0: $test: no such test" >&2; exit 1; }
2383eb527269d333df4222da20e4b422c3662daaEvan Hunt
d29c05346a72817adfc5a9a4b9cf0c7f73d629b0Mark Andrews# Set up any dynamically generated test data
d29c05346a72817adfc5a9a4b9cf0c7f73d629b0Mark Andrewsif test -f $test/setup.sh
d29c05346a72817adfc5a9a4b9cf0c7f73d629b0Mark Andrewsthen
d29c05346a72817adfc5a9a4b9cf0c7f73d629b0Mark Andrews ( cd $test && sh setup.sh "$@" )
d29c05346a72817adfc5a9a4b9cf0c7f73d629b0Mark Andrewsfi
2383eb527269d333df4222da20e4b422c3662daaEvan Hunt
5474061e76d524bd0dcf2f97499a75ae77bc37afMichael Sawyer
99f467f016d9354c7548b7d24b65ac986b118a52Andreas Gustafsson