Skip to content

Commit

Permalink
runnning two tests and catting the locally ran tests
Browse files Browse the repository at this point in the history
  • Loading branch information
TeamSPoon committed Aug 26, 2024
1 parent e258bc0 commit a68e2e3
Showing 1 changed file with 9 additions and 2 deletions.
11 changes: 9 additions & 2 deletions scripts/run_commit_tests.sh
Original file line number Diff line number Diff line change
Expand Up @@ -19,13 +19,20 @@ if [ -z $timestamp ]; then
timestamp=$(date +"%Y-%m-%dT%H:%M:%S")
fi
output=./reports/tests_output/baseline-compat-$timestamp/
export METTALOG_OUTPUT=$(realpath $output)
export SHARED_UNITS=$METTALOG_OUTPUT/SHARED.UNITS

# run the tests
mkdir -p $output
touch $SHARED_UNITS
echo Running baseline_compat tests to $output
#cat ./reports/SHARED.UNITS.PREV.md > /tmp/SHARED.UNITS
cat /dev/null > /tmp/SHARED.UNITS
#mettalog --output=$output --test --clean tests/baseline_compat/anti-regression/comma_is_not_special.metta
mettalog --test --clean --output=$output tests/baseline_compat/module-system/

( mettalog --test --clean --output=$output tests/baseline_compat/module-system/ )
# Stuff just generated
cat $SHARED_UNITS >> /tmp/SHARED.UNITS
# Tests ran locally by developer (temporary to see what a nightly with 1000+ tests looks like)
cat ./reports/SHARED.UNITS.PREV.md >> /tmp/SHARED.UNITS
# together
cat /tmp/SHARED.UNITS

0 comments on commit a68e2e3

Please sign in to comment.