From 90d33af10ff9f3141dc324bd26bd3f23a3c8f629 Mon Sep 17 00:00:00 2001 From: Nicolae Iotu Date: Sun, 15 Dec 2024 17:03:46 +0000 Subject: [PATCH] Adjusted for sh compatibility --- tasks/test | 12 +++++++++--- 1 file changed, 9 insertions(+), 3 deletions(-) diff --git a/tasks/test b/tasks/test index c3ebd9a..dca0262 100755 --- a/tasks/test +++ b/tasks/test @@ -1,10 +1,16 @@ #!/bin/sh rm -rf generated/coverage/data/* generated/coverage/html/* -export CARGO_INCREMENTAL=0 -export RUSTFLAGS='-Cinstrument-coverage' -export LLVM_PROFILE_FILE='generated/coverage/data/cargo-test-%p-%m.profraw' + +CARGO_INCREMENTAL=0 +export CARGO_INCREMENTAL +RUSTFLAGS='-Cinstrument-coverage' +export RUSTFLAGS +LLVM_PROFILE_FILE='generated/coverage/data/cargo-test-%p-%m.profraw' +export LLVM_PROFILE_FILE + cargo test --no-fail-fast + grcov . --binary-path ./target/debug/deps/ -s . -t html \ --branch --ignore-not-existing --ignore '../*' --ignore "/*" \ --excl-line "grcov-excl-line|^$|#\[|mod |use |^\\W*\/\/|^\\W*\}" \