3 SELF
=$
(cd $
(dirname $0); pwd -P)/$
(basename $0)
10 echo §§§§§§§§§§§§§§§§§§§§ EXECUTING TESTS FOR STABLE
14 echo §§§§§§§§§§§§§§§§§§§§ Updating Selenium tests repository
16 cd /var
/www
/drupal6.dev.civicrm.org
/public
/sites
/devel.drupal6.tests.dev.civicrm.org
/modules
/civicrm
/
17 find .
-name *~
-delete
19 echo §§§§§§§§§§§§§§§§§§§§ ...
done.
22 echo §§§§§§§§§§§§§§§§§§§§ Resetting Selenium tests database and template files
24 rm -rf /tmp
/templates_c
/
25 cd /var
/www
/drupal6.dev.civicrm.org
/public
/sites
/devel.drupal6.tests.dev.civicrm.org
/modules
/civicrm
/bin
27 rm -rf /var
/www
/drupal6.dev.civicrm.org
/public
/sites
/devel.drupal6.tests.dev.civicrm.org
/files
/civicrm
/
28 chmod -R 777 /var
/www
/drupal6.dev.civicrm.org
/public
/sites
/devel.drupal6.tests.dev.civicrm.org
/files
/
30 echo §§§§§§§§§§§§§§§§§§§§ ...
done.
33 CODE_DIR
="/home/tests/stable-suite"
36 echo §§§§§§§§§§§§§§§§§§§§ Running
test suite
39 rm -rf /tmp
/templates_c
/
41 for testName
in api_v2 api_v3 CRM WebTest
; do
43 scripts
/phpunit
--tap --log-junit tests
/reports
/logfile.
$testName.xml
-u tests
-ptests -h localhost
${testName}_AllTests
44 cd $CODE_DIR/tools
/scripts
/
47 echo §§§§§§§§§§§§§§§§§§§§ Generating
test results.
50 echo §§§§§§§§§§§§§§§§§§§§ All finished.
58 echo §§§§§§§§§§§§§§§§§§§§ EXECUTING TESTS FOR TRUNK
62 echo §§§§§§§§§§§§§§§§§§§§ Updating
test suite repository
64 cd /var
/www
/drupal7.dev.civicrm.org
/public
/sites
/stable.drupal7.tests.dev.civicrm.org
/modules
/civicrm
/
65 find .
-name *~
-delete
67 echo §§§§§§§§§§§§§§§§§§§§ ...
done.
70 echo §§§§§§§§§§§§§§§§§§§§ Resetting Selenium tests database and template files
72 rm -rf /tmp
/templates_c
/
73 cd /var
/www
/drupal7.dev.civicrm.org
/public
/sites
/stable.drupal7.tests.dev.civicrm.org
/modules
/civicrm
/bin
76 echo §§§§§§§§§§§§§§§§§§§§ ...
done.
78 rm -rf /var
/www
/drupal7.dev.civicrm.org
/public
/sites
/stable.drupal7.tests.dev.civicrm.org
/files
/civicrm
/
79 chmod -R 777 /var
/www
/drupal7.dev.civicrm.org
/public
/sites
/stable.drupal7.tests.dev.civicrm.org
/files
/
81 CODE_DIR
="/home/tests/stable-suite"
84 echo §§§§§§§§§§§§§§§§§§§§ Running
test suite
87 # for testName in api_v3; do
88 # for testName in WebTest; do
89 # for testName in api_v3 CRM; do
90 for testName
in api_v3 CRM WebTest
; do
91 # for testName in CRM; do
94 rm -rf /tmp
/templates_c
/
96 #reset the db before running webtest
97 if [ $testName == WebTest
] ; then
99 echo ============== reloading db
for Webtest
===============================
101 /var
/www
/drupal7.dev.civicrm.org
/public
/sites
/stable.drupal7.tests.dev.civicrm.org
/modules
/civicrm
/bin
/setup.sh
104 scripts
/phpunit
--tap --log-junit tests
/reports
/logfile.
$testName.xml
-u tests
-ptests -bstable_drupal7_tests_dev_civicrm -h localhost
${testName}_AllTests
105 cd $CODE_DIR/tools
/scripts
/
108 echo §§§§§§§§§§§§§§§§§§§§ Generating
test results.
111 echo §§§§§§§§§§§§§§§§§§§§ All finished.
119 echo §§§§§§§§§§§§§§§§§§§§ EXECUTING TESTS FOR TRUNK
123 echo §§§§§§§§§§§§§§§§§§§§ Updating
test suite repository
125 cd /var
/www
/drupal7.dev.civicrm.org
/public
/sites
/devel.drupal7.tests.dev.civicrm.org
/modules
/civicrm
/
126 find .
-name *~
-delete
128 echo §§§§§§§§§§§§§§§§§§§§ ...
done.
131 echo §§§§§§§§§§§§§§§§§§§§ Resetting Selenium tests database and template files
133 rm -rf /tmp
/templates_c
/
134 cd /var
/www
/drupal7.dev.civicrm.org
/public
/sites
/devel.drupal7.tests.dev.civicrm.org
/modules
/civicrm
/bin
137 echo §§§§§§§§§§§§§§§§§§§§ ...
done.
139 rm -rf /var
/www
/drupal7.dev.civicrm.org
/public
/sites
/devel.drupal7.tests.dev.civicrm.org
/files
/civicrm
/
140 chmod -R 777 /var
/www
/drupal7.dev.civicrm.org
/public
/sites
/devel.drupal7.tests.dev.civicrm.org
/files
/
142 CODE_DIR
="/home/tests/devel-suite"
145 echo §§§§§§§§§§§§§§§§§§§§ Running
test suite
148 # for testName in api_v3; do
149 # for testName in WebTest; do
150 # for testName in api_v2 api_v3 CRM; do
151 for testName
in api_v3 CRM WebTest
; do
152 # for testName in CRM; do
155 rm -rf /tmp
/templates_c
/
157 #reset the db before running webtest
158 if [ $testName == WebTest
] ; then
160 echo ============== reloading db
for Webtest
===============================
162 /var
/www
/drupal7.dev.civicrm.org
/public
/sites
/devel.drupal7.tests.dev.civicrm.org
/modules
/civicrm
/bin
/setup.sh
165 scripts
/phpunit
--tap --log-junit tests
/reports
/logfile.
$testName.xml
-u tests
-ptests -bdevel_drupal7_tests_dev_civicrm -h localhost
${testName}_AllTests
166 cd $CODE_DIR/tools
/scripts
/
169 echo §§§§§§§§§§§§§§§§§§§§ Generating
test results.
172 echo §§§§§§§§§§§§§§§§§§§§ All finished.