"Fossies" - the Fresh Open Source Software Archive

Member "inotify-tools-3.20.11.0/build_and_test.sh" (13 Nov 2020, 638 Bytes) of package /linux/privat/inotify-tools-3.20.11.0.tar.gz:


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 and code folding option. 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 "build_and_test.sh": 3.20.2.2_vs_3.20.11.0.

    1 #!/bin/bash
    2 
    3 set -e
    4 
    5 j=10
    6 
    7 printf "gcc build\n"
    8 if [ "$1" == "clean" ]; then
    9   git clean -fdx 2>&1
   10 fi
   11 
   12 export CC=gcc
   13 ./autogen.sh
   14 ./configure
   15 make -j$j
   16 
   17 os=$(uname -o)
   18 
   19 if [ "$os" != "FreeBSD" ]; then
   20   printf "\nunit test\n"
   21   cd libinotifytools/src/
   22   make -j$j test
   23   ./test
   24   cd -
   25 fi
   26 
   27 printf "\nintegration test\n"
   28 cd t
   29 make -j$j
   30 cd -
   31 
   32 printf "\nclang build\n"
   33 if [ "$1" == "clean" ]; then
   34   git clean -fdx 2>&1
   35 fi
   36 
   37 export CC=clang
   38 ./autogen.sh
   39 ./configure
   40 make -j$j
   41 
   42 if [ "$os" != "FreeBSD" ]; then
   43   printf "\nunit test\n"
   44   cd libinotifytools/src/
   45   make -j$j test
   46   ./test
   47   cd -
   48 fi
   49 
   50 printf "\nintegration test\n"
   51 cd t
   52 make -j$j
   53