Browse Source

Make libsecp256k1 tests optional

They are expensive and slow, especially on a slow hardware like
Raspberry Pi.
master
Kristaps Kaupe 5 years ago
parent
commit
aa3cec4623
No known key found for this signature in database
GPG Key ID: D47B1B4232B55437
  1. 21
      install.sh

21
install.sh

@ -280,8 +280,12 @@ libsecp256k1_build()
--enable-benchmark=no \ --enable-benchmark=no \
MAKE=$make MAKE=$make
$make $make
if ! $make check; then if [[ $use_secp_check == '1' ]]; then
return 1 if ! $make check; then
return 1
fi
else
echo "Skipping libsecp256k1 tests."
fi fi
} }
@ -371,6 +375,9 @@ parse_flags ()
--develop) --develop)
develop_build='1' develop_build='1'
;; ;;
--disable-secp-check)
use_secp_check='0'
;;
-p|--python) -p|--python)
if [[ "$2" ]]; then if [[ "$2" ]]; then
python="$2" python="$2"
@ -402,10 +409,11 @@ Usage: "${0}" [options]
Options: Options:
--develop code remains editable in place (currently always enabled) --develop code remains editable in place (currently always enabled)
--python, -p python version (only python3 versions are supported) --disable-secp-check do not run libsecp256k1 tests (default is to run them)
--with-qt build the Qt GUI --python, -p python version (only python3 versions are supported)
--without-qt don't build the Qt GUI --with-qt build the Qt GUI
--without-qt don't build the Qt GUI
" "
return 1 return 1
;; ;;
@ -469,6 +477,7 @@ main ()
develop_build='' develop_build=''
no_gpg_validation='' no_gpg_validation=''
python='python3' python='python3'
use_secp_check='1'
with_qt='' with_qt=''
reinstall='false' reinstall='false'
if ! parse_flags ${@}; then if ! parse_flags ${@}; then

Loading…
Cancel
Save