runcheck.sh revision faf8ae9e57aecf780f77f114de886af4c1a0f0cc
9d0567bda351efa4286f38e85fb3e41ecd3683eaChristian Maeder#!/usr/local/bin/bash
9d0567bda351efa4286f38e85fb3e41ecd3683eaChristian Maeder
9d0567bda351efa4286f38e85fb3e41ecd3683eaChristian Maederfor i in MixIds Terms Formula SortItem OpItem PredItem BasicSpec;
9d0567bda351efa4286f38e85fb3e41ecd3683eaChristian Maederdo
9d0567bda351efa4286f38e85fb3e41ecd3683eaChristian Maeder echo testing $i
9d0567bda351efa4286f38e85fb3e41ecd3683eaChristian Maeder capa $i $i.casl >& temp
9d0567bda351efa4286f38e85fb3e41ecd3683eaChristian Maeder fgrep -s "parse error" temp || echo " " passed
9d0567bda351efa4286f38e85fb3e41ecd3683eaChristian Maeder diff temp $i.casl.output >& /dev/null || echo " " $i failed diff
9d0567bda351efa4286f38e85fb3e41ecd3683eaChristian Maeder capa $i Wrong$i.casl >& temp
9d0567bda351efa4286f38e85fb3e41ecd3683eaChristian Maeder wc -l Wrong$i.casl
9d0567bda351efa4286f38e85fb3e41ecd3683eaChristian Maeder fgrep -c "parse error" temp || echo " " Wrong$i failed error grep
20bd79f8844604c145510c616fecdaf47eba2fdbChristian Maeder diff temp Wrong$i.casl.output >& /dev/null \
20bd79f8844604c145510c616fecdaf47eba2fdbChristian Maeder || echo " " Wrong$i failed diff
20bd79f8844604c145510c616fecdaf47eba2fdbChristian Maederdone
20bd79f8844604c145510c616fecdaf47eba2fdbChristian Maeder
20bd79f8844604c145510c616fecdaf47eba2fdbChristian Maeder#extra test
20bd79f8844604c145510c616fecdaf47eba2fdbChristian Maederecho testing MixIds as Terms
3b48e17c1da54ee669e70b626d9fbc32ce495b2cChristian Maedercapa Terms MixIds.casl >& temp
20bd79f8844604c145510c616fecdaf47eba2fdbChristian Maederfgrep -l "parse error" temp || echo " " passed
20bd79f8844604c145510c616fecdaf47eba2fdbChristian Maederdiff -w temp MixIds.casl.output >& /dev/null || \
20bd79f8844604c145510c616fecdaf47eba2fdbChristian Maeder echo " " MixIds as Terms failed
20bd79f8844604c145510c616fecdaf47eba2fdbChristian Maedercapa Terms WrongMixIds.casl >& temp
20bd79f8844604c145510c616fecdaf47eba2fdbChristian Maederdiff temp WrongMixIds.casl.asTerms.output >& /dev/null || \
20bd79f8844604c145510c616fecdaf47eba2fdbChristian Maeder echo " " WrongMixIds as Terms failed
20bd79f8844604c145510c616fecdaf47eba2fdbChristian Maeder