This file contains hidden or 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
/* | |
* interpreter.ino: Simple Arduino command line interpreter. | |
* | |
* This is intended solely as a template for building richer, | |
* application-specific interpreters. Add your specific commands to the | |
* exec() function, and whatever you need to setup() and loop(). | |
* | |
* Usage: | |
* Talk to it through the serial port at 9600/8N1. Commands should be | |
* terminated by CR (\r), answers are terminated by CRLF (\r\n). This |
This file contains hidden or 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
#!/usr/bin/bash | |
generators=(bom_csv_grouped_by_value.py bom_csv_grouped_by_value_with_fp.py bom_csv_sorted_by_ref.py bom_html_by_value.py bom_html_grouped_by_value.py bom_html_with_advanced_grouping.py bom_sorted_by_ref.py) | |
for generator in ${generators[@]}; do | |
python2 ${generator} /tmp/bom-test.xml /tmp/bom-test-py2.out | |
python3 ${generator} /tmp/bom-test.xml /tmp/bom-test-py3.out | |
[[ `diff /tmp/bom-test-py2.out /tmp/bom-test-py3.out` ]] && echo "Fail: ${generator}" && exit 1 | |
done |