source:
Daodan/MSVC/dSFMT/check.sh@
711
| Last change on this file since 711 was 567, checked in by , 15 years ago | |
|---|---|
| File size: 368 bytes | |
| Rev | Line | |
|---|---|---|
| [567] | 1 | #!/bin/sh |
| 2 | prefix=$1 | |
| 3 | tmp=tmp.$$ | |
| 4 | exps="521 1279 2203 4253 11213 19937 44497 86243 132049 216091" | |
| 5 | for mexp in $exps; do | |
| 6 | compare=dSFMT.${mexp}.out.txt | |
| 7 | command=${prefix}-M${mexp} | |
| 8 | ./$command -v > $tmp | |
| 9 | if diff -q -w $tmp $compare; then | |
| 10 | echo $command output check OK | |
| 11 | rm -f $tmp | |
| 12 | else | |
| 13 | echo $command output check NG! | |
| 14 | rm -f $tmp | |
| 15 | exit 1 | |
| 16 | fi | |
| 17 | done | |
| 18 | exit 0 |
Note:
See TracBrowser
for help on using the repository browser.
