X-Git-Url: http://info.iut-bm.univ-fcomte.fr/pub/gitweb/simgrid.git/blobdiff_plain/ad839760bcdc43bce0f7143e26bdae76cfb8da24..b2a2674e284ac6996b531ff7c8d45a065751b2fb:/src/simgrid_units_main.c diff --git a/src/simgrid_units_main.c b/src/simgrid_units_main.c index c456a0c5a2..60d81b8b8f 100644 --- a/src/simgrid_units_main.c +++ b/src/simgrid_units_main.c @@ -20,10 +20,24 @@ extern xbt_test_unit_t _xbt_current_unit; void test_cleanup(void); /* SGU: END FILE */ + /* SGU: BEGIN FILE xbt/xbt_str.c */ + void test_split_quoted(void); + void test_split_str(void); + /* SGU: END FILE */ + + /* SGU: BEGIN FILE xbt/xbt_strbuff.c */ + void test_strbuff_substitute(void); + /* SGU: END FILE */ + + /* SGU: BEGIN FILE xbt/xbt_sha.c */ + void test_crypto_sha(void); + /* SGU: END FILE */ + /* SGU: BEGIN FILE xbt/dynar.c */ void test_dynar_int(void); void test_dynar_double(void); void test_dynar_string(void); + void test_dynar_sync_int(void); /* SGU: END FILE */ /* SGU: BEGIN FILE xbt/dict.c */ @@ -51,7 +65,6 @@ extern xbt_test_unit_t _xbt_current_unit; void test_config_use(void); /* SGU: END FILE */ -/* SGU: END PROTOTYPES */ /*******************************/ /* GENERATED FILE, DO NOT EDIT */ @@ -62,6 +75,8 @@ int main(int argc, char *argv[]) { char selection[1024]; int i; + int res; + /* SGU: BEGIN SUITES DECLARATION */ /* SGU: BEGIN FILE xbt/cunit.c */ suite = xbt_test_suite_by_name("cunit","Testsuite mechanism autotest"); @@ -76,11 +91,28 @@ int main(int argc, char *argv[]) { xbt_test_suite_push(suite, "cleanup", test_cleanup, "cleanup handling"); /* SGU: END FILE */ + /* SGU: BEGIN FILE xbt/xbt_str.c */ + suite = xbt_test_suite_by_name("xbt_str","String Handling"); + xbt_test_suite_push(suite, "xbt_str_split_quoted", test_split_quoted, "test the function xbt_str_split_quoted"); + xbt_test_suite_push(suite, "xbt_str_split_str", test_split_str, "test the function xbt_str_split_str"); + /* SGU: END FILE */ + + /* SGU: BEGIN FILE xbt/xbt_strbuff.c */ + suite = xbt_test_suite_by_name("xbt_strbuff","String Buffers"); + xbt_test_suite_push(suite, "xbt_strbuff_substitute", test_strbuff_substitute, "test the function xbt_strbuff_substitute"); + /* SGU: END FILE */ + + /* SGU: BEGIN FILE xbt/xbt_sha.c */ + suite = xbt_test_suite_by_name("hash","Various hash functions"); + xbt_test_suite_push(suite, "sha", test_crypto_sha, "Test of the sha algorithm"); + /* SGU: END FILE */ + /* SGU: BEGIN FILE xbt/dynar.c */ suite = xbt_test_suite_by_name("dynar","Dynar data container"); - xbt_test_suite_push(suite, "int", test_dynar_int, "Dyars of integers"); - xbt_test_suite_push(suite, "double", test_dynar_double, "Dyars of doubles"); + xbt_test_suite_push(suite, "int", test_dynar_int, "Dynars of integers"); + xbt_test_suite_push(suite, "double", test_dynar_double, "Dynars of doubles"); xbt_test_suite_push(suite, "string", test_dynar_string, "Dyars of strings"); + xbt_test_suite_push(suite, "synchronized int", test_dynar_sync_int, "Synchronized dynars of integers"); /* SGU: END FILE */ /* SGU: BEGIN FILE xbt/dict.c */ @@ -114,6 +146,8 @@ int main(int argc, char *argv[]) { /* SGU: END SUITES DECLARATION */ + xbt_init(&argc,argv); + /* Search for the tests to do */ selection[0]='\0'; for (i=1;i