- Copy YOUR_PROJECT to same directory as tests folder and testMyProject.sh
- build your projekt
- chmod +x testMyProject.sh
- ./testMyProject.sh
Script comparing files is based on diff command. So if your test ends with FAILED it may not be a bad output, because nonTerminal and terminal symbols may be in different order.
http://www.sanfoundry.com/automata-theory-cfg-eliminating-useless-symbols/
http://scanftree.com/automata/elimination-of-useless-symbol-from-context-free-grammar