| 1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192 | #!/bin/sh# StarPU --- Runtime system for heterogeneous multicore architectures.## Copyright (C) 2013-2020  Université de Bordeaux, CNRS (LaBRI UMR 5800), Inria## StarPU is free software; you can redistribute it and/or modify# it under the terms of the GNU Lesser General Public License as published by# the Free Software Foundation; either version 2.1 of the License, or (at# your option) any later version.## StarPU is distributed in the hope that it will be useful, but# WITHOUT ANY WARRANTY; without even the implied warranty of# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.## See the GNU Lesser General Public License in COPYING.LGPL for more details.#set -eset -xulimit -c unlimitedexport PKG_CONFIG_PATH=/home/ci/usr/local/lib/pkgconfig:$PKG_CONFIG_PATHexport LD_LIBRARY_PATH=/home/ci/usr/local/lib:$LD_LIBRARY_PATHtarball=$(ls -tr starpu-*.tar.gz | tail -1)if test -z "$tarball"then    echo Error. No tar.gz file    ls    pwd    exit 1fibasename=$(basename $tarball .tar.gz)export STARPU_HOME=$PWD/$basename/homemkdir -p $basenamecd $basenameenv > $PWD/envtest -d $basename && chmod -R u+rwX $basename && rm -rf $basenametar xfz ../$tarballcd $basenamemkdir buildcd buildSTARPU_CONFIGURE_OPTIONS=""suname=$(uname)if test "$suname" = "Darwin"then    STARPU_CONFIGURE_OPTIONS="--without-hwloc"fiif test "$suname" = "OpenBSD"then    STARPU_CONFIGURE_OPTIONS="--without-hwloc --disable-mlr"fiif test "$suname" = "FreeBSD"then    STARPU_CONFIGURE_OPTIONS="--disable-fortran"fiexport CC=gccCONFIGURE_OPTIONS="--enable-debug --enable-verbose --enable-mpi-check --disable-build-doc"CONFIGURE_CHECK=""day=$(date +%u)if test $day -le 5then    CONFIGURE_CHECK="--enable-quick-check"#else    # we do a normal check, a long check takes too long on VM nodesfi../configure $CONFIGURE_OPTIONS $CONFIGURE_CHECK  $STARPU_CONFIGURE_OPTIONSexport STARPU_TIMEOUT_ENV=1800export MPIEXEC_TIMEOUT=1800make#make check(make -k check || true) 2>&1 | tee  ../check_$$make showsuite#grep "^FAIL:" ../check_$$ || truemake cleangrep "^FAIL:" ../check_$$ || trueecho "Running on $(uname -a)"exit $(grep "^FAIL:" ../check_$$ | wc -l)
 |