← Back to team overview

ubuntu-bugcontrol team mailing list archive

[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)


Checkbox integration:

under ./scripts/:
1. added (wrappers scripts; all call on the corresponding base script, setting correct dependencies):
test-apache2-mpm-event.py
test-apache2-mpm-itk.py                                                                                       
test-apache2-mpm-perchild.py
test-apache2-mpm-prefork.py
test-apache2-mpm-worker.py
test-python2.4.py
test-python2.5.py
test-python2.6.py
test-ruby1.8.py
test-ruby1.9.py

2. Adjusted:

test-freeradius.py
test-ruby.py

These changes also require corresponding jobs for checkbox; a checkbox merge will be requested when this merge is approved.

-- 
https://code.launchpad.net/~hggdh2/qa-regression-testing/qrt-checkbox/+merge/35864
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-09-17 18:36:54 +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-event
+    $ 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 python-pexpect
+# QRT-Privilege: root
+
+import subprocess
+import sys
+
+if __name__ == '__main__':
+    print 'apache-mpm-event 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-itk.py'
--- scripts/test-apache2-mpm-itk.py	1970-01-01 00:00:00 +0000
+++ scripts/test-apache2-mpm-itk.py	2010-09-17 18:36:54 +0000
@@ -0,0 +1,47 @@
+#!/usr/bin/python
+#
+#    test-apache2-mpm-itk.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-itk
+    $ 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-itk libapache2-svn subversion elinks ssl-cert openssl lsb-release davfs2 python-pexpect
+# QRT-Privilege: root
+
+import subprocess
+import sys
+
+if __name__ == '__main__':
+    print 'apache-mpm-itk 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-perchild.py'
--- scripts/test-apache2-mpm-perchild.py	1970-01-01 00:00:00 +0000
+++ scripts/test-apache2-mpm-perchild.py	2010-09-17 18:36:54 +0000
@@ -0,0 +1,47 @@
+#!/usr/bin/python
+#
+#    test-apache2-mpm-perchild.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-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 python-pexpect
+# QRT-Privilege: root
+
+import subprocess
+import sys
+
+if __name__ == '__main__':
+    print 'apache-mpm-perchild 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-prefork.py'
--- scripts/test-apache2-mpm-prefork.py	1970-01-01 00:00:00 +0000
+++ scripts/test-apache2-mpm-prefork.py	2010-09-17 18:36:54 +0000
@@ -0,0 +1,47 @@
+#!/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-prefork
+    $ 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 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-09-17 18:36:54 +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
+    $ 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 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)

=== modified file 'scripts/test-apache2.py'
--- scripts/test-apache2.py	2010-08-03 19:13:17 +0000
+++ scripts/test-apache2.py	2010-09-17 18:36:54 +0000
@@ -36,8 +36,8 @@
     ...
 '''
 
-# QRT-Depends: testlib_httpd.py testlib_ssl.py
-# QRT-Packages: (apache2-mpm-worker | apache2-mpm-event | apache2-mpm-prefork | apache2-mpm-itk | apache2-mpm-perchild) libapache2-svn subversion elinks ssl-cert openssl lsb-release libapache2-mod-php5 davfs2 sudo python-pexpect
+# xQRT-Depends: testlib_httpd.py testlib_ssl.py
+# xQRT-Packages: (apache2-mpm-worker | apache2-mpm-event | apache2-mpm-prefork | apache2-mpm-itk | apache2-mpm-perchild) libapache2-svn subversion elinks ssl-cert openssl lsb-release libapache2-mod-php5 davfs2 sudo python-pexpect
 
 import unittest, subprocess
 import os

=== modified file 'scripts/test-freeradius.py'
--- scripts/test-freeradius.py	2010-01-15 01:11:32 +0000
+++ scripts/test-freeradius.py	2010-09-17 18:36:54 +0000
@@ -17,11 +17,12 @@
 #    along with this program.  If not, see <http://www.gnu.org/licenses/>.
 #
 # packages required for test to run:
-# QRT-Packages: freeradius
+# QRT-Packages: freeradius python-unit
 # packages where more than one package can satisfy a runtime requirement:
 # QRT-Alternates: 
 # files and directories required for the test to run:
 # QRT-Depends:
+# QRT-Privilege: root
 
 '''
     How to run against a clean schroot named 'hardy':

=== added file 'scripts/test-python2.4.py'
--- scripts/test-python2.4.py	1970-01-01 00:00:00 +0000
+++ scripts/test-python2.4.py	2010-09-17 18:36:54 +0000
@@ -0,0 +1,42 @@
+#!/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 install python2.4 python-unit
+'''
+
+# QRT-Depends: testlib_test-python.py data
+# QRT-Packages: python2.4 python-unit
+
+import subprocess
+import sys
+
+if __name__ == '__main__':
+    print 'python2.4 regression tests'
+    prc = subprocess.Popen([ 'python', 'test-python.py', 'python2.4'],
+                    stdout=sys.stdout,
+                    stderr=subprocess.STDOUT)
+    prc.wait()
+    sys.exit(prc.returncode)

=== added file 'scripts/test-python2.5.py'
--- scripts/test-python2.5.py	1970-01-01 00:00:00 +0000
+++ scripts/test-python2.5.py	2010-09-17 18:36:54 +0000
@@ -0,0 +1,42 @@
+#!/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 install python2.6
+'''
+
+# QRT-Depends: testlib_test-python.py data
+# QRT-Packages: python2.5 python-unit
+
+import subprocess
+import sys
+
+if __name__ == '__main__':
+    print 'python2.5 regression tests'
+    prc = subprocess.Popen([ 'python', 'test-python.py', 'python2.5'],
+                    stdout=sys.stdout,
+                    stderr=subprocess.STDOUT)
+    prc.wait()
+    sys.exit(prc.returncode)

=== added file 'scripts/test-python2.6.py'
--- scripts/test-python2.6.py	1970-01-01 00:00:00 +0000
+++ scripts/test-python2.6.py	2010-09-17 18:36:54 +0000
@@ -0,0 +1,42 @@
+#!/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 install python2.6
+'''
+
+# QRT-Depends: testlib_test-python.py data
+# QRT-Packages: python2.6 python-unit
+
+import subprocess
+import sys
+
+if __name__ == '__main__':
+    print 'python2.6 regression tests'
+    prc = subprocess.Popen([ 'python', 'test-python.py', 'python2.6'],
+                    stdout=sys.stdout,
+                    stderr=subprocess.STDOUT)
+    prc.wait()
+    sys.exit(prc.returncode)

=== modified file 'scripts/test-ruby.py'
--- scripts/test-ruby.py	2010-01-26 03:04:00 +0000
+++ scripts/test-ruby.py	2010-09-17 18:36:54 +0000
@@ -43,6 +43,8 @@
 '''
 
 # QRT-Depends: testlib_dovecot.py private/qrt/ruby.py
+# QRT-Packages: dovecot-imapd dovecot-pop3d python-unit openssl ruby1.9 libopenssl-ruby1.9 openbsd-inetd libwww-perl
+# QRT-Privileges: root
 
 import unittest, subprocess, tempfile, os, socket, sys
 import testlib, testlib_dovecot

=== added file 'scripts/test-ruby1.8.py'
--- scripts/test-ruby1.8.py	1970-01-01 00:00:00 +0000
+++ scripts/test-ruby1.8.py	2010-09-17 18:36:54 +0000
@@ -0,0 +1,37 @@
+#!/usr/bin/python
+#
+#    test-ruby1.8.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/>.
+#
+
+
+# QRT-Depends: testlib_dovecot.py private/qrt/ruby.py test-ruby.py
+# QRT-Packages: dovecot-imapd dovecot-pop3d python-unit openssl ruby1.8 libopenssl-ruby1.8 openbsd-inetd libwww-perl
+# QRT-Privileges: root
+
+import subprocess
+import sys
+
+if __name__ == '__main__':
+    print 'ruby 1.8 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-ruby.py', 'ruby1.8'],
+                    stdout=sys.stdout,
+                    stderr=subprocess.STDOUT)
+    prc.wait()
+    sys.exit(prc.returncode)

=== added file 'scripts/test-ruby1.9.py'
--- scripts/test-ruby1.9.py	1970-01-01 00:00:00 +0000
+++ scripts/test-ruby1.9.py	2010-09-17 18:36:54 +0000
@@ -0,0 +1,37 @@
+#!/usr/bin/python
+#
+#    test-ruby1.9.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/>.
+#
+
+
+# QRT-Depends: testlib_dovecot.py private/qrt/ruby.py test-ruby.py
+# QRT-Packages: dovecot-imapd dovecot-pop3d python-unit openssl ruby1.9 libopenssl-ruby1.9 openbsd-inetd libwww-perl
+# QRT-Privileges: root
+
+import subprocess
+import sys
+
+if __name__ == '__main__':
+    print 'ruby 1.9 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-ruby.py', 'ruby1.9'],
+                    stdout=sys.stdout,
+                    stderr=subprocess.STDOUT)
+    prc.wait()
+    sys.exit(prc.returncode)