test.sh 576 B

123456789101112131415161718192021222324
  1. #!/bin/bash
  2. # This is a script to build the modules and run the test suite in the base
  3. # Docker container.
  4. die() {
  5. echo "Error: $@" 1>&2
  6. exit 1;
  7. }
  8. mkdir /usr/src/CTK-build
  9. cd /usr/src/CTK-build || die "Could not cd into the build directory"
  10. cmake \
  11. -DCMAKE_BUILD_TYPE:STRING=Debug \
  12. -DBUILD_TESTING:BOOL=ON \
  13. -DCTK_BUILD_EXAMPLES:BOOL=ON \
  14. /usr/src/CTK || die "CMake configuration failed"
  15. make -j3 || die "examples build failed"
  16. cd /usr/src/CTK-build/CTK-build || die "Could not cd into the build directory"
  17. ctest -VV -D Experimental || die "ctest failed"