File: test-cmds.sh

package info (click to toggle)
libhsync 0.5.7-1.2
  • links: PTS
  • area: main
  • in suites: woody
  • size: 1,060 kB
  • ctags: 543
  • sloc: sh: 7,944; ansic: 5,413; makefile: 154
file content (21 lines) | stat: -rwxr-xr-x 564 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
#! /bin/sh -pe

# $Id: test-cmds.sh,v 1.9 2000/08/06 12:50:36 mbp Exp $
# Copyright (C) 2000 by Martin Pool

# 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.

out=$tmpdir/out.tmp
cmds=$srcdir/test-cmds.in
tmp=$tmpdir/bin.tmp

run_test hsemit < $cmds > $tmp
run_test hsinhale > $out < $tmp
run_test cmp $out $cmds

run_test sockrun -- hsinhale $debug <$tmp >$out
run_test cmp $out $cmds