nlsandler / write_a_c_compiler

Test suite to help you write your own C compiler
https://norasandler.com/2017/11/29/Write-a-Compiler.html
MIT License
855 stars 97 forks source link

test specific stages #3

Closed saitouena closed 5 years ago

saitouena commented 6 years ago

./test_compiler.sh ./mycompiler 1 2 4 to test stage1, stage2 and stage4.

nlsandler commented 5 years ago

Thanks for opening this pull request! This is a really handy feature. I'd like just one change: please delete line 100 (echo ${testcases[$i-1]}). It's redundant, because we already print out the stage name. Then it should be ready to merge!

nlsandler commented 5 years ago

Thank you!