From 00e13b1d679d242d6db62cab43303efe327afdbc Mon Sep 17 00:00:00 2001 From: Nik Clayton Date: Thu, 11 Nov 2004 19:47:55 +0000 Subject: Switch over to a different, more flexible test output protocol that's understood by Perl's Test::Harness module and prove(1) commands. Update README to describe the new protocol. The work's broken down into two main sets of changes. First, update the existing test programs (shell scripts and C programs) to produce output in the ok/not ok format, and to, where possible, also produce a header describing the number of tests that are expected to be run. Second, provide the .t files that actually run the tests. In some cases these are copies of, or very similar too, scripts that already existed. I've kept the old scripts around so that it's possible to verify that behaviour under this new system (in terms of whether or not a test fails) is identical to the behaviour under the old system. Add a TODO file. --- tools/regression/lib/libc/net/test-eui64_ntoa.c | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) (limited to 'tools/regression/lib/libc/net/test-eui64_ntoa.c') diff --git a/tools/regression/lib/libc/net/test-eui64_ntoa.c b/tools/regression/lib/libc/net/test-eui64_ntoa.c index c320329d24d0a..f7582f0a0bca1 100644 --- a/tools/regression/lib/libc/net/test-eui64_ntoa.c +++ b/tools/regression/lib/libc/net/test-eui64_ntoa.c @@ -40,13 +40,15 @@ main(int argc, char **argv) { char a[EUI64_SIZ]; + printf("1..1\n"); + if (eui64_ntoa(&test_eui64_id, a, sizeof(a)) == 0 && strcmp(a, test_eui64_id_ascii) == 0) { - printf("PASS: eui64_ntoa\n"); + printf("ok 1 - eui64_ntoa\n"); return (0); } - printf("a = '%s'\n", a); + printf("# a = '%s'\n", a); - printf("FAIL: eui64_ntoa\n"); + printf("not ok 1 - eui64_ntoa\n"); return (0); } -- cgit v1.2.3