diff options
author | Yann Herklotz <ymherklotz@gmail.com> | 2017-03-22 22:34:24 +0000 |
---|---|---|
committer | Yann Herklotz <ymherklotz@gmail.com> | 2017-03-22 22:34:24 +0000 |
commit | ffb5df0e59d93fd5322ef02e337f713ed56c262f (patch) | |
tree | 7c93e278d8b005b94aaab1fa171f3c9644fefac4 /run_test_deliverable.sh | |
parent | 561b76bdebd584d03d4e451375777651a9d74017 (diff) | |
download | Compiler-ffb5df0e59d93fd5322ef02e337f713ed56c262f.tar.gz Compiler-ffb5df0e59d93fd5322ef02e337f713ed56c262f.zip |
Switch working
Diffstat (limited to 'run_test_deliverable.sh')
-rwxr-xr-x | run_test_deliverable.sh | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/run_test_deliverable.sh b/run_test_deliverable.sh index 1c6e2ba..03770a0 100755 --- a/run_test_deliverable.sh +++ b/run_test_deliverable.sh @@ -29,21 +29,21 @@ for DRIVER in test_deliverable/testcases/*_driver.c ; do # Compile driver with normal GCC mips-linux-gnu-gcc -c $DRIVER -o working/${NAME}_driver.o 2> working/${NAME}_driver.compile.stderr if [[ $? -ne 0 ]]; then - >&2 printf "\e[1;31mError\e[0m : Couldn't compile driver program using GCC.\n" + printf "\e[1;31mError\e[0m : Couldn't compile driver program using GCC.\n" continue fi # Compile test function with compiler under test to assembly cat $TESTCODE | $COMPILER > working/$NAME.s 2> working/${NAME}.compile.stderr if [[ $? -ne 0 ]]; then - >&2 printf "\e[1;31mError\e[0m : Compiler returned error message.\n" + printf "\e[1;31mError\e[0m : Compiler returned error message.\n" continue fi # Link driver object and assembly into executable mips-linux-gnu-gcc -static working/${NAME}.s working/${NAME}_driver.o -o working/${NAME}.elf 2> working/${NAME}.link.stderr if [[ $? -ne 0 ]]; then - >&2 printf "\e[1;31mError\e[0m : Linker returned error message.\n" + printf "\e[1;31mError\e[0m : Linker returned error message.\n" continue fi |