示例#1
0
文件: proj_1.c 项目: jjrob13/CSE430
int main(int argc, char ** argv){

	GREATEST_MAIN_BEGIN();
	RUN_SUITE(test_suite);
	GREATEST_MAIN_END();
	return 0;
}
int main(int argc, char *argv[])
{
    GREATEST_MAIN_BEGIN();
    RUN_SUITE(log_entry_test);
    RUN_SUITE(log_flash_test);
    GREATEST_MAIN_END();
}
int main( int argc, char **argv )
{
    GREATEST_MAIN_BEGIN();
    RUN_SUITE( list_tests );
    RUN_SUITE( slist_tests );
    GREATEST_MAIN_END();
}
int main(int argc, char **argv) {
    GREATEST_MAIN_BEGIN();      /* command-line arguments, initialization. */
    RUN_SUITE(encoding);
    RUN_SUITE(decoding);
    RUN_SUITE(integration);
    GREATEST_MAIN_END();        /* display results */
}
示例#5
0
文件: test.c 项目: Olegas/runtime
int main(int argc, char **argv)
{
	GREATEST_MAIN_BEGIN();      /* command-line arguments, initialization. */
	RUN_SUITE(tm);
	// RUN_SUITE(runtime);
	GREATEST_MAIN_END();        /* display results */
}
示例#6
0
int main(int argc, char **argv)
{
	GREATEST_MAIN_BEGIN();
	RUN_SUITE(map_suite);

	GREATEST_MAIN_END();
}
int main( int argc, char** argv )
{
    GREATEST_MAIN_BEGIN();
    RUN_SUITE( fpe_ctrl );
    GREATEST_MAIN_END();

	/*
	if( argc > 1 )
	{
		signal( SIGFPE, (void(*)( int ))sigfpe_handler );

		fpe_enable_trap( fp_exception_all );

		if( strcmp( argv[1], "invalid"   ) == 0 ) raise_fpe_invalid();
		if( strcmp( argv[1], "divzero"   ) == 0 ) raise_fpe_div_zero();
		if( strcmp( argv[1], "overflow"  ) == 0 ) raise_fpe_overflow();
		if( strcmp( argv[1], "inexact"   ) == 0 ) raise_fpe_inexact();
		if( strcmp( argv[1], "underflow" ) == 0 ) raise_fpe_underflow();

		printf("fail!!!\n");
		return 1;
	}

	printf("success!\n");*/
	return 0;
}
示例#8
0
int main(int argc, char *argv[])
{
	GREATEST_MAIN_BEGIN();
	RUN_SUITE(parg_getopt_tests);
	RUN_SUITE(parg_getopt_long_tests);
	RUN_SUITE(parg_reorder_tests);
	GREATEST_MAIN_END();
}
示例#9
0
static void *test_thread(void *dummyptr) {
    int argc = test_argc;
    char **argv = test_argv;
    GREATEST_MAIN_BEGIN();
    RUN_SUITE(test_suite_trace);
    GREATEST_MAIN_END();
    return NULL;
}
示例#10
0
int main(int argc, char **argv) {
    GREATEST_MAIN_BEGIN();      /* command-line arguments, initialization. */
    RUN_SUITE(s_input);
    RUN_SUITE(s_draw);
    RUN_SUITE(s_regression);
    RUN_SUITE(s_scale);
    GREATEST_MAIN_END();        /* display results */
}
示例#11
0
int main(int argc, char **argv)
{
    init_socket();

    GREATEST_MAIN_BEGIN();
    RUN_SUITE(suite);
    GREATEST_MAIN_END();
}
示例#12
0
int main(int argc, char **argv) {
    GREATEST_MAIN_BEGIN();

    RUN_SUITE(cstring_to_text_suite);
    RUN_SUITE(char_to_string_suite);

    RUN_SUITE(find_words_suite);

    GREATEST_MAIN_END();
}
int main(int argc, char **argv) {
    GREATEST_MAIN_BEGIN();      /* command-line arguments, initialization. */
    printf("INPUT_BUFFER_SIZE: %u\n", HEATSHRINK_STATIC_INPUT_BUFFER_SIZE);
    printf("WINDOW_BITS: %u\n", HEATSHRINK_STATIC_WINDOW_BITS);
    printf("LOOKAHEAD_BITS: %u\n", HEATSHRINK_STATIC_LOOKAHEAD_BITS);

    printf("sizeof(heatshrink_encoder): %zd\n", sizeof(heatshrink_encoder));
    printf("sizeof(heatshrink_decoder): %zd\n", sizeof(heatshrink_decoder));
    RUN_SUITE(integration);
    GREATEST_MAIN_END();        /* display results */
}
int main(int argc, char **argv) {
    GREATEST_MAIN_BEGIN();      /* command-line arguments, initialization. */
    RUN_SUITE(encoding);
    RUN_SUITE(decoding);
    RUN_SUITE(regression);
    RUN_SUITE(integration);
    #ifdef HEATSHRINK_HAS_THEFT
    RUN_SUITE(properties);
    #endif
    GREATEST_MAIN_END();        /* display results */
}
示例#15
0
int main(int argc, char **argv) {
    /* command-line arguments, initialization. */
    GREATEST_MAIN_BEGIN();        

    //Run suites
    RUN_SUITE(random_module);   
    RUN_SUITE(point_module);  
    RUN_SUITE(neuron_module);


    /* display results */
    GREATEST_MAIN_END(); 
}
示例#16
0
int main(int argc, char **argv) {
    GREATEST_MAIN_BEGIN();      /* command-line arguments, initialization. */

    /* If tests are run outside of a suite, a default suite is used. */
    RUN_TEST(standalone_test);

    RUN_SUITE(suite);
    RUN_SUITE(other_suite);

    /* Standalone tests can appear before or after other suites. */
    RUN_TEST(standalone_test);

    GREATEST_MAIN_END();        /* display results */
}
示例#17
0
int main(int argc, char *argv[])
{
    GREATEST_MAIN_BEGIN();

    // Library bits, in implementation order.
    RUN_SUITE(hex2base64_tests);
    RUN_SUITE(fixed_xor_tests);

    // Cryptopals challenges.
    RUN_SUITE(cryptopals);

    GREATEST_MAIN_END();

    return 0;
}
TEST sink_msg_and_compare(void) {
    static uint8_t in_buf[64];

    test_udata ud;
    memset(&ud, 0, sizeof(ud));

    struct bluebottle_cfg cfg = {
        .in_buf = in_buf,
        .in_buf_size = sizeof(in_buf),
        .read_cb = got_msg_cb,
        .read_udata = (void *)&ud,
    };
    bluebottle *s = bluebottle_new(&cfg);
    ASSERT(s);

    bluebottle_read_sink_res sres;
    for (uint8_t byte_i = 0; byte_i < sizeof(msg); byte_i++) {
        sres = bluebottle_read_sink(s, 0); /* start bit */
        ASSERT_EQ(BLUEBOTTLE_READ_SINK_OK, sres);
        uint8_t byte = msg[byte_i];
        for (uint8_t bit_i = 0x01; bit_i; bit_i <<= 1) {
            sres = bluebottle_read_sink(s, byte & bit_i);
        ASSERT_EQ(BLUEBOTTLE_READ_SINK_OK, sres);
        }
        sres = bluebottle_read_sink(s, 1); /* stop bit */
        ASSERT_EQ(BLUEBOTTLE_READ_SINK_OK, sres);
    }
    sres = bluebottle_read_sink(s, 1);     /* extra stop bit -> done */
    ASSERT_EQ(BLUEBOTTLE_READ_SINK_GOT_MESSAGE, sres);
    ASSERT(ud.pass);
    bluebottle_free(s);
    PASS();
}

SUITE(suite) {
    RUN_TEST(bluebottle_new_should_allocate);
    RUN_TEST(enqueue_and_step_through_msg);
    RUN_TEST(sink_msg_and_compare);
}

/* Add all the definitions that need to be in the test runner's main file. */
GREATEST_MAIN_DEFS();

int main(int argc, char **argv) {
    GREATEST_MAIN_BEGIN();      /* command-line arguments, initialization. */
    RUN_SUITE(suite);
    GREATEST_MAIN_END();        /* display results */
}
示例#19
0
int main(int argc, char **argv) {
    GREATEST_MAIN_BEGIN();

    RUN_SUITE(emplace_message_suite);
    RUN_SUITE(emplace_uint_suite);
    RUN_SUITE(emplace_int_suite);
    RUN_SUITE(emplace_float_suite);
    RUN_SUITE(update_message_suite);
    RUN_SUITE(update_uint_suite);
    RUN_SUITE(update_int_suite);
    RUN_SUITE(update_float_suite);
    RUN_SUITE(framing_outgoing_suite);
    RUN_SUITE(framing_incoming_suite);
    RUN_SUITE(pub_sub_string_suite);
    RUN_SUITE(pub_sub_uint_suite);
    RUN_SUITE(pub_sub_int_suite);
    RUN_SUITE(pub_sub_float_suite);

    GREATEST_MAIN_END();
}
int main(int argc, char **argv) {
    GREATEST_MAIN_BEGIN();
    RUN_SUITE(storage_manager_threadtest_suite);
    GREATEST_MAIN_END();
}
int main(int argc, char **argv) {
    GREATEST_MAIN_BEGIN();
    RUN_SUITE(segment_list_suite);
    GREATEST_MAIN_END();
}
示例#22
0
int main(int argc, char * argv[]) {
  GREATEST_MAIN_BEGIN();
  RUN_SUITE(bufferer);
  GREATEST_MAIN_END();
}
示例#23
0
文件: main.c 项目: dasmithii/GCiaB
int main(int argc, char *argv[]) {
	GREATEST_MAIN_BEGIN();   
	RUN_SUITE(GCiaB_suite);
	GREATEST_MAIN_END();
	return 0;
}