File: REGRESS

package info (click to toggle)
tcptrace 6.6.7-6
  • links: PTS, VCS
  • area: main
  • in suites: bookworm, bullseye, trixie
  • size: 9,440 kB
  • sloc: ansic: 24,663; sh: 3,704; makefile: 237; lex: 162; yacc: 99
file content (48 lines) | stat: -rwxr-xr-x 1,342 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
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
#!/bin/sh
PLATFORM=`uname -smr | sed 's/[ \.]/_/g'`
OUTDIR=OUTPUT_${PLATFORM}
BINDIR=BINARY_${PLATFORM}
#
# the good True64 folks are smarter than the rest of us and use a
# different checksum algorithm.  Let's see if we can get them to
# dumb down temporarily and join us at our puny level :-(
#
CMD_ENV=xpg4
export CMD_ENV
#
#
DIFFS=DIFFS
#
echo "Platform is ${PLATFORM}"
#
echo "Cleaning..."
rm -rf ${OUTDIR} ${DIFFS} *.xpl
echo "Preparing output directory..."
mkdir ${OUTDIR}
#
echo "Running each regression trace file"
for FILE in *.*; do
  echo -n "  ${FILE}:	"
  # short output format
  echo -n " short"
  ../tcptrace +t -nr ${FILE} 2>&1 | bin/cleanup > ${OUTDIR}/$FILE.short
  # long output format
  echo -n " long"
  ../tcptrace +t -lnrW ${FILE} 2>&1 | bin/cleanup  > ${OUTDIR}/$FILE.long
  # first 100 packets
  echo -n " packets"
  ../tcptrace +t -pn -E100 --checksum ${FILE} | bin/cleanup > ${OUTDIR}/$FILE.packets
  # ALL PLOTS for first 1000 packets
  echo -n " plots"
  ../tcptrace +t -n -G -E1000  --output_dir=. ${FILE} > /dev/null 2>&1
  cksum *.xpl 2>/dev/null | sed 's/[ 	][ 	]*/	/g' > ${OUTDIR}/$FILE.xplots.cksum
#  tar cf ${OUTDIR}/$FILE.xplots.tar *.xpl 2>/dev/null
  # cleanup
  rm -f *.xpl 
  echo "."
done
#
echo "Testing for differences from benchmark output"
diff -r OUTPUTbench ${OUTDIR} | tee ${DIFFS}
#
exit 0