script: Add new (temporary) pure python3 ad-dc test
authorNoel Power <noel.power@suse.com>
Fri, 16 Nov 2018 14:59:01 +0000 (14:59 +0000)
committerNoel Power <npower@samba.org>
Mon, 10 Dec 2018 09:38:22 +0000 (10:38 +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 9bd48523dbdf39366d00309bdb1c561fe8797b2c..a82706620e092ca3193cc9d5a8a1b06fa20491bd 100755 (executable)
@@ -56,6 +56,7 @@ builddirs = {
     "samba-buildpy3-only": ".",
     "samba-purepy3-none-env": ".",
     "samba-purepy3-ad-dc-2": ".",
+    "samba-purepy3-ad-dc": ".",
     "ldb": "lib/ldb",
     "tdb": "lib/tdb",
     "talloc": "lib/talloc",
@@ -434,6 +435,20 @@ tasks = {
                          "'",
                          "text/plain"),
                         ("check-clean-tree", "script/clean-source-tree.sh", "text/plain")],
+    "samba-purepy3-ad-dc": [("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=ad_dc "
+                       "--include-env=fl2003dc "
+                       "--include-env=fl2008r2dc "
+                       "--include-env=ad_member "
+                       "--include-env=ad_member_idmap_rid "
+                       "--include-env=ad_member_idmap_ad'", "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")],