File: gpl.sh

package info (click to toggle)
libdisorder 0.0.2%2Bgit20130809.8062ee1-2
  • links: PTS, VCS
  • area: main
  • in suites: bullseye
  • size: 224 kB
  • sloc: ansic: 287; makefile: 56; sh: 15
file content (18 lines) | stat: -rw-r--r-- 394 bytes parent folder | download | duplicates (5)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
#!/bin/sh

EXPECTED="tokens: 78 entropy: 4.737054 metric: 0.000259 maxent: 6.285402 ratio: 0.753660"
ACTUAL="$(./ropy COPYING)"

if [ x"$EXPECTED" = x"$ACTUAL" ] ; then
  echo "Entropy of COPYING matches expected value."
  exit 0
else
  echo "Test failure:"
  echo "  expected output:"
  echo -n "    "
  echo "$EXPECTED"
  echo "  actual output:"
  echo -n "    "
  echo "$ACTUAL"
  exit 1
fi