RetroShare/libretroshare/src/util/exampletst.c
drbob a89e5a4784 Addition of new makefile scripts.
Addition of the new serialiser (the start anyway).
Addition of regression test system.



git-svn-id: http://svn.code.sf.net/p/retroshare/code/trunk@249 b45a01b8-16f6-495d-af2f-9b41ad6348cc
2007-11-16 04:45:00 +00:00

41 lines
506 B
C

#include "utest.h"
#include <string.h>
/* must define the global variables */
INITTEST();
int main(int argc, char **argv)
{
int a = 2;
int b = 3;
int c = 2;
CHECK( a == c );
REPORT( "Initial Tests");
CHECK( (0 == strcmp("123", "123")) );
REPORT( "Successful Tests");
CHECK( a == b );
CHECK( (0 == strcmp("123", "12345")) );
REPORT( "Failed Tests" );
CHECK( 1 );
CHECK( a == c );
REPORT( "Later Successful Tests");
FINALREPORT( "Example Tests" );
return TESTRESULT();
}