3 # === THIS IS A __TEMPLATE__ ===
5 # Test the factor rewrite.
6 # The test is to run this command
7 # seq $START $END | factor | shasum -c --status <(echo $CKSUM -)
8 # I.e., to ensure that the factorizations of integers $1..$2
9 # match what we expect.
11 # See: tests/factor/create-test.sh
13 # Copyright (C) 2012-2024 Free Software Foundation, Inc.
15 .
"${srcdir=.}/tests/init.sh"; path_prepend_ .
/src
17 # Don't run these tests by default.
20 print_ver_
factor seq sha1sum
27 test "$START" = '__ST''ART__' && skip_
'ignoring factor test template'
32 seq $START $END |
factor |
sha1sum -c --status exp
&& f
=0