summaryrefslogtreecommitdiff
path: root/test-cmds.sh
blob: 650bec73d38dd4d88e23e5f269754bc6aaca670b (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
#! /bin/sh -pe

# Regression test binary command encoding by spitting lots of 
# stuff from ascii to binary and back.

# We expect the automake-generated Makefile to pass in $srcdir, but if we're
# run from the commandline we may not have it.

source testfns.sh $0 $@

out=out.tmp
cmds=cmds.txt
tmp=bin.tmp

run_test hsemit < $cmds > $tmp
run_test hsinhale > $out < $tmp
run_test diff -b -q $out $cmds