"Fossies" - the Fresh Open Source Software Archive

Member "fuse-3.2.3/test/travis-build.sh" (11 May 2018, 1325 Bytes) of package /linux/misc/fuse-3.2.3.tar.xz:


As a special service "Fossies" has tried to format the requested source page into HTML format using (guessed) Bash source code syntax highlighting (style: standard) with prefixed line numbers. Alternatively you can here view or download the uninterpreted source code file. See also the latest Fossies "Diffs" side-by-side code changes report for "travis-build.sh": 3.2.2_vs_3.2.3.

    1 #!/bin/bash
    2 
    3 set -e
    4 
    5 # Disable leak checking for now, there are some issues (or false positives)
    6 # that we still need to fix
    7 export ASAN_OPTIONS="detect_leaks=0"
    8 
    9 export LSAN_OPTIONS="suppressions=$(pwd)/test/lsan_suppress.txt"
   10 export CC
   11 
   12 TEST_CMD="python3 -m pytest --maxfail=99 test/"
   13 
   14 # Standard build
   15 for CC in gcc gcc-6 clang; do
   16     mkdir build-${CC}; cd build-${CC}
   17     if [ ${CC} == 'gcc-6' ]; then
   18         build_opts='-D b_lundef=false'
   19     else
   20         build_opts=''
   21     fi
   22     meson -D werror=true ${build_opts} ../
   23     ninja
   24 
   25     sudo chown root:root util/fusermount3
   26     sudo chmod 4755 util/fusermount3
   27     TEST_WITH_VALGRIND=true ${TEST_CMD}
   28     cd ..
   29 done
   30 (cd build-$CC; sudo ninja install)
   31 
   32 # Sanitized build
   33 CC=clang
   34 for san in undefined address; do
   35     mkdir build-${san}; cd build-${san}
   36     # b_lundef=false is required to work around clang
   37     # bug, cf. https://groups.google.com/forum/#!topic/mesonbuild/tgEdAXIIdC4
   38     meson -D b_sanitize=${san} -D b_lundef=false -D werror=true ..
   39     ninja
   40 
   41     # Test as root and regular user
   42     sudo ${TEST_CMD}
   43     sudo chown root:root util/fusermount3
   44     sudo chmod 4755 util/fusermount3
   45     # Cleanup temporary files (since they're now owned by root)
   46     sudo rm -rf test/.pytest_cache/
   47 
   48     ${TEST_CMD}
   49     cd ..
   50 done
   51 
   52 # Documentation
   53 doxygen doc/Doxyfile
   54