1
0
mirror of git://git.sv.gnu.org/coreutils.git synced 2026-02-15 20:02:10 +02:00
Files
coreutils/tests/factor/run.sh
Pádraig Brady a966dcdb69 maint: update all copyright year number ranges
Update to latest gnulib with new copyright year.
Run "make update-copyright" and then...

* gnulib: Update included in this commit as copyright years
are the only change from the previous gnulib commit.
* tests/init.sh: Sync with gnulib to pick up copyright year.
* bootstrap: Manually update copyright year,
until we fully sync with gnulib at a later stage.
* tests/sample-test: Adjust to use the single most recent year.
2024-01-01 13:27:23 +00:00

35 lines
725 B
Bash
Executable File

#!/bin/sh
# === THIS IS A __TEMPLATE__ ===
# Test the factor rewrite.
# The test is to run this command
# seq $START $END | factor | shasum -c --status <(echo $CKSUM -)
# I.e., to ensure that the factorizations of integers $1..$2
# match what we expect.
#
# See: tests/factor/create-test.sh
# Copyright (C) 2012-2024 Free Software Foundation, Inc.
. "${srcdir=.}/tests/init.sh"; path_prepend_ ./src
# Don't run these tests by default.
very_expensive_
print_ver_ factor seq sha1sum
# Template variables.
START=__START__
END=__END__
CKSUM=__CKSUM__
test "$START" = '__ST''ART__' && skip_ 'ignoring factor test template'
echo "$CKSUM -" > exp
f=1
seq $START $END | factor | sha1sum -c --status exp && f=0
Exit $f