-
Notifications
You must be signed in to change notification settings - Fork 52
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[test/ci] Factor out parser and seman test invocation and make them f…
…ail fast
- Loading branch information
Showing
9 changed files
with
43 additions
and
136 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,28 +1,13 @@ | ||
#!/bin/bash | ||
|
||
function do_parser_tests() { | ||
cd parser | ||
print_status Parser "" | ||
run_v3c "" -test -expect=failures.txt *.v3 | tee $OUT/out | $PROGRESS | ||
cd .. | ||
} | ||
|
||
function do_seman_tests() { | ||
cd seman | ||
print_status Semantic "" | ||
run_v3c "" -test -expect=failures.txt *.v3 | tee $OUT/out | $PROGRESS | ||
cd .. | ||
} | ||
|
||
. ../common.bash core | ||
if [ $# -gt 0 ]; then | ||
TESTS="$@" | ||
else | ||
(do_parser_tests) | ||
(do_seman_tests) | ||
do_parser_tests | ||
do_seman_tests | ||
|
||
TESTS=*.v3 | ||
fi | ||
|
||
execute_tests | ||
exit $? |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,28 +1,13 @@ | ||
#!/bin/bash | ||
|
||
function do_parser_tests() { | ||
cd parser | ||
print_status Parser "" | ||
run_v3c "" -test -expect=failures.txt *.v3 | tee $OUT/out | $PROGRESS | ||
cd .. | ||
} | ||
|
||
function do_seman_tests() { | ||
cd seman | ||
print_status Semantic "" | ||
run_v3c "" -test -expect=failures.txt *.v3 | tee $OUT/out | $PROGRESS | ||
cd .. | ||
} | ||
|
||
. ../common.bash enums | ||
if [ $# -gt 0 ]; then | ||
TESTS="$@" | ||
else | ||
(do_parser_tests) | ||
(do_seman_tests) | ||
do_parser_tests | ||
do_seman_tests | ||
|
||
TESTS=*.v3 | ||
fi | ||
|
||
execute_tests | ||
exit $? |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,28 +1,13 @@ | ||
#!/bin/bash | ||
|
||
function do_parser_tests() { | ||
cd parser | ||
print_status Parser "" | ||
run_v3c "" -test -expect=failures.txt *.v3 | tee $OUT/out | $PROGRESS | ||
cd .. | ||
} | ||
|
||
function do_seman_tests() { | ||
cd seman | ||
print_status Semantic "" | ||
run_v3c "" -test -expect=failures.txt *.v3 | tee $OUT/out | $PROGRESS | ||
cd .. | ||
} | ||
|
||
. ../common.bash fsi64 | ||
if [ $# -gt 0 ]; then | ||
TESTS="$@" | ||
else | ||
(do_parser_tests) | ||
(do_seman_tests) | ||
do_parser_tests | ||
do_seman_tests | ||
|
||
TESTS=*.v3 | ||
fi | ||
|
||
execute_tests | ||
exit $? |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,28 +1,13 @@ | ||
#!/bin/bash | ||
|
||
function do_parser_tests() { | ||
cd parser | ||
print_status Parser "" | ||
run_v3c "" -test -expect=failures.txt *.v3 | tee $OUT/out | $PROGRESS | ||
cd .. | ||
} | ||
|
||
function do_seman_tests() { | ||
cd seman | ||
print_status Semantic "" | ||
run_v3c "" -test -expect=failures.txt *.v3 | tee $OUT/out | $PROGRESS | ||
cd .. | ||
} | ||
|
||
. ../common.bash funcexpr | ||
if [ $# -gt 0 ]; then | ||
TESTS="$@" | ||
else | ||
(do_parser_tests) | ||
(do_seman_tests) | ||
do_parser_tests | ||
do_seman_tests | ||
|
||
TESTS=*.v3 | ||
fi | ||
|
||
execute_tests | ||
exit $? |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,28 +1,13 @@ | ||
#!/bin/bash | ||
|
||
function do_parser_tests() { | ||
cd parser | ||
print_status Parser "" | ||
run_v3c "" -test -expect=failures.txt *.v3 | tee $OUT/out | $PROGRESS | ||
cd .. | ||
} | ||
|
||
function do_seman_tests() { | ||
cd seman | ||
print_status Semantic "" | ||
run_v3c "" -test -expect=failures.txt *.v3 | tee $OUT/out | $PROGRESS | ||
cd .. | ||
} | ||
|
||
. ../common.bash layout | ||
if [ $# -gt 0 ]; then | ||
TESTS="$@" | ||
else | ||
(do_parser_tests) | ||
(do_seman_tests) | ||
do_parser_tests | ||
do_seman_tests | ||
|
||
TESTS=*.v3 | ||
fi | ||
|
||
execute_tests | ||
exit $? |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,29 +1,13 @@ | ||
#!/bin/bash | ||
|
||
function do_parser_tests() { | ||
cd parser | ||
print_status Parser "" | ||
run_v3c "" -test -expect=failures.txt *.v3 | tee $OUT/out | $PROGRESS | ||
cd .. | ||
} | ||
|
||
function do_seman_tests() { | ||
cd seman | ||
print_status Semantic "" | ||
run_v3c "" -test -expect=failures.txt *.v3 | tee $OUT/out | $PROGRESS | ||
cd .. | ||
} | ||
|
||
. ../common.bash range | ||
if [ $# -gt 0 ]; then | ||
TESTS="$@" | ||
else | ||
(do_parser_tests) | ||
(do_seman_tests) | ||
do_parser_tests | ||
do_seman_tests | ||
|
||
TESTS=*.v3 | ||
fi | ||
|
||
execute_tests | ||
exit $? | ||
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,29 +1,14 @@ | ||
#!/bin/bash | ||
|
||
function do_parser_tests() { | ||
cd parser | ||
print_status Parser "" | ||
run_v3c "" -test -expect=failures.txt *.v3 | tee $OUT/out | $PROGRESS | ||
cd .. | ||
} | ||
|
||
function do_seman_tests() { | ||
cd seman | ||
print_status Semantic "" | ||
run_v3c "" -test -expect=failures.txt *.v3 | tee $OUT/out | $PROGRESS | ||
cd .. | ||
} | ||
|
||
. ../common.bash variants | ||
|
||
if [ $# -gt 0 ]; then | ||
TESTS="$@" | ||
else | ||
(do_parser_tests) | ||
(do_seman_tests) | ||
do_parser_tests | ||
do_seman_tests | ||
|
||
TESTS=*.v3 | ||
fi | ||
|
||
execute_tests | ||
exit $? |