tap.c File Reference

#include "tap.h"
#include <stdlib.h>
#include <stdarg.h>
#include <stdio.h>
#include <string.h>

Defines

#define tapout   stdout
 Output stream for test report message.

Functions

static void vemit_tap (int pass, char const *fmt, va_list ap)
 Emit the beginning of a test line, that is: "(not) ok", test number, and description.
static void emit_dir (const char *dir, const char *why)
 Emit a TAP directive.
static void emit_endl ()
 Emit a newline to the TAP output stream.
void diag (char const *fmt,...)
void plan (int const count)
 Set number of tests that is planned to execute.
void skip_all (char const *reason,...)
void ok (int const pass, char const *fmt,...)
void skip (int how_many, char const *const fmt,...)
void todo_start (char const *message,...)
void todo_end ()
 End a section of tests that are not yet ready.
int exit_status ()
 Print summary report and return exit status.

Variables

static TEST_DATA g_test = { 0, 0, 0, "" }
 Test data structure.

Function Documentation

void diag char const *  fmt,
  ...
 

Examples:
simple.t.c.

void ok int const   pass,
char const *  fmt,
  ...
 

Examples:
simple.t.c, skip.t.c, skip_all.t.c, and todo.t.c.

void skip int  how_many,
char const *const   fmt,
  ...
 

void skip_all char const *  reason,
  ...
 

Examples:
skip_all.t.c.

void todo_start char const *  message,
  ...
 

Examples:
todo.t.c.


Generated on Fri Oct 20 21:13:28 2006 by  doxygen 1.4.6