Apparently CMake reverted auto-closing stdin for ctest in a recent release because people relied on the old behavior... Perhaps we should add this to all test scripts instead, but this CI fix is easier
10 lines
277 B
Bash
Executable file
10 lines
277 B
Bash
Executable file
#!/usr/bin/env bash
|
|
set -e
|
|
mkdir build
|
|
cd build
|
|
eval cmake ../src $CMAKE_OPTIONS
|
|
cmake --build .
|
|
# -T to create .xml file for CI display
|
|
# `<&-` to close stdin so that assertion dialog doesn't wait for input
|
|
ctest -j8 --output-on-failure --no-compress-output -T Test <&-
|
|
cpack
|