15 lines
No EOL
330 B
Bash
Executable file
15 lines
No EOL
330 B
Bash
Executable file
#!/bin/bash
|
|
|
|
cd "$(dirname "$0")" # Change to script directory
|
|
|
|
for test in lexer/*.in; do
|
|
name=$(basename "$test" .in)
|
|
echo "Testing $name..."
|
|
|
|
if ! ../build/py2rb --dump-tokens < "$test" | diff - "lexer/${name}.out"; then
|
|
echo "FAILED: $name"
|
|
exit 1
|
|
fi
|
|
done
|
|
|
|
echo "SUCCESS: All tests passed" |