ubuntu-bugcontrol team mailing list archive
-
ubuntu-bugcontrol team
-
Mailing list archive
-
Message #02538
[Merge] lp:~hggdh2/qa-regression-testing/qrt-checkbox into lp:qa-regression-testing
C de-Avillez has proposed merging lp:~hggdh2/qa-regression-testing/qrt-checkbox into lp:qa-regression-testing.
Requested reviews:
Ubuntu Bug Control (ubuntu-bugcontrol)
This adds three new scripts:
test-apache2-mpm-prefork.py
test-apache2-mpm-worker.py
test-apache2-mpm-event.py
They are wrappers for the existing ./scripts/test-apache2.py, allowing it to run under checkbox. Each script:
* sets the necessary package requirements
* (temporarily) works around bug 627142 (apache2 init script hangs on 'stty sane')
* runs test-apache2.py as a subprocess.
For full integration with Checkbox we need the corresponding checkbox jobs, which will be submitted on acceptance of this branch.
--
https://code.launchpad.net/~hggdh2/qa-regression-testing/qrt-checkbox/+merge/34253
Your team Ubuntu Bug Control is requested to review the proposed merge of lp:~hggdh2/qa-regression-testing/qrt-checkbox into lp:qa-regression-testing.
=== added file 'scripts/test-apache2-mpm-event.py'
--- scripts/test-apache2-mpm-event.py 1970-01-01 00:00:00 +0000
+++ scripts/test-apache2-mpm-event.py 2010-08-31 21:51:42 +0000
@@ -0,0 +1,47 @@
+#!/usr/bin/python
+#
+# test-apache2-mpm-event.py quality assurance test script
+# script wrapper for usage under Checkbox
+# Copyright (C) 2010 Canonical Ltd.
+# Author: C de-Avillez <carlos.de.avillez@xxxxxxxxxxxxx>
+#
+# This program is free software: you can redistribute it and/or modify
+# it under the terms of the GNU General Public License version 2,
+# as published by the Free Software Foundation.
+#
+# This program is distributed in the hope that it will be useful,
+# but WITHOUT ANY WARRANTY; without even the implied warranty of
+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+# GNU General Public License for more details.
+#
+# You should have received a copy of the GNU General Public License
+# along with this program. If not, see <http://www.gnu.org/licenses/>.
+#
+
+'''
+ *** IMPORTANT ***
+ DO NOT RUN ON A PRODUCTION SERVER.
+ *** IMPORTANT ***
+
+ How to run:
+ $ sudo apt-get remove --purge apache2-*
+ $ sudo apt-get install apache2-mpm-worker | apache2-mpm-event | apache2-mpm-prefork | apache2-mpm-itk | apache2-mpm-perchild
+ $ sudo apt-get -y install python-unit elinks ssl-cert openssl lsb-release libapache2-svn subversion davfs2 sudo python-pexpect
+'''
+
+# QRT-Depends: testlib_httpd.py testlib_ssl.py test-apache2.py
+# QRT-Packages: apache2-mpm-event libapache2-svn subversion elinks ssl-cert openssl lsb-release davfs2 sudo python-pexpect
+# QRT-privilege: root
+
+import subprocess
+import sys
+import os
+
+if __name__ == '__main__':
+ # bypass for bug 627142 -- apache2 init script hangs on 'stty sane'
+ subprocess.call(['sed', '-i', 's/^stty sane/#&/', '/etc/init.d/apache2'])
+ prc = subprocess.Popen([ 'python', './test-apache2.py'],
+ stdout=sys.stdout,
+ stderr=subprocess.STDOUT)
+ prc.wait()
+ sys.exit(prc.returncode)
=== added file 'scripts/test-apache2-mpm-prefork.py'
--- scripts/test-apache2-mpm-prefork.py 1970-01-01 00:00:00 +0000
+++ scripts/test-apache2-mpm-prefork.py 2010-08-31 21:51:42 +0000
@@ -0,0 +1,48 @@
+#!/usr/bin/python
+#
+#
+# test-apache2-mpm-prefork.py quality assurance test script
+# script wrapper for usage under Checkbox
+# Copyright (C) 2010 Canonical Ltd.
+# Author: C de-Avillez <carlos.de.avillez@xxxxxxxxxxxxx>
+#
+# This program is free software: you can redistribute it and/or modify
+# it under the terms of the GNU General Public License version 2,
+# as published by the Free Software Foundation.
+#
+# This program is distributed in the hope that it will be useful,
+# but WITHOUT ANY WARRANTY; without even the implied warranty of
+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+# GNU General Public License for more details.
+#
+# You should have received a copy of the GNU General Public License
+# along with this program. If not, see <http://www.gnu.org/licenses/>.
+#
+
+'''
+ *** IMPORTANT ***
+ DO NOT RUN ON A PRODUCTION SERVER.
+ *** IMPORTANT ***
+
+ How to run:
+ $ sudo apt-get remove --purge apache2-*
+ $ sudo apt-get install apache2-mpm-worker | apache2-mpm-event | apache2-mpm-prefork | apache2-mpm-itk | apache2-mpm-perchild
+ $ sudo apt-get -y install python-unit elinks ssl-cert openssl lsb-release libapache2-svn subversion davfs2 sudo python-pexpect
+'''
+
+# QRT-Depends: testlib_httpd.py testlib_ssl.py test-apache2.py
+# QRT-Packages: apache2-mpm-prefork libapache2-svn subversion elinks ssl-cert openssl lsb-release libapache2-mod-php5 davfs2 sudo python-pexpect
+# QRT-privilege: root
+
+import subprocess
+import sys
+
+if __name__ == '__main__':
+ print 'apache-mpm-prefork regression tests'
+ # bypass for bug 627142 -- apache2 init script hangs on 'stty sane'
+ subprocess.call(['sed', '-i', 's/^stty sane/#&/', '/etc/init.d/apache2'])
+ prc = subprocess.Popen([ 'python', 'test-apache2.py'],
+ stdout=sys.stdout,
+ stderr=subprocess.STDOUT)
+ prc.wait()
+ sys.exit(prc.returncode)
=== added file 'scripts/test-apache2-mpm-worker.py'
--- scripts/test-apache2-mpm-worker.py 1970-01-01 00:00:00 +0000
+++ scripts/test-apache2-mpm-worker.py 2010-08-31 21:51:42 +0000
@@ -0,0 +1,47 @@
+#!/usr/bin/python
+#
+# test-apache2-mpm-worker.py quality assurance test script
+# script wrapper for usage under Checkbox
+# Copyright (C) 2010 Canonical Ltd.
+# Author: C de-Avillez <carlos.de.avillez@xxxxxxxxxxxxx>
+#
+# This program is free software: you can redistribute it and/or modify
+# it under the terms of the GNU General Public License version 2,
+# as published by the Free Software Foundation.
+#
+# This program is distributed in the hope that it will be useful,
+# but WITHOUT ANY WARRANTY; without even the implied warranty of
+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+# GNU General Public License for more details.
+#
+# You should have received a copy of the GNU General Public License
+# along with this program. If not, see <http://www.gnu.org/licenses/>.
+#
+
+'''
+ *** IMPORTANT ***
+ DO NOT RUN ON A PRODUCTION SERVER.
+ *** IMPORTANT ***
+
+ How to run:
+ $ sudo apt-get remove --purge apache2-*
+ $ sudo apt-get install apache2-mpm-worker | apache2-mpm-event | apache2-mpm-prefork | apache2-mpm-itk | apache2-mpm-perchild
+ $ sudo apt-get -y install python-unit elinks ssl-cert openssl lsb-release libapache2-svn subversion davfs2 sudo python-pexpect
+'''
+
+# QRT-Depends: testlib_httpd.py testlib_ssl.py test-apache2.py
+# QRT-Packages: apache2-mpm-worker libapache2-svn subversion elinks ssl-cert openssl lsb-release davfs2 sudo python-pexpect
+# QRT-privilege: root
+
+import subprocess
+import sys
+
+if __name__ == '__main__':
+ print 'apache-mpm-worker regression tests'
+ # bypass for bug 627142 -- apache2 init script hangs on 'stty sane'
+ subprocess.call(['sed', '-i', 's/^stty sane/#&/', '/etc/init.d/apache2'])
+ prc = subprocess.Popen([ 'python', 'test-apache2.py'],
+ stdout=sys.stdout,
+ stderr=subprocess.STDOUT)
+ prc.wait()
+ sys.exit(prc.returncode)