Mercurial > hg > CbC > CbC_gcc
diff gcc/selftest-run-tests.c @ 132:d34655255c78
update gcc-8.2
author | mir3636 |
---|---|
date | Thu, 25 Oct 2018 10:21:07 +0900 |
parents | 84e7813d76e9 |
children | 1830386684a0 |
line wrap: on
line diff
--- a/gcc/selftest-run-tests.c Thu Oct 25 08:08:40 2018 +0900 +++ b/gcc/selftest-run-tests.c Thu Oct 25 10:21:07 2018 +0900 @@ -1,5 +1,5 @@ /* Implementation of selftests. - Copyright (C) 2015-2017 Free Software Foundation, Inc. + Copyright (C) 2015-2018 Free Software Foundation, Inc. This file is part of GCC. @@ -25,6 +25,8 @@ #include "target.h" #include "langhooks.h" #include "options.h" +#include "stringpool.h" +#include "attribs.h" /* This function needed to be split out from selftest.c as it references tests from the whole source tree, and so is within @@ -46,7 +48,7 @@ option-handling. */ path_to_selftest_files = flag_self_test; - long start_time = get_run_time (); + test_runner r ("-fself-test"); /* Run all the tests, in hand-coded order of (approximate) dependencies: run the tests for lowest-level code first. */ @@ -57,6 +59,7 @@ /* Low-level data structures. */ bitmap_c_tests (); sbitmap_c_tests (); + dumpfile_c_tests (); et_forest_c_tests (); hash_map_tests_c_tests (); hash_set_tests_c_tests (); @@ -68,9 +71,14 @@ fibonacci_heap_c_tests (); typed_splay_tree_c_tests (); unique_ptr_tests_cc_tests (); + opt_proposer_c_tests (); + json_cc_tests (); + optinfo_emit_json_cc_tests (); + opt_problem_cc_tests (); /* Mid-level data structures. */ input_c_tests (); + vec_perm_indices_c_tests (); tree_c_tests (); gimple_c_tests (); rtl_tests_c_tests (); @@ -85,6 +93,7 @@ spellcheck_c_tests (); spellcheck_tree_c_tests (); tree_cfg_c_tests (); + attribute_c_tests (); /* This one relies on most of the above. */ function_tests_c_tests (); @@ -95,6 +104,7 @@ store_merging_c_tests (); predict_c_tests (); + simplify_rtx_c_tests (); /* Run any lang-specific selftests. */ lang_hooks.run_lang_selftests (); @@ -105,14 +115,7 @@ failed to be finalized can be detected by valgrind. */ forcibly_ggc_collect (); - /* Finished running tests. */ - long finish_time = get_run_time (); - long elapsed_time = finish_time - start_time; - - fprintf (stderr, - "-fself-test: %i pass(es) in %ld.%06ld seconds\n", - num_passes, - elapsed_time / 1000000, elapsed_time % 1000000); + /* Finished running tests; the test_runner dtor will print a summary. */ } #endif /* #if CHECKING_P */