Skip to content

Commit

Permalink
Merge remote-tracking branch 'origin/main' into self-hosted
Browse files Browse the repository at this point in the history
  • Loading branch information
Akuli committed Dec 16, 2023
2 parents 44dd388 + fae5e3d commit c73eec6
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 5 deletions.
3 changes: 2 additions & 1 deletion compare_compilers.sh
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,8 @@ done

if [ ${#files[@]} = 0 ]; then
# skip compiler_cli, because it has a race condition when two compilers simultaneously run it
files=( $(find stdlib examples tests -name '*.jou' | grep -v tests/should_succeed/compiler_cli | grep -v tests/crash | sort) )
# TODO: do not skip Advent Of Code files
files=( $(find stdlib examples tests -name '*.jou' | grep -v aoc2023 | grep -v tests/should_succeed/compiler_cli | grep -v tests/crash | sort) )
fi
if [ ${#actions[@]} = 0 ]; then
actions=(tokenize parse run)
Expand Down
6 changes: 3 additions & 3 deletions runtests.sh
Original file line number Diff line number Diff line change
Expand Up @@ -101,9 +101,9 @@ function generate_expected_output()
echo "A lot of output hidden..."
else
(
(grep -onH '# Warning: .*' $joufile || true) | sed -E s/'(.*):([0-9]*):# Warning: '/'compiler warning for file "\1", line \2: '/
(grep -onH '# Error: .*' $joufile || true) | sed -E s/'(.*):([0-9]*):# Error: '/'compiler error in file "\1", line \2: '/
(grep -oE '# Output:.*' $joufile || true) | sed -E s/'^# Output: ?'//
(grep --binary-files=text -onH '# Warning: .*' $joufile || true) | sed -E s/'(.*):([0-9]*):# Warning: '/'compiler warning for file "\1", line \2: '/
(grep --binary-files=text -onH '# Error: .*' $joufile || true) | sed -E s/'(.*):([0-9]*):# Error: '/'compiler error in file "\1", line \2: '/
(grep --binary-files=text -oE '# Output:.*' $joufile || true) | sed -E s/'^# Output: ?'//
) | sed "s,<joudir>,$joudir,g" | sed "s,<jouexe>,$jouexe,g"
fi
echo "Exit code: $correct_exit_code"
Expand Down
2 changes: 1 addition & 1 deletion self_hosted/runs_wrong.txt
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
# This is a list of files that don't behave correctly when ran with the self-hosted compiler.
tests/crash/null_deref.jou
tests/other_errors/missing_return.jou
tests/other_errors/missing_value_in_return.jou
tests/other_errors/noreturn_but_return_with_value.jou
Expand All @@ -10,3 +9,4 @@ tests/wrong_type/cannot_be_indexed.jou
tests/wrong_type/index.jou
tests/syntax_error/assign_to_None.jou
tests/syntax_error/None_as_value.jou
tests/should_succeed/union.jou
Binary file not shown.

0 comments on commit c73eec6

Please sign in to comment.