]> sourceware.org Git - bzip2-tests.git/log
bzip2-tests.git
4 years agobzip2: modify run-tests script to PASS/FAIL master
Rahul Kumar [Mon, 20 Apr 2020 18:13:09 +0000 (23:43 +0530)]
bzip2: modify run-tests script to PASS/FAIL

1) modify run-tests script to write PASS/FAIL as expected by the ptest
   infrastructure

2) Since the discrete md5sum does not have a short form of
   --status.And minimal base images does not support commands with
   long form arguments so dropping this argument

Signed-off-by: Rahul Kumar <rahulk@mvista.com>
5 years agoCollect all bad tests file names and results to print at the end.
Mark Wielaard [Sun, 7 Jul 2019 23:28:55 +0000 (01:28 +0200)]
Collect all bad tests file names and results to print at the end.

When there are bad tests run-tests.sh will print:

  Bad results, look for !!! in the logs above

To make it easier to see which files/results were bad, collect them and
print them at the end. A bad run will now print something like:

  Bad results, look for !!! in the logs above
   - lbzip2/32767.bz2 bad decompress result
   - lbzip2/incomp-2 md5sum doesn't match

5 years agoRemove testfilecopy after second decompression attempt.
Mark Wielaard [Tue, 2 Jul 2019 21:53:37 +0000 (23:53 +0200)]
Remove testfilecopy after second decompression attempt.

We run tests twice, once in default mode and once in small mode.
For the recompression/redecompression attempt we create a copy of
the original input file. Which we remove after the first attempt
in default mode. It should also be removed after the second attempt
in small mode. Otherwise we keep a possibly very large file around.

5 years agoREADME: Change none bad files -> non-bad files.
Mark Wielaard [Mon, 1 Jul 2019 18:03:33 +0000 (20:03 +0200)]
README: Change none bad files -> non-bad files.

Reported-by: Jonathan Wakely <jwakely.gcc@gmail.com>
5 years agoInitial bzip2 test suite.
Mark Wielaard [Sun, 30 Jun 2019 18:56:33 +0000 (20:56 +0200)]
Initial bzip2 test suite.

Contains test files from the commons-compress, dotnetzip, go, lbzip2
and pyflate projects. Each test file has either an associated md5 sum
to check it decompressed correctly. Or it is named bz2.bad to indicate
it cannot be decompressed (or might need --force to decompress).

The run-tests.sh test wrapper runs a bzip2 binary in a couple of
configurations, optionally under valgrind, on all the test files in
the tree.

This page took 0.022427 seconds and 5 git commands to generate.