File: check_remote_test

package info (click to toggle)
zssh 1.5c.debian.1-10
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid, trixie
  • size: 492 kB
  • sloc: ansic: 2,048; sh: 184; makefile: 146
file content (20 lines) | stat: -rwxr-xr-x 538 bytes parent folder | download | duplicates (7)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
#!/bin/sh

if [ -f "output.dump" ]; then : ; else 
  echo "output.dump file not found" 
  exit 1 
fi 

size=`wc -c < local_tty_test.reference_output` 
size=`echo $size`

rm -f output.dump2 ; \
dd if="output.dump" of="output.dump2" bs=1 count=$size   >& /dev/null

if  diff local_tty_test.reference_output  output.dump2 >& /dev/null ; then 
	echo "remote tty test passed !" 
else 
	echo "remote tty test FAILED !" 
	echo "diff -au local_tty_test.reference_output  output.dump2" 
	diff -au local_tty_test.reference_output  output.dump2 
fi