File: spline.test

package info (click to toggle)
plotutils 2.6-11
  • links: PTS, VCS
  • area: main
  • in suites: bullseye, sid
  • size: 13,184 kB
  • sloc: ansic: 68,670; sh: 20,086; cpp: 12,382; yacc: 2,588; makefile: 838; lex: 137
file content (23 lines) | stat: -rwxr-xr-x 597 bytes parent folder | download | duplicates (3)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
#!/bin/sh

echo 0 1 0.5 0.75 -0.25 0 | ../spline/spline -a -T 1 -n 120 \
	--precision 5 -p >spline.out

# Work around testsuite error
# http://lists.gnu.org/archive/html/bug-plotutils/2016-04/msg00000.html
#
# work around line end problems in installations with DJGPP under DOS
tr -d '\015' < spline.out \
	| head -n 120 | tail -n 119 \
	> spline.dos

# cannot patch spline.xout, it is used as input for graph.test.
head -n 120 $SRCDIR/spline.xout | tail -n 119 > spline.xout.4comp

if cmp -s spline.xout.4comp spline.dos
	then retval=0;
	else retval=1;
	fi;

rm -f spline.xout.4comp
exit $retval