File: test_gsl_histogram.sh

package info (click to toggle)
gsl 2.8%2Bdfsg-5
  • links: PTS, VCS
  • area: main
  • in suites: trixie
  • size: 29,088 kB
  • sloc: ansic: 269,984; sh: 4,535; makefile: 902; python: 69
file content (16 lines) | stat: -rwxr-xr-x 229 bytes parent folder | download | duplicates (19)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
#! /bin/sh

cat > test.exp.1.tmp <<EOF
1 2 1
2 3 2
3 4 0
4 5 1
EOF

echo 1 2 2.5 4 | ./gsl-histogram 1 5 4 | tr -d '\r' > test.obs.1.tmp

cmp test.exp.1.tmp test.obs.1.tmp
STATUS=$?
rm test.exp.1.tmp test.obs.1.tmp

exit $STATUS