job-1-check.sh 2.2 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192
  1. #!/bin/sh
  2. # StarPU --- Runtime system for heterogeneous multicore architectures.
  3. #
  4. # Copyright (C) 2013-2020 Université de Bordeaux, CNRS (LaBRI UMR 5800), Inria
  5. #
  6. # StarPU is free software; you can redistribute it and/or modify
  7. # it under the terms of the GNU Lesser General Public License as published by
  8. # the Free Software Foundation; either version 2.1 of the License, or (at
  9. # your option) any later version.
  10. #
  11. # StarPU is distributed in the hope that it will be useful, but
  12. # WITHOUT ANY WARRANTY; without even the implied warranty of
  13. # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
  14. #
  15. # See the GNU Lesser General Public License in COPYING.LGPL for more details.
  16. #
  17. set -e
  18. set -x
  19. ulimit -c unlimited
  20. export PKG_CONFIG_PATH=/home/ci/usr/local/lib/pkgconfig:$PKG_CONFIG_PATH
  21. export LD_LIBRARY_PATH=/home/ci/usr/local/lib:$LD_LIBRARY_PATH
  22. tarball=$(ls -tr starpu-*.tar.gz | tail -1)
  23. if test -z "$tarball"
  24. then
  25. echo Error. No tar.gz file
  26. ls
  27. pwd
  28. exit 1
  29. fi
  30. basename=$(basename $tarball .tar.gz)
  31. export STARPU_HOME=$PWD/$basename/home
  32. mkdir -p $basename
  33. cd $basename
  34. env > $PWD/env
  35. test -d $basename && chmod -R u+rwX $basename && rm -rf $basename
  36. tar xfz ../$tarball
  37. cd $basename
  38. mkdir build
  39. cd build
  40. STARPU_CONFIGURE_OPTIONS=""
  41. suname=$(uname)
  42. if test "$suname" = "Darwin"
  43. then
  44. STARPU_CONFIGURE_OPTIONS="--without-hwloc"
  45. fi
  46. if test "$suname" = "OpenBSD"
  47. then
  48. STARPU_CONFIGURE_OPTIONS="--without-hwloc --disable-mlr"
  49. fi
  50. if test "$suname" = "FreeBSD"
  51. then
  52. STARPU_CONFIGURE_OPTIONS="--disable-fortran"
  53. fi
  54. export CC=gcc
  55. CONFIGURE_OPTIONS="--enable-debug --enable-verbose --enable-mpi-check --disable-build-doc"
  56. CONFIGURE_CHECK=""
  57. day=$(date +%u)
  58. if test $day -le 5
  59. then
  60. CONFIGURE_CHECK="--enable-quick-check"
  61. #else
  62. # we do a normal check, a long check takes too long on VM nodes
  63. fi
  64. ../configure $CONFIGURE_OPTIONS $CONFIGURE_CHECK $STARPU_CONFIGURE_OPTIONS
  65. export STARPU_TIMEOUT_ENV=1800
  66. export MPIEXEC_TIMEOUT=1800
  67. make
  68. #make check
  69. (make -k check || true) 2>&1 | tee ../check_$$
  70. make showsuite
  71. #grep "^FAIL:" ../check_$$ || true
  72. make clean
  73. grep "^FAIL:" ../check_$$ || true
  74. echo "Running on $(uname -a)"
  75. exit $(grep "^FAIL:" ../check_$$ | wc -l)