int main( void) { Test *pTest; bool rc; pTest = ct_create("BACnet Date Time", NULL); /* individual tests */ rc = ct_addTestFunction(pTest, testBACnetDate); assert(rc); rc = ct_addTestFunction(pTest, testBACnetTime); assert(rc); rc = ct_addTestFunction(pTest, testBACnetDateTime); assert(rc); rc = ct_addTestFunction(pTest, testBACnetDayOfWeek); assert(rc); rc = ct_addTestFunction(pTest, testDateEpoch); assert(rc); rc = ct_addTestFunction(pTest, testBACnetDateTimeSeconds); assert(rc); rc = ct_addTestFunction(pTest, testBACnetDateTimeAdd); assert(rc); rc = ct_addTestFunction(pTest, testBACnetDateTimeWildcard); assert(rc); rc = ct_addTestFunction(pTest, testDatetimeCodec); assert(rc); ct_setStream(pTest, stdout); ct_run(pTest); (void) ct_report(pTest); ct_destroy(pTest); return 0; }
int main(int argc, char **argv) { int rc; strlcpy(cmd_name, basename(argv[0]), sizeof(cmd_name)); rc = ct_parseopts(argc, argv); if (rc < 0) { CT_WARN("try '%s --help' for more information", cmd_name); return -rc; } rc = ct_setup(); if (rc < 0) goto error_cleanup; rc = S3_initialize(NULL, S3_INIT_ALL, host); if(rc != 0){ CT_ERROR(rc, "Error in S3 init"); goto error_cleanup; } rc = ct_run(); error_cleanup: ct_s3_cleanup(); return -rc; }
void cs_run(Suite* pSuite) { size_t i; assert(pSuite); cs_reset(pSuite); for (i = 0; i < pSuite->nTests; ++i) { assert(pSuite->pTests[i]); ct_run(pSuite->pTests[i]); } }
int main( void) { Test *pTest; pTest = ct_create("BACnet Date Time", NULL); testDateTime(pTest); ct_setStream(pTest, stdout); ct_run(pTest); (void) ct_report(pTest); ct_destroy(pTest); return 0; }
int main( void) { Test *pTest; pTest = ct_create("keylist", NULL); testKeyList(pTest); ct_setStream(pTest, stdout); ct_run(pTest); (void) ct_report(pTest); ct_destroy(pTest); return 0; }
int main( void) { Test *pTest; pTest = ct_create("BACnet Prop Ref", NULL); testBACnetDeviceObjectPropertyReference(pTest); ct_setStream(pTest, stdout); ct_run(pTest); (void) ct_report(pTest); ct_destroy(pTest); return 0; }
int main(void) { Test *pTest; bool rc; pTest = ct_create("BACnet Schedule", NULL); /* individual tests */ rc = ct_addTestFunction(pTest, testSchedule); assert(rc); ct_setStream(pTest, stdout); ct_run(pTest); (void) ct_report(pTest); ct_destroy(pTest); return 0; }
int main( int argc, char *argv[]) { Test *pTest; bool rc; pTest = ct_create("BACnet Life Safety Operation", NULL); /* individual tests */ rc = ct_addTestFunction(pTest, testLSO); assert(rc); ct_setStream(pTest, stdout); ct_run(pTest); (void) ct_report(pTest); ct_destroy(pTest); return 0; }
int main( void) { Test *pTest; bool rc; pTest = ct_create("filename remove path", NULL); /* individual tests */ rc = ct_addTestFunction(pTest, testFilename); assert(rc); ct_setStream(pTest, stdout); ct_run(pTest); (void) ct_report(pTest); ct_destroy(pTest); return 0; }
int main( void) { Test *pTest; bool rc; pTest = ct_create("Memory Copy", NULL); /* individual tests */ rc = ct_addTestFunction(pTest, test_memcopy); assert(rc); ct_setStream(pTest, stdout); ct_run(pTest); (void) ct_report(pTest); ct_destroy(pTest); return 0; }
int main( void) { Test *pTest; bool rc; pTest = ct_create("Ring Buffer", NULL); /* individual tests */ rc = ct_addTestFunction(pTest, testRingBufSize16); assert(rc); rc = ct_addTestFunction(pTest, testRingBufSize32); assert(rc); ct_setStream(pTest, stdout); ct_run(pTest); (void) ct_report(pTest); ct_destroy(pTest); return 0; }
int main( void) { Test *pTest; bool rc; pTest = ct_create("BACnet PrivateTransfer", NULL); /* individual tests */ rc = ct_addTestFunction(pTest, test_Private_Transfer_Request); assert(rc); rc = ct_addTestFunction(pTest, test_Private_Transfer_Ack); assert(rc); rc = ct_addTestFunction(pTest, test_Private_Transfer_Error); assert(rc); rc = ct_addTestFunction(pTest, test_Unconfirmed_Private_Transfer_Request); assert(rc); ct_setStream(pTest, stdout); ct_run(pTest); (void) ct_report(pTest); ct_destroy(pTest); return 0; }
int main( void) { Test *pTest; bool rc; pTest = ct_create("BACnet Time Stamp", NULL); /* individual tests */ rc = ct_addTestFunction(pTest, testTimestampSequence); assert(rc); rc = ct_addTestFunction(pTest, testTimestampTime); assert(rc); rc = ct_addTestFunction(pTest, testTimestampTimeDate); assert(rc); ct_setStream(pTest, stdout); ct_run(pTest); (void) ct_report(pTest); ct_destroy(pTest); return 0; }