#!/bin/sh # uniq_test.sh - Don Yang (uguu.org) # For use with yume.c or yume.pl # # 03/15/04 if [ ! -n "$1" ] then echo $0 \ exit 1 fi for i in generic longline do perl test_$i.pl $$ > test_$i.$$.input for j in "" "-u" "-d" do uniq $j test_$i.$$.input test_$i$j.$$.ref $1 $j -h1 -k test_$i.$$.input test_$i$j.$$.output diff -s -q test_$i$j.$$.ref test_$i$j.$$.output rm -f test_$i$j.$$.ref test_$i$j.$$.output done rm -f test_$i.$$.input done for i in i c w4 s8 f3 do perl test_$i.pl $$ > test_$i.$$.input for j in "" "-u" "-d" do uniq -$i $j test_$i.$$.input test_$i$j.$$.ref $1 -$i $j -h1 -k test_$i.$$.input test_$i$j.$$.output diff -s -q test_$i$j.$$.ref test_$i$j.$$.output rm -f test_$i$j.$$.ref test_$i$j.$$.output done rm -f test_$i.$$.input done