Author: suokko
Date: Mon Aug 18 17:54:53 2008
New Revision: 28714

URL: http://svn.gna.org/viewcvs/wesnoth?rev=28714&view=rev
Log:
Added install script to settup unit test website

Added:
    branches/resources/tests.wesnoth.org/apache/
    branches/resources/tests.wesnoth.org/apache/test_website.conf
    branches/resources/tests.wesnoth.org/install_tests.sh   (with props)
Modified:
    branches/resources/tests.wesnoth.org/autotester/run_unit_tests.sh

Added: branches/resources/tests.wesnoth.org/apache/test_website.conf
URL: 
http://svn.gna.org/viewcvs/wesnoth/branches/resources/tests.wesnoth.org/apache/test_website.conf?rev=28714&view=auto
==============================================================================
--- branches/resources/tests.wesnoth.org/apache/test_website.conf (added)
+++ branches/resources/tests.wesnoth.org/apache/test_website.conf Mon Aug 18 
17:54:53 2008
@@ -1,0 +1,8 @@
+Alias /tests/ "/path/to/htdocs/"
+
+<Directory "/path/to/htdocs/">
+       AllowOverride None
+       Order allow,deny
+       Allow from all
+</directory>
+

Modified: branches/resources/tests.wesnoth.org/autotester/run_unit_tests.sh
URL: 
http://svn.gna.org/viewcvs/wesnoth/branches/resources/tests.wesnoth.org/autotester/run_unit_tests.sh?rev=28714&r1=28713&r2=28714&view=diff
==============================================================================
--- branches/resources/tests.wesnoth.org/autotester/run_unit_tests.sh (original)
+++ branches/resources/tests.wesnoth.org/autotester/run_unit_tests.sh Mon Aug 
18 17:54:53 2008
@@ -20,6 +20,6 @@
 
 WEBDIR=$FULL_PATH/../htdocs
 
-cd $FULL_PATH
-nice php -f run_unit_tests.php $WEBDIR
+cd $FULL_PATH/../trunk
+nice php -f ../autotester/run_unit_tests.php $WEBDIR
 #> $FULL_PATH/err.log

Added: branches/resources/tests.wesnoth.org/install_tests.sh
URL: 
http://svn.gna.org/viewcvs/wesnoth/branches/resources/tests.wesnoth.org/install_tests.sh?rev=28714&view=auto
==============================================================================
--- branches/resources/tests.wesnoth.org/install_tests.sh (added)
+++ branches/resources/tests.wesnoth.org/install_tests.sh Mon Aug 18 17:54:53 
2008
@@ -1,0 +1,58 @@
+
+if [ ! $# -eq 1 ];
+then
+       echo "You must give parameter telling which directory you want to use 
for installing website"
+       exit 1
+fi
+INSTALL_DIR=$1
+
+svn export svn://svn.gna.org/svn/wesnoth/branches/resources/tests.wesnoth.org/ 
$INSTALL_DIR
+
+cd $INSTALL_DIR
+
+CURRENT_PATH=`dirname $(readlink -f $0)`
+
+# Get addodb lite
+wget 
"http://downloads.sourceforge.net/adodblite/adodb_lite1.42.tar.gz?modtime=1168540426&big_mirror=0";
+tar xf adodb_lite1.42.tar.gz
+rm adodb_lite1.42.tar.gz
+
+#get smarty
+wget "http://www.smarty.net/do_download.php?download_file=Smarty-2.6.20.tar.gz";
+tar xf Smarty-2.6.20.tar.gz
+mv Smarty-2.6.20/* smarty_workdir/
+rm -rf Smarty-2.6.20
+rm Smarty-2.6.20.tar.gz
+
+
+#copy configure from template
+cp include/configuration.php.template include/configuration.php
+cp include/settup.php.template include/settup.php
+
+#Make svn checkout
+svn co svn://svn.gna.org/svn/wesnoth/trunk/ trunk
+#Use this instead of previous line if you want to copy existing svn tree
+#cp -R /path/to/svntree trunk
+
+#Configure scons build enviroment
+cd trunk
+scons default_targets=test build=debug extra_flags_debug="-march=native"
+cd ..
+
+# install crontab entry
+crontab -l > crontab
+echo " 16 *   *   *   *    $CURRENT_PATH/autotester/run_unit_tests.sh" >> 
crontab
+crontab - < crontab
+
+echo ""
+echo "******* NOTES *****"
+echo "You have to still do a few things before test are working"
+echo " 1. Add database connection information"
+echo "Edit include/settup.php file so that all relevant info to connect"
+echo "to mysql server is present there"
+echo " 2. Configure website functionality"
+echo "Edit include/configuration.php way that you want website function"
+echo " 3. Configure apache"
+echo "edit paths in apache/test_website.conf and copy it to 
/etc/apache2/conf.d/"
+echo " 4. run unit tests to settup database"
+echo "autotester/run_unit_tests.sh"

Propchange: branches/resources/tests.wesnoth.org/install_tests.sh
------------------------------------------------------------------------------
    svn:eol-style = native

Propchange: branches/resources/tests.wesnoth.org/install_tests.sh
------------------------------------------------------------------------------
    svn:executable = *


_______________________________________________
Wesnoth-commits mailing list
[email protected]
https://mail.gna.org/listinfo/wesnoth-commits

Reply via email to