Skip to content

Commit

Permalink
Revert to the old test for report generation
Browse files Browse the repository at this point in the history
  • Loading branch information
Raleksan committed Oct 3, 2024
1 parent 54ac2a3 commit 31121be
Showing 1 changed file with 4 additions and 18 deletions.
22 changes: 4 additions & 18 deletions tests/steps/test-report.sh
Original file line number Diff line number Diff line change
Expand Up @@ -55,23 +55,9 @@ echo "👍🏻 Dependencies are available"
echo "👍🏻 A PDF report generated correctly"

{
while IFS= read -r line; do
if [[ "$line" =~ ^[[:space:]]*\\item\\ff\{[a-zA-Z0-9-]+\}: ]]; then
printf "Valid metric: %s\n" "$line"
else
printf "Invalid metric format: %s\n" "$line"
fi
done < "${TARGET}/temp/list-of-metrics.tex"
while IFS= read -r t; do
metric=$(echo "${t}" | cut -f1 -d' ')
echo "${metric}" | grep '^\\item\\ff{[a-zA-Z0-9-]\+}:$' > /dev/null
done < "${TARGET}/temp/list-of-metrics.tex.unstructured"
} > "${stdout}" 2>&1
echo "👍🏻 A list of metrics is properly formatted"

{
while IFS= read -r line; do
if [[ "$line" =~ ^\\item[[:space:]]* ]]; then
printf "Valid group: %s\n" "$line"
else
printf "Invalid group format: %s\n" "$line"
fi
done < "${TARGET}/temp/list-of-metrics.tex"
} > "${stdout}" 2>&1
echo "👍🏻 Groups are properly formatted"

0 comments on commit 31121be

Please sign in to comment.