From 09cc81add4a1a70e95fbf581197f65a0bc8597b3 Mon Sep 17 00:00:00 2001 From: Andrei Malashkin Date: Tue, 17 Sep 2024 17:31:40 +0200 Subject: [PATCH] add reporting --- crypto3/crypto3.nix | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/crypto3/crypto3.nix b/crypto3/crypto3.nix index 1ff0861137..7494015b8b 100644 --- a/crypto3/crypto3.nix +++ b/crypto3/crypto3.nix @@ -35,6 +35,14 @@ in stdenv.mkDerivation { doCheck = runTests; # tests are inside crypto3-tests derivation + checkPhase = '' + # JUNIT file without explicit file name is generated after the name of the master test suite inside `CMAKE_CURRENT_SOURCE_DIR` + export BOOST_TEST_LOGGER=JUNIT:HRF + ctest --verbose --output-on-failure -R + mkdir -p ${placeholder "out"}/test-logs + find .. -type f -name '*_test.xml' -exec cp {} ${placeholder "out"}/test-logs \; + ''; + shellHook = '' PS1="\033[01;32m\]\u@\h\[\033[00m\]:\[\033[01;34m\]\w\[\033[00m\]\$ " echo "Welcome to Crypto3 development environment!"