[Modeling-cvs] SF.net SVN: modeling: [970] trunk/ProjectModeling/Modeling/tests/tests.sh
Status: Abandoned
Brought to you by:
sbigaret
From: <sbi...@us...> - 2006-02-25 23:48:06
|
Revision: 970 Author: sbigaret Date: 2006-02-25 15:47:54 -0800 (Sat, 25 Feb 2006) ViewCVS: http://svn.sourceforge.net/modeling/?rev=970&view=rev Log Message: ----------- Added Added Paths: ----------- trunk/ProjectModeling/Modeling/tests/tests.sh Added: trunk/ProjectModeling/Modeling/tests/tests.sh =================================================================== --- trunk/ProjectModeling/Modeling/tests/tests.sh (rev 0) +++ trunk/ProjectModeling/Modeling/tests/tests.sh 2006-02-25 23:47:54 UTC (rev 970) @@ -0,0 +1,112 @@ +#! /bin/bash + +PYTHON21=python2.1 +PYTHON21PATH="/home/big/lib/python2.1:/home/big/lib/python2.1/site-packages:/usr/lib/python2.1:/usr/lib/python2.1/site-packages" +PYTHON22=python2.2 +PYTHON22PATH="/home/big/lib/python2.2:/home/big/lib/python2.2/site-packages" +PYTHON23=python2.3 +PYTHON23PATH="/home/big/lib/python2.3:/home/big/lib/python2.3/site-packages" +PYTHON24=python2.4 +PYTHON24PATH="/home/big/lib/python2.4:/home/big/lib/python2.4/site-packages" + +PYTHON=$PYTHON21 +function execute() { + echo $* + $PYTHON -W 'ignore::RuntimeWarning::' $* #2>/dev/null +} + +function oracle8i() { + ORACLE_HOME=/home/u01/app/oracle/product/8.1.7; export ORACLE_HOME + cp ~/lib/python2.1/site-packages/dco2.8i.so ~/lib/python2.1/site-packages/dco2.so + cp ~/lib/python2.2/site-packages/dco2.8i.so ~/lib/python2.2/site-packages/dco2.so + cp ~/lib/python2.3/site-packages/dco2.8i.so ~/lib/python2.3/site-packages/dco2.so + cp ~/lib/python2.4/site-packages/dco2.8i.so ~/lib/python2.4/site-packages/dco2.so + \rm Oracle.cfg + ln -s Oracle8i.cfg Oracle.cfg + export MDL_ORACLE_SERVER_VERSION="8i" +} + +function oracle9i() { + export ORACLE_BASE=/home/oracle + export ORACLE_HOME=$ORACLE_BASE/OraHome + cp ~/lib/python2.1/site-packages/dco2.9i.so ~/lib/python2.1/site-packages/dco2.so + cp ~/lib/python2.2/site-packages/dco2.9i.so ~/lib/python2.2/site-packages/dco2.so + cp ~/lib/python2.3/site-packages/dco2.9i.so ~/lib/python2.3/site-packages/dco2.so + cp ~/lib/python2.4/site-packages/dco2.9i.so ~/lib/python2.4/site-packages/dco2.so + \rm Oracle.cfg + ln -s Oracle9i.cfg Oracle.cfg + export MDL_ORACLE_SERVER_VERSION="9i" +} + +function run_tests() { + execute ./run.py + + # Regenerate test DBs + execute ./test_EditingContext_Global.py -d Postgresql -r + execute ./test_EditingContext_Global.py -d MySQL -r + oracle8i ; execute ./test_EditingContext_Global.py -d Oracle -r + oracle9i ; execute ./test_EditingContext_Global.py -d Oracle -r + execute ./test_EditingContext_Global.py -d SQLite -r + + execute ./test_EditingContext_Global_Inheritance.py -d Postgresql -r + execute ./test_EditingContext_Global_Inheritance.py -d MySQL -r + oracle8i ; execute ./test_EditingContext_Global_Inheritance.py -d Oracle -r + oracle9i ; execute ./test_EditingContext_Global_Inheritance.py -d Oracle -r + execute ./test_EditingContext_Global_Inheritance.py -d SQLite -r + + # EC global + execute ./test_EditingContext_Global.py -d Postgresql + execute ./test_EditingContext_Global.py -d MySQL + oracle8i ; execute ./test_EditingContext_Global.py -d Oracle + oracle9i ; execute ./test_EditingContext_Global.py -d Oracle + execute ./test_EditingContext_Global.py -d SQLite + + # EC global inheritance + execute ./test_EditingContext_Global_Inheritance.py -d Postgresql + execute ./test_EditingContext_Global_Inheritance.py -d MySQL + oracle8i ; execute ./test_EditingContext_Global_Inheritance.py -d Oracle + oracle9i ; execute ./test_EditingContext_Global_Inheritance.py -d Oracle + execute ./test_EditingContext_Global_Inheritance.py -d SQLite + + # Nested EC + execute ./test_EditingContext_ParentChild.py -d Postgresql + execute ./test_EditingContext_ParentChild.py -d MySQL + oracle8i ; execute ./test_EditingContext_ParentChild.py -d Oracle + oracle9i ; execute ./test_EditingContext_ParentChild.py -d Oracle + execute ./test_EditingContext_ParentChild.py -d SQLite +} + + +echo "------------------------------------------------------------------------" +echo "Python2.1" +unset PYTHONPATH; declare -x PYTHONPATH=$PYTHON21PATH + +run_tests + +# ------------------------------------------------------------------------ + +echo "------------------------------------------------------------------------" +echo "Python2.2" +PYTHON=$PYTHON22 +unset PYTHONPATH; declare -x PYTHONPATH=$PYTHON22PATH + +run_tests + +# ------------------------------------------------------------------------ +echo "------------------------------------------------------------------------" +echo "Python2.3" +PYTHON=$PYTHON23 +unset PYTHONPATH; declare -x PYTHONPATH=$PYTHON23PATH + +run_tests + + +# ------------------------------------------------------------------------ +echo "------------------------------------------------------------------------" +echo "Python2.4" +PYTHON=$PYTHON24 +unset PYTHONPATH; declare -x PYTHONPATH=$PYTHON24PATH + +run_tests + + Property changes on: trunk/ProjectModeling/Modeling/tests/tests.sh ___________________________________________________________________ Name: svn:executable + * This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |