X-Git-Url: http://info.iut-bm.univ-fcomte.fr/pub/gitweb/simgrid.git/blobdiff_plain/bea6786798593b78e0d62a2308eacad3284d4537..ea6c1e33aa83826778637849d951a9eccabf3d67:/src/simgrid_units_main.c diff --git a/src/simgrid_units_main.c b/src/simgrid_units_main.c index b0bd7c4109..909fdce9a3 100644 --- a/src/simgrid_units_main.c +++ b/src/simgrid_units_main.c @@ -51,6 +51,10 @@ extern xbt_test_unit_t _xbt_current_unit; 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 */ void test_config_memuse(void); void test_config_validation(void); @@ -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"); @@ -117,6 +123,11 @@ int main(int argc, char *argv[]) { 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 */ suite = xbt_test_suite_by_name("config","Configuration support"); xbt_test_suite_push(suite, "memuse", test_config_memuse, "Alloc and free a config set"); @@ -171,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 */