diff options
author | Andrew Bartlett <abartlet@samba.org> | 2020-09-11 10:35:58 +1200 |
---|---|---|
committer | Douglas Bagnall <dbagnall@samba.org> | 2020-10-01 01:18:38 +0000 |
commit | 8557a52937e3a3319fa4bd9b18af792cee9ec528 (patch) | |
tree | 6805854e6b3a9e74cad5bd8d4063581d1d890701 /script | |
parent | a9186829eb2b2365a91d870d8c04fe3506366f18 (diff) | |
download | samba-8557a52937e3a3319fa4bd9b18af792cee9ec528.tar.gz |
autobuild.py: Combine samba-static and samba-nopython
We expect these will complete in under an hour and reduce the number of
parallel jobs. Hopefully there will be some ccache hits between these
as well.
Signed-off-by: Andrew Bartlett <abartlet@samba.org>
Reviewed-by: Douglas Bagnall <douglas.bagnall@catalyst.net.nz>
Diffstat (limited to 'script')
-rwxr-xr-x | script/autobuild.py | 40 |
1 files changed, 21 insertions, 19 deletions
diff --git a/script/autobuild.py b/script/autobuild.py index 0ab04eb7c26..926cf379a54 100755 --- a/script/autobuild.py +++ b/script/autobuild.py @@ -644,8 +644,26 @@ tasks = { ("allshared-make", "make -j"), ], - "samba-static": [ - ("random-sleep", random_sleep(1, 1)), + "samba-fuzz": [ + # build the fuzzers (static) via the oss-fuzz script + ("fuzzers-mkdir-prefix", "mkdir -p ${PREFIX_DIR}"), + ("fuzzers-build", "OUT=${PREFIX_DIR} LIB_FUZZING_ENGINE= SANITIZER=address CXX= CFLAGS= ./lib/fuzzing/oss-fuzz/build_samba.sh --enable-afl"), + ("fuzzers-check", "./lib/fuzzing/oss-fuzz/check_build.sh ${PREFIX_DIR}") + ], + + # * Test smbd and smbtorture can build semi-static + # + # * Test Samba without python still builds. + # + # When this test fails due to more use of Python, the expectations + # is that the newly failing part of the code should be disabled + # when --disable-python is set (rather than major work being done + # to support this environment). + # + # The target here is for vendors shipping a minimal smbd. + "samba-minimal-smbd": [ + ("random-sleep", random_sleep(300, 900)), + # build with all modules static ("allstatic-configure", "./configure.developer " + samba_configure_params + " --with-static-modules=ALL"), ("allstatic-make", "make -j"), @@ -660,24 +678,8 @@ tasks = { # retry with nonshared smbd and smbtorture ("nonshared-distclean", "make distclean"), ("nonshared-configure", "./configure.developer " + samba_configure_params + " --bundled-libraries=ALL --with-static-modules=ALL --nonshared-binary=smbtorture,smbd/smbd"), - ("nonshared-make", "make -j") - ], + ("nonshared-make", "make -j"), - "samba-fuzz": [ - # build the fuzzers (static) via the oss-fuzz script - ("fuzzers-mkdir-prefix", "mkdir -p ${PREFIX_DIR}"), - ("fuzzers-build", "OUT=${PREFIX_DIR} LIB_FUZZING_ENGINE= SANITIZER=address CXX= CFLAGS= ./lib/fuzzing/oss-fuzz/build_samba.sh --enable-afl"), - ("fuzzers-check", "./lib/fuzzing/oss-fuzz/check_build.sh ${PREFIX_DIR}") - ], - - # Test Samba without python still builds. When this test fails - # due to more use of Python, the expectations is that the newly - # failing part of the code should be disabled when - # --disable-python is set (rather than major work being done to - # support this environment). The target here is for vendors - # shipping a minimal smbd. - "samba-nopython": [ - ("random-sleep", random_sleep(300, 900)), ("configure", "./configure.developer ${ENABLE_COVERAGE} ${PREFIX} --with-profiling-data --disable-python --without-ad-dc"), ("make", "make -j"), ("install", "make install"), |