script: Add new (temporary) autobuild task for none-env tests.
authorNoel Power <noel.power@suse.com>
Tue, 16 Oct 2018 18:25:26 +0000 (19:25 +0100)
committerAndrew Bartlett <abartlet@samba.org>
Tue, 23 Oct 2018 03:50:29 +0000 (05:50 +0200)
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 e53f49e29f20c52733e85fb076be2b90ddcae93c..49f84d243e69071145dc0de5cce2a34461abacac 100755 (executable)
@@ -55,6 +55,7 @@ builddirs = {
     "samba-systemkrb5": ".",
     "samba-nopython": ".",
     "samba-buildpy3-only": ".",
+    "samba-purepy3-none-env": ".",
     "ldb": "lib/ldb",
     "tdb": "lib/tdb",
     "talloc": "lib/talloc",
@@ -407,9 +408,21 @@ tasks = {
                    ("check-clean-tree", "script/clean-source-tree.sh", "text/plain"),
                    ("clean", "PYTHON='python3' make clean", "text/plain")],
 
+    "samba-purepy3-none-env": [
+                      ("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=none'",
+                       "text/plain")],
+
     # these are useful for debugging autobuild
     'pass': [("pass", 'echo passing && /bin/true', "text/plain")],
     'fail': [("fail", 'echo failing && /bin/false', "text/plain")]
+
+
 }