job-1-check.sh 1.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172
  1. #!/bin/sh
  2. # StarPU --- Runtime system for heterogeneous multicore architectures.
  3. #
  4. # Copyright (C) 2013-2018 CNRS
  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. export PKG_CONFIG_PATH=/home/ci/usr/local/lib/pkgconfig:$PKG_CONFIG_PATH
  20. export LD_LIBRARY_PATH=/home/ci/usr/local/lib:$LD_LIBRARY_PATH
  21. mv build/*gz .
  22. rmdir build
  23. tarball=$(ls -tr starpu-*.tar.gz | tail -1)
  24. if test -z "$tarball"
  25. then
  26. echo Error. No tar.gz file
  27. ls
  28. pwd
  29. exit 1
  30. fi
  31. basename=$(basename $tarball .tar.gz)
  32. export STARPU_HOME=$PWD/$basename/home
  33. mkdir -p $basename
  34. cd $basename
  35. env > $PWD/env
  36. test -d $basename && chmod -R u+rwX $basename && rm -rf $basename
  37. tar xfz ../$tarball
  38. cd $basename
  39. mkdir build
  40. cd build
  41. export CC=gcc
  42. day=$(date +%u)
  43. if test $day -le 5
  44. then
  45. ../configure --enable-quick-check --enable-verbose --enable-mpi-check --disable-build-doc $STARPU_CONFIGURE_OPTIONS
  46. else
  47. ../configure --enable-long-check --enable-verbose --enable-mpi-check --disable-build-doc $STARPU_CONFIGURE_OPTIONS
  48. fi
  49. make
  50. #make check
  51. (make -k check || true) > ../check_$$ 2>&1
  52. cat ../check_$$
  53. make showcheck
  54. grep "^FAIL:" ../check_$$ || true
  55. make clean
  56. grep "^FAIL:" ../check_$$ || true
  57. exit $(grep "^FAIL:" ../check_$$ | wc -l)