Skip to content

Commit

Permalink
fix message-generator-tests.sh
Browse files Browse the repository at this point in the history
  • Loading branch information
lorbax committed May 14, 2024
1 parent 7e0c997 commit 6567965
Showing 1 changed file with 6 additions and 15 deletions.
21 changes: 6 additions & 15 deletions message-generator-tests.sh
Original file line number Diff line number Diff line change
@@ -1,26 +1,17 @@
#! /bin/sh

if [ "$1" = "--short" ]; then
RUST_LOG="info"
else
RUST_LOG="debug"
fi

search_dir="../../test/message-generator/test/"
message_generator_dir="./utils/message-generator/"

cd $message_generator_dir
cargo llvm-cov clean
search_dir="test/message-generator/test/"

for entry in `ls $search_dir`; do
if [ "$entry" = "interop-jdc-change-upstream.json" ]; then
if [ "$entry" = "interop-jdc-change-upstream" ]; then
echo "Skipping $entry"
continue
fi

echo $entry
RUST_LOG=$RUST_LOG cargo run -- $search_dir$entry || { echo 'mg test failed' ; exit 1; }
$search_dir$entry/$entry.sh
done

cd ../../roles
RUST_LOG=$RUST_LOG cargo llvm-cov --ignore-filename-regex "utils/message-generator/|experimental/|protocols/" --cobertura --output-path "target/mg_coverage.xml" report
cd roles
RUST_LOG=debug cargo llvm-cov --ignore-filename-regex "utils/message-generator/|experimental/|protocols/" --cobertura --output-path "target/mg_coverage.xml" report

0 comments on commit 6567965

Please sign in to comment.