#!/bin/sh RES=/tmp/dsl-test.dummy check() { ../src/makedict -o dummy "$1" > "$2" if ! diff -u "$2" "$3"; then rm -f $RES echo "$0 failed with data: $1" >&2 exit 1 fi rm -f $RES } check sample-dicts/skip_comments.dsl $RES sample-dicts/skip_comments_dsl_std.dummy check sample-dicts/ref_param.dsl $RES sample-dicts/ref_param_std.dummy check sample-dicts/right_tag_order.dsl $RES sample-dicts/right_tag_order_std.dummy check sample-dicts/col_param.dsl $RES sample-dicts/col_param_std.dummy exit 0