X-Git-Url: http://git.draconx.ca/gitweb/dxcommon.git/blobdiff_plain/d4b010a6dc3c999c9d3488a453ab2be1af18b6c9..85d3347f01e3d27541e5d2fadf5ab49cc6cf54f9:/src/tap.h diff --git a/src/tap.h b/src/tap.h new file mode 100644 index 0000000..16a4617 --- /dev/null +++ b/src/tap.h @@ -0,0 +1,31 @@ +/* + * Copyright © 2015 Nick Bowler + * + * Simple TAP output library for C programs. + * + * License WTFPL2: Do What The Fuck You Want To Public License, version 2. + * This is free software: you are free to do what the fuck you want to. + * There is NO WARRANTY, to the extent permitted by law. + */ + +#ifndef DX_TAP_H_ +#define DX_TAP_H_ + +#include + +void tap_plan(unsigned expected_tests); +void tap_done(void); + +void tap_vbail_out(const char *fmt, va_list ap); +void tap_bail_out(const char *fmt, ...); + +void tap_vskip_all(const char *fmt, va_list ap); +void tap_skip_all(const char *fmt, ...); + +void tap_vdiag(const char *fmt, va_list ap); +void tap_diag(const char *fmt, ...); + +int tap_vresult(int ok, const char *fmt, va_list ap); +int tap_result(int ok, const char *fmt, ...); + +#endif