Commit Graph
84 Commits
Author SHA1 Message Date
Sam Hocevar a3161049df Fix copyright information and remove Id tag everywhere. 2010-01-12 23:54:02 +00:00
Sam Hocevar 550abdd84b Reduce the number of hardcoded figures in check-utils. 2010-01-12 23:53:56 +00:00
Sam Hocevar 47e539f59d In the unit test phase, only launch sequences with functions we support. 2010-01-12 23:53:24 +00:00
Sam Hocevar 638dc792a8 Improve zzcat documentation and add commandline flags, including --help
and --version.
2010-01-12 23:53:18 +00:00
Sam Hocevar 727b36b889 Move zzcat to the main src/ directory. It's becoming mature enough to be
distributed.
2010-01-12 23:53:09 +00:00
Sam Hocevar ecfba2614e Distribute zzcat and start writing documentation for it. 2010-01-08 01:28:02 +00:00
Sam Hocevar 75c6d6f71e Fix compilation warnings on FreeBSD. 2010-01-08 01:17:23 +00:00
Sam Hocevar 23f4274f85 Implement feof(x) in zzcat, to break out of a loop after EOF was hit x times. 2010-01-08 00:48:33 +00:00
Sam Hocevar 45764eb21f Add a special section in the testsuite for regressions. 2010-01-06 02:00:49 +00:00
Sam Hocevar b93cc3838d Make the check-utils output slightly clearer. 2009-12-14 16:10:15 +00:00
Sam Hocevar cbe0249118 Rewrite zzcat to make it a lot more configurable. 2009-12-14 02:55:31 +00:00
Sam Hocevar cae540ebf6 Add a workaround in the test suite for a cowdancer limitation causing .ilist
corruption and use ulimit instead of limit.
2009-12-14 02:55:25 +00:00
Sam Hocevar 4c195f17a1 Limit coredumpsize to 0 in test scripts to avoid dumping cores at build time. 2009-12-14 02:55:20 +00:00
Sam Hocevar 21d6697bf0 Give the fuzzed Win32 program a chance to display something even
if the diverted function itself causes a crash.
2009-12-07 18:35:45 +00:00
Sam Hocevar f8c30fa9c0 Cleaner solution for echoing the SOURCES variable. 2009-11-26 01:19:08 +00:00
Sam Hocevar 9e89a7fde7 More zzcat stuff. 2009-11-25 00:42:17 +00:00
Sam Hocevar 008cbf6065 More zzcat additions. 2009-11-24 01:25:37 +00:00
Sam Hocevar f36a3e475c Minor refactoring in zzcat. 2009-11-23 00:26:59 +00:00
Sam Hocevar 6b8b80e24d Improve the zzcat test suite with more unlocked IO functions. 2009-11-22 18:54:49 +00:00
Sam Hocevar 2e6ce6d101 Refactor zzcat for clarity. 2009-11-22 18:54:31 +00:00
Sam Hocevar f324673387 Check for typical source code issues in the testsuite. 2009-11-22 18:54:25 +00:00
Sam Hocevar e6604121cb Add a getc_unlocked method to zzcat. 2009-11-22 18:54:17 +00:00
Sam Hocevar 48d91662df Various compilation and unit test fixes. 2009-11-20 17:38:00 +00:00
Sam Hocevar 5887dac5b1 Make check-build executable. 2009-11-20 13:00:28 +00:00
Sam Hocevar 0f775dadc8 Add zznop, a small test program to help debug the Win32 port.
Also add check-build from libcaca to test that msvc/config.h is
up to date.
2009-11-20 12:06:17 +00:00
Sam Hocevar 62b812b7db Compilation fix for systems without get_unlocked(). 2009-10-27 23:10:22 +00:00
Sam Hocevar 0bf7cb7815 Add a getc_unlocked() variant to zzcat. 2009-10-27 23:08:16 +00:00
Sam Hocevar bdc2b59edd Add a getline() variant to zzcat. 2009-10-27 22:44:09 +00:00
Sam Hocevar f7d563f9ce * test/Makefile.am: add functions.inc to the distribution. 2008-07-20 11:20:47 +00:00
Sam Hocevar 523675e3d9 * bug-div0.c: raise SIGFPE manually since Darwin won't trap on 1/0. 2008-07-20 10:19:06 +00:00
Sam Hocevar 7778db7386 * Factored the test suite to avoid excessive code duplication. 2008-07-20 09:57:58 +00:00
Sam Hocevar 1c4697013f * check-utils: only perform 3 util test series, the rest was only here to
validate the RNG and we now have another test for that.
2008-07-18 09:28:22 +00:00
Sam Hocevar 8bbe4b289d * Make the RNG test shorter... it should not vary across platforms anyway. 2008-07-18 09:28:10 +00:00
Sam Hocevar 9810cc153f * Add slightly more complex modes to zzcat. 2008-07-18 09:28:06 +00:00
Sam Hocevar 7dfb40b935 * Add simpler modes to zzcat to better analyse what's going on. 2008-07-18 09:27:56 +00:00
Sam Hocevar 0a902ca687 * bug-memory.c: fix the SIGSEGV unit test. 2008-07-16 23:24:06 +00:00
Sam Hocevar 3c423c91de * zzcat.c: partial fread() reads are undefined; avoid them in zzcat. 2008-07-16 23:17:07 +00:00
Sam Hocevar 66717397fa * check-utils: use tail -n X or tail -X depending on the platform. 2008-07-16 21:03:37 +00:00
Sam Hocevar 22cd9da8fe * bootstrap: update bootstrapping script for OpenSolaris compatibility.
* check-utils: do not use grep -q, OpenSolaris doesn't know about it.
2008-07-16 20:53:14 +00:00
Sam Hocevar 48e7b55dfe * Oops, forgot to check in check-md5. 2008-07-16 20:36:58 +00:00
Sam Hocevar 4a1b32c6fd * Add a unit test for MD5 hashes. 2008-07-16 20:36:14 +00:00
Sam Hocevar 63b3a8e8a0 * Add a bunch of unit tests to check for zzuf basic capabilities: SIGSEGV
and SIGFPE detection, memory exhaustion detection.
2008-07-16 17:23:37 +00:00
Sam Hocevar b4541f895b * Split the test suite into the RNG test and the Unix utils test. 2008-07-16 17:23:24 +00:00
Sam Hocevar d5734170b3 * zzcat.c: compilation fix for missing headers. 2008-07-16 09:51:58 +00:00
Sam Hocevar 612d830111 * testsuite.h: do not test for grep -a if the option is unknown. 2008-07-16 09:51:53 +00:00
Sam Hocevar abeb8d87e0 * Add a few _INCLUDE_POSIX_SOURCE defines here and there so that we build
out of the box with HP-UX's c99 compiler.
2008-07-15 21:34:14 +00:00
Sam Hocevar 08d6923f3a * testsuite.sh: use printf instead of echo -n for better portability. 2008-07-15 20:16:15 +00:00
Sam Hocevar 0da8b1c33a * Run the testsuite when "make check" is called. 2008-06-20 06:05:25 +00:00
Sam Hocevar 500fcb0bf1 * Don't use `--' in the testsuite, it is no longer understood. 2008-05-18 12:38:37 +00:00
Sam Hocevar 383ed9cb09 * Add statistical analysis to the testsuite to check our random number
generator.
2008-05-16 22:01:11 +00:00