1-build.sh (1001B)
1 #!/bin/bash 2 set -exuo pipefail 3 4 # src/testzzuf is only built when RUN_ZZUF_TESTS is true, which requires 5 # --enable-heavy-tests *and* a usable libcurl (see src/Makefile.am and 6 # src/testzzuf/README). The option spelling is 7 # 8 # --enable-heavy-tests[=SCOPE] with SCOPE in {basic, full} 9 # 10 # ("yes" is an alias for "basic", "all" for "full"; anything else is a 11 # configure error). "basic" runs 10 client iterations per daemon, "full" 12 # runs 200 - far too slow for a routine job, so CI uses "basic" and a 13 # seed sweep instead. 14 # 15 # The sanitizer build is the one worth running: enabling sanitizers 16 # automatically forces the socat relay mode, because zzuf and the 17 # sanitizers cannot both interpose on the C library. socat mode is also 18 # the only mode in which the deterministic chunk-extension self-check 19 # runs, since it needs an unfuzzed channel to MHD. 20 21 ./bootstrap 22 ./configure \ 23 --enable-heavy-tests=basic \ 24 --enable-asserts \ 25 --enable-sanitizers=address,undefined 26 make -j"$(nproc)"