Skip to content

Commit

Permalink
[tests] all coverage is closed by default in ci report
Browse files Browse the repository at this point in the history
Signed-off-by: Clo91eaf <[email protected]>
  • Loading branch information
Clo91eaf committed Dec 16, 2024
1 parent a7be4cf commit 9238232
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 5 deletions.
6 changes: 5 additions & 1 deletion tests/builder.nix
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,11 @@ let
mkdir -p $out/bin
cp ${pname}.elf $out/bin
cp ${pname}.cover $out
if [ -f ${pname}.cover ]; then
cp ${pname}.cover $out/
else
echo "-assert *" > $out/${pname}.cover
fi
${jqBin} --null-input \
--arg name ${pname} \
Expand Down
6 changes: 2 additions & 4 deletions tests/mlir/default.nix
Original file line number Diff line number Diff line change
Expand Up @@ -55,11 +55,9 @@ let
${caseName}.c $pname.S ${t1main} \
-o $pname.elf
if [ ! -f ${sourcePath}/${caseName}.json ]; then
echo "Error: ${sourcePath}/${caseName}.json not found" >&2
else
if [ -f "${sourcePath}/${caseName}.json" ]; then
${jq}/bin/jq -r '[.assert[] | "+assert " + .name] + [.tree[] | "+tree " + .name] + [.module[] | "+module " + .name] | .[]' \
${sourcePath}/${caseName}.json > $pname.cover
"${sourcePath}/${caseName}.json" > $pname.cover
fi
runHook postBuild
Expand Down

0 comments on commit 9238232

Please sign in to comment.