int main (int argc, char *argv []) { bool verbose; if (argc == 2 && streq (argv [1], "-v")) verbose = true; else verbose = false; printf ("Running CZMQ selftests...\n"); // These are ordered from lowest level to highest level zarmour_test (verbose); zrex_test (verbose); zsys_test (verbose); zchunk_test (verbose); zconfig_test (verbose); zclock_test (verbose); zdir_patch_test (verbose); zdir_test (verbose); zdigest_test (verbose); zframe_test (verbose); zstr_test (verbose); zmsg_test (verbose); zfile_test (verbose); zhash_test (verbose); zlist_test (verbose); zring_test (verbose); ziflist_test (verbose); zuuid_test (verbose); zsock_test (verbose); zsock_option_test (verbose); zactor_test (verbose); zpoller_test (verbose); zloop_test (verbose); zproxy_test (verbose); zmonitor_test (verbose); zbeacon_test (verbose); zgossip_test (verbose); zcert_test (verbose); zcertstore_test (verbose); zauth_test (verbose); // Deprecated V2 classes zauth_v2_test (verbose); zbeacon_v2_test (verbose); zctx_test (verbose); zmonitor_v2_test (verbose); zmutex_test (verbose); zproxy_v2_test (verbose); zsocket_test (verbose); zsockopt_test (verbose); zthread_test (verbose); zsys_shutdown (); printf ("Number of memory allocations=%" PRId64 "\n", zsys_allocs); printf ("Tests passed OK\n"); return 0; }
int main (int argc, char *argv []) { bool verbose; if (argc == 2 && streq (argv [1], "-v")) verbose = true; else verbose = false; printf ("Running CZMQ selftests...\n"); // These are ordered from lowest level to highest level zrex_test (verbose); zsys_test (verbose); zinterface_test (verbose); zchunk_test (verbose); zconfig_test (verbose); zclock_test (verbose); zdir_patch_test (verbose); zdir_test (verbose); zdigest_test (verbose); zframe_test (verbose); zstr_test (verbose); zmsg_test (verbose); zfile_test (verbose); zhash_test (verbose); zlist_test (verbose); zuuid_test (verbose); zsock_test (verbose); zsock_option_test (verbose); zactor_test (verbose); zpoller_test (verbose); zloop_test (verbose); zproxy_test (verbose); zmonitor_test (verbose); zbeacon_test (verbose); zgossip_test (verbose); zcert_test (verbose); zcertstore_test (verbose); zauth_test (verbose); // Deprecated V2 classes zauth_v2_test (verbose); zctx_test (verbose); #if (ZMQ_VERSION_MAJOR == 4) zmonitor_v2_test (verbose); #endif zmutex_test (verbose); zsocket_test (verbose); zsockopt_test (verbose); zthread_test (verbose); printf ("Tests passed OK\n"); return 0; }
/// // Self test of this class void QmlZconfigAttached::test (bool verbose) { zconfig_test (verbose); };
JNIEXPORT void JNICALL Java_zconfig__1_1test (JNIEnv *env, jclass c, jboolean verbose) { zconfig_test ((bool) verbose); }