X-Git-Url: http://info.iut-bm.univ-fcomte.fr/pub/gitweb/simgrid.git/blobdiff_plain/8b175a4bac1e0a5d09b4489c2cd6ba01adad4905..32e043cb47a2c23cd2b419c037d56f8139d51765:/src/simgrid_units_main.c diff --git a/src/simgrid_units_main.c b/src/simgrid_units_main.c index 0a9271fc84..909fdce9a3 100644 --- a/src/simgrid_units_main.c +++ b/src/simgrid_units_main.c @@ -48,6 +48,11 @@ extern xbt_test_unit_t _xbt_current_unit; /* 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_sha.c */ + void test_crypto_sha(void); /* SGU: END FILE */ /* SGU: BEGIN FILE xbt/config.c */ @@ -56,7 +61,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 */ @@ -67,6 +71,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"); @@ -114,6 +120,12 @@ int main(int argc, char *argv[]) { /* 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_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/config.c */ @@ -170,7 +182,9 @@ int main(int argc, char *argv[]) { } /* Got all my tests to do */ - return xbt_test_run(selection); + res = xbt_test_run(selection); + xbt_exit(); + return res; } /*******************************/ /* GENERATED FILE, DO NOT EDIT */