// :vi sw=4 ts=4 noet:
/*
==================================================================================
- Copyright (c) 2020 Nokia
- Copyright (c) 2020 AT&T Intellectual Property.
+ Copyright (c) 2020-2021 Nokia
+ Copyright (c) 2020-2021 AT&T Intellectual Property.
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
// specific test tools in this directory
#undef NNG_UNDER_TEST
#include "test_support.c" // things like fail_if()
-#include "test_ctx_support.c" // dummy context support
+#include "test_msg_support.c"
#include "test_gen_rt.c"
#include "rmr_si.c"
#include "mbuf_api.c"
+#include "test_ctx_support.c" // dummy context support
+
static void gen_rt( uta_ctx_t* ctx ); // defined in sr_si_static_test, but used by a few others (eliminate order requirement below)
#include "mbuf_api_static_test.c"
#include "sr_si_static_test.c"
#include "lg_buf_static_test.c"
+#include "alarm_static_test.c"
+// do NOT include the receive test static must be stand alone
#include "rmr_si_api_static_test.c"
rmr_set_vlevel( 5 ); // enable all debugging
+ fprintf( stderr, "\n<INFO> starting alarm tests (%d)\n", errors );
+ errors += alarm_test();
+ fprintf( stderr, "<INFO> error count: %d\n", errors );
+
fprintf( stderr, "\n<INFO> starting lg buffer tests (%d)\n", errors );
errors += rmr_lgbuf_test();
fprintf( stderr, "<INFO> error count: %d\n", errors );
fprintf( stderr, "\n<INFO> starting RMr API tests\n" );
errors += rmr_api_test();
-/// ---- all ok above here
-/*
fprintf( stderr, "\n<INFO> run RMr API tests with src name only env var set\n" );
setenv( "RMR_SRC_NAMEONLY", "1", 1 );
errors += rmr_api_test();
fprintf( stderr, "<INFO> error count: %d\n", errors );
-*/
+ test_summary( errors, "rmr_si tests" );
if( errors == 0 ) {
- fprintf( stderr, "<PASS> all tests were OK\n\n" );
+ fprintf( stderr, "<PASS> all rmr si tests were OK\n\n" );
} else {
- fprintf( stderr, "<FAIL> %d modules reported errors\n\n", errors );
+ fprintf( stderr, "<FAIL> %d rmr si test modules reported errors\n\n", errors );
}
return !!errors;