mirror of
https://git.savannah.gnu.org/git/coreutils.git
synced 2025-09-10 07:59:52 +02:00
Run "make update-copyright" and then... * tests/sample-test: Adjust to use the single most recent year. * tests/du/bind-mount-dir-cycle-v2.sh: Fix case in copyright message, so that year is updated automatically in future.
33 lines
653 B
Bash
Executable File
33 lines
653 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-2015 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__
|
|
|
|
echo "$CKSUM -" > exp
|
|
|
|
f=1
|
|
seq $START $END | factor | sha1sum -c --status exp && f=0
|
|
|
|
Exit $f
|