doc: update the instructions for generating a coverage report
[coreutils.git] / tests / factor / run.sh
blob9ba6da9ee4892b0fa8de61683646d8323f4a2548
1 #!/bin/sh
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-2017 Free Software Foundation, Inc.
15 . "${srcdir=.}/tests/init.sh"; path_prepend_ ./src
17 # Don't run these tests by default.
18 very_expensive_
20 print_ver_ factor seq sha1sum
22 # Template variables.
23 START=__START__
24 END=__END__
25 CKSUM=__CKSUM__
27 test "$START" = '__ST''ART__' && skip_ 'ignoring factor test template'
29 echo "$CKSUM -" > exp
31 f=1
32 seq $START $END | factor | sha1sum -c --status exp && f=0
34 Exit $f