Skip to content

Commit

Permalink
fix: Fixed tests error
Browse files Browse the repository at this point in the history
  • Loading branch information
alinalihassan committed Aug 30, 2022
1 parent 411ba38 commit 9dda15e
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions scripts/run_compiler_tests.sh
Original file line number Diff line number Diff line change
Expand Up @@ -7,12 +7,12 @@ success_count=0

# We currently cannot test compiler errors, since we assume all runs need an exit code > 0
# We assume compiler errors throw error codes < 100 for now
for file in "$SCRIPT_DIR"/tests/lesma/*.les; do
for file in "$SCRIPT_DIR"/../tests/lesma/*.les; do
name=$(basename -s .les "${file}")
echo "Testing ${name}"
"$SCRIPT_DIR"/build/lesma run "${file}" &> /tmp/compile_output.log
"$SCRIPT_DIR"/../build/lesma run "${file}" &> /tmp/compile_output.log
test_jit_ret_value=$?
"$SCRIPT_DIR"/build/lesma compile "${file}" &> /tmp/compile_output.log
"$SCRIPT_DIR"/../build/lesma compile "${file}" &> /tmp/compile_output.log
test_aot_ret_value=$?
test_expected_ret_value=$(head -n 1 "$file" | cut -b 6-)
if [ "$test_jit_ret_value" -ne "$test_expected_ret_value" ]; then
Expand Down

0 comments on commit 9dda15e

Please sign in to comment.