Created
June 12, 2015 22:38
-
-
Save odurc/f7bf7b30a37a940579eb to your computer and use it in GitHub Desktop.
compare BOM files generated by KiCad using python2 and python3
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 | |
echo "Everything OK" |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment