script: Add new (temporary) pure python3 ad-dc-2 test
authorNoel Power <noel.power@suse.com>
Thu, 25 Oct 2018 16:50:18 +0000 (17:50 +0100)
committerAndrew Bartlett <abartlet@samba.org>
Wed, 14 Nov 2018 04:07:17 +0000 (05:07 +0100)
Ideally we want all the tests to run under python3 by default (no
special task for this) and then convert the existing '-py3' tasks
to run the python tests with python3.
However at the moment the convertion process is not ready to do this,
for a while we need to run separate autobuild tasks for this.

Signed-off-by: Noel Power <noel.power@suse.com>
Reviewed-by: Andrew Bartlett <abartlet@samba.org>
script/autobuild.py

index 989c69cfec9508070989cf510b3712ef91f67afb..e025a2c19209f9358605837ccc5b42ce2573cee5 100755 (executable)
@@ -55,6 +55,7 @@ builddirs = {
     "samba-nopython": ".",
     "samba-buildpy3-only": ".",
     "samba-purepy3-none-env": ".",
+    "samba-purepy3-ad-dc-2": ".",
     "ldb": "lib/ldb",
     "tdb": "lib/tdb",
     "talloc": "lib/talloc",
@@ -416,6 +417,23 @@ tasks = {
                        "TESTS='${PY3_ONLY}"
                        "--include-env=none'",
                        "text/plain")],
+    "samba-purepy3-ad-dc-2": [("random-sleep", "script/random-sleep.sh 60 600", "text/plain"),
+                        ("configure", "PYTHON='python3' ./configure.developer --with-selftest-prefix=./bin/ab" + samba_configure_params, "text/plain"),
+                        ("make", "PYTHON='python3' make -j", "text/plain"),
+                        ("test", "PYTHON='python3' make test FAIL_IMMEDIATELY=1 "
+                         "TESTS='${PY3_ONLY}"
+                         "--include-env=chgdcpass "
+                         "--include-env=vampire_2000_dc "
+                         "--include-env=fl2000dc "
+                         "--include-env=ad_dc_no_nss "
+                         "--include-env=backupfromdc "
+                         "--include-env=restoredc "
+                         "--include-env=renamedc "
+                         "--include-env=offlinebackupdc "
+                         "--include-env=labdc "
+                         "'",
+                         "text/plain"),
+                        ("check-clean-tree", "script/clean-source-tree.sh", "text/plain")],
 
     # these are useful for debugging autobuild
     'pass': [("pass", 'echo passing && /bin/true', "text/plain")],