]> git.ipfire.org Git - thirdparty/kmod.git/commit
testsuite: match outputs of test with a known correct one
authorLucas De Marchi <lucas.demarchi@profusion.mobi>
Wed, 25 Jan 2012 19:46:52 +0000 (17:46 -0200)
committerLucas De Marchi <lucas.demarchi@profusion.mobi>
Thu, 26 Jan 2012 18:05:05 +0000 (16:05 -0200)
commit3dbb8dea5ff4fb23484b604d0c4b9c9ae77a03a5
tree8870e55db2efa3de6fdf602d10dff0e9cd5b770a
parent45481ee28c44c66a25015b7682f355d093c3b94a
testsuite: match outputs of test with a known correct one

Tests may put the correct output in a file and tell testsuite to check
if it matches the output from the test running.

Testsuite compares the outputs while running the test: it creates a pipe
between parent and child; parent reads both stdout and stderr from child
and compares with the correct output.
testsuite/testsuite.c
testsuite/testsuite.h