aboutsummaryrefslogtreecommitdiff
path: root/testme.h
blob: eb6e9006b0d396fa32e4931425e215776045cbe0 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
#ifndef TESTME_H
#define TESTME_H

#include <stdint.h>
#include <stdarg.h>

void testInit(unsigned ntests);
void testOk(int c, const char *msg, ...) __attribute__((format(__printf__,2,3)));
void testVOk(int c, const char *msg, va_list) __attribute__((format(__printf__,2,0)));
void testPass(const char *msg, ...) __attribute__((format(__printf__,1,2)));
void testFail(const char *msg, ...) __attribute__((format(__printf__,1,2)));
void testDiag(const char *msg, ...) __attribute__((format(__printf__,1,2)));

void testEqI(uint32_t expect, uint32_t actual, const char *msg, ...) __attribute__((format(__printf__,3,4)));

#endif /* TESTME_H */