File: check.sh

package info (click to toggle)
dsfmt 2.2.3%2Bdfsg-5
  • links: PTS, VCS
  • area: main
  • in suites: bookworm, bullseye
  • size: 944 kB
  • sloc: ansic: 4,839; makefile: 94; sh: 17
file content (18 lines) | stat: -rwxr-xr-x 368 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
prefix=$1
tmp=tmp.$$
exps="521 1279 2203 4253 11213 19937 44497 86243 132049 216091"
for mexp in $exps; do
    compare=dSFMT.${mexp}.out.txt
    command=${prefix}-M${mexp}
    ./$command -v > $tmp
    if diff -q -w $tmp $compare; then
	echo $command output check OK
	rm -f $tmp
    else
	echo $command output check NG!
	rm -f $tmp
	exit 1
    fi
done
exit 0