Debian Codegraph @

tests/spot-check

raw
1 #!/bin/sh
2 #
3 # spot-check - shell wrapper for performing spot check
4 #
5 # Written in 2015-2021 by Alex Vong <alexvong1995 AT protonmail DOT com>
6 #
7 # To the extent possible under law, the author(s) have dedicated all copyright
8 # and related and neighboring rights to this software to the public domain
9 # worldwide. This software is distributed without any warranty.
10 #
11 # You should have received a copy of the CC0 Public Domain Dedication along
12 # with this software.
13 # If not, see <https://creativecommons.org/publicdomain/zero/1.0/>.
14
15 # Use error
16 set -e
17
18 # Obtain MLUCAS_PATH by tranforming `foo/bar' to `foo'
19 # Otherwise, assume it is the current working directory
20 case "$0" in
21 */*)
22 MLUCAS_PATH=`expr "x$0" : 'x\(.*\)/[^/]*'`/../
23 ;;
24 *)
25 MLUCAS_PATH='../'
26 ;;
27 esac
28
29 # Export MLUCAS_PATH so that mlucas.cfg stays in the build directory
30 export MLUCAS_PATH
31
32 # Do spot-check
33 "$MLUCAS_PATH/mlucas" -fftlen 192 -iters 100 -radset 0