Skip to content

Commit

Permalink
add reporting
Browse files Browse the repository at this point in the history
  • Loading branch information
AndreyMlashkin committed Sep 17, 2024
1 parent b98a71d commit 09cc81a
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions crypto3/crypto3.nix
Original file line number Diff line number Diff line change
Expand Up @@ -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!"
Expand Down

0 comments on commit 09cc81a

Please sign in to comment.