diff options
author | DongHun Kwak <dh0128.kwak@samsung.com> | 2021-03-05 10:08:15 +0900 |
---|---|---|
committer | DongHun Kwak <dh0128.kwak@samsung.com> | 2021-03-05 10:08:15 +0900 |
commit | 24d4e855d95e02a5324c2f3d88cfd5cd19830c2c (patch) | |
tree | 371d954e80394a8e72ef95d6ee7d45312c3f87a9 /src/test.c | |
parent | 0b86d50828d05a27de3ff840d6a06407310393c2 (diff) | |
download | wget-24d4e855d95e02a5324c2f3d88cfd5cd19830c2c.tar.gz wget-24d4e855d95e02a5324c2f3d88cfd5cd19830c2c.tar.bz2 wget-24d4e855d95e02a5324c2f3d88cfd5cd19830c2c.zip |
Imported Upstream version 1.17upstream/1.17
Diffstat (limited to 'src/test.c')
-rw-r--r-- | src/test.c | 29 |
1 files changed, 16 insertions, 13 deletions
@@ -1,6 +1,6 @@ /* Unit testing. - Copyright (C) 2005, 2006, 2007, 2008, 2009, 2010, 2011 Free Software - Foundation, Inc. + Copyright (C) 2005, 2006, 2007, 2008, 2009, 2010, 2011, 2015 Free + Software Foundation, Inc. This file is part of GNU Wget. @@ -41,24 +41,20 @@ as that of the covered work. */ #error "TESTING not set!!!" #endif -const char *test_parse_content_disposition(void); -const char *test_subdir_p(void); -const char *test_dir_matches_p(void); -const char *test_commands_sorted(void); -const char *test_cmd_spec_restrict_file_names(void); -const char *test_path_simplify (void); -const char *test_append_uri_pathel(void); -const char *test_are_urls_equal(void); -const char *test_is_robots_txt_url(void); - const char *program_argstring = "TEST"; -int tests_run; +static int tests_run; static const char * all_tests(void) { +#ifdef HAVE_METALINK + mu_run_test (test_find_key_value); + mu_run_test (test_find_key_values); + mu_run_test (test_has_key); +#endif mu_run_test (test_parse_content_disposition); + mu_run_test (test_parse_range_header); mu_run_test (test_subdir_p); mu_run_test (test_dir_matches_p); mu_run_test (test_commands_sorted); @@ -67,6 +63,12 @@ all_tests(void) mu_run_test (test_append_uri_pathel); mu_run_test (test_are_urls_equal); mu_run_test (test_is_robots_txt_url); +#ifdef HAVE_HSTS + mu_run_test (test_hsts_new_entry); + mu_run_test (test_hsts_url_rewrite_superdomain); + mu_run_test (test_hsts_url_rewrite_congruent); + mu_run_test (test_hsts_read_database); +#endif return NULL; } @@ -78,6 +80,7 @@ main (int argc _GL_UNUSED, const char *argv[]) { const char *result; + printf ("[DEBUG] Testing...\n\n"); #ifdef ENABLE_NLS /* Set the current locale. */ setlocale (LC_ALL, ""); |