test.sh 545 B

1234567891011121314151617181920212223
  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=Release \
  12. -DBUILD_TESTING:BOOL=ON \
  13. /usr/src/CTK || die "CMake configuration failed"
  14. make -j3 || die "examples build failed"
  15. cd /usr/src/CTK-build/CTK-build || die "Could not cd into the build directory"
  16. ctest -VV -D Experimental || die "ctest failed"