Made unit test runner detect paths automatically

This commit is contained in:
Pauli Nieminen 2008-08-18 14:52:00 +00:00
parent afaba69c56
commit eafbb24f8b
2 changed files with 5 additions and 22 deletions

View File

@ -1,19 +0,0 @@
# This file is loaded by all unit test scripts to settup correct worknig paths
#/*
# Copyright (C) 2008 by Pauli Nieminen <paniemin@cc.hut.fi>
# Part of the Battle for Wesnoth Project http://www.wesnoth.org/
#
# This program is free software; you can redistribute it and/or modify
# it under the terms of the GNU General Public License version 2
# or at your option any later version.
# This program is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY.
#
# See the COPYING file for more details.
#*/
SVNDIR="/path/to/wesnoth/trunk"
WEBDIR="/path/to/tests/htdocs"
AUTOTESTDIR="/path/to/tests/autotester"

View File

@ -13,11 +13,13 @@
#*/
FULL_PATH=`dirname $(readlink -f $0)`
source $FULL_PATH/path_settup.sh
#source $FULL_PATH/path_settup.sh
export SSH_AUTH_SOCK=`find /tmp/keyring* -name ssh`
export DISPLAY=:0.0
cd $SVNDIR
nice php -f ${AUTOTESTDIR}/run_unit_tests.php $WEBDIR
WEBDIR=$FULL_PATH/../htdocs
cd $FULL_PATH
nice php -f run_unit_tests.php $WEBDIR
#> $FULL_PATH/err.log