This repository has been archived on 2023-02-21. You can view files and clone it, but cannot push or open issues or pull requests.
2003-08-31 16:46:20 +02:00
|
|
|
#! /bin/sh
|
|
|
|
|
2003-09-28 18:24:14 +02:00
|
|
|
if [ -d root-tests ]
|
|
|
|
then
|
|
|
|
echo "Deleting old test environment..."
|
|
|
|
rm -rf root-tests
|
|
|
|
fi
|
|
|
|
|
|
|
|
echo "Installing test environment in root-tests/"
|
|
|
|
rm -rf root-tests && mkdir root-tests 2> /dev/null
|
|
|
|
make config-tests install \
|
|
|
|
GLASNOST=glasnost-tests PORT=8500 \
|
|
|
|
PREFIX=`pwd`/root-tests/usr/local \
|
|
|
|
VARPREFIX=`pwd`/root-tests/var/lib/ \
|
|
|
|
ETC_DIR=`pwd`/root-tests/etc/glasnost-tests \
|
|
|
|
LOGPREFIX=`pwd`/root-tests/var/log \
|
|
|
|
SERVER_USER=`id -u` SERVER_GROUP=`id -u` \
|
|
|
|
WEB_USER=`id -u` WEB_GROUP=`id -u` &> /dev/null
|
|
|
|
|
|
|
|
root-tests/usr/local/sbin/glasnost-tests-ctl start
|
|
|
|
(cd tmp-tests && ./launch.py $1)
|
|
|
|
root-tests/usr/local/sbin/glasnost-tests-ctl stop
|
2003-08-31 16:46:20 +02:00
|
|
|
|