X-Git-Url: http://sjero.net/git/?p=wget;a=blobdiff_plain;f=src%2Ftest.h;h=6c5976e5670e041cddf53087ebaf7699c98fb4b5;hp=496954e20697aa2a425014aebc8741b8cc9e933c;hb=38a7829dcb4eb5dba28dbf0f05c6a80fea9217f8;hpb=caae3b70f46bd519857b595f7f06ea0179551336 diff --git a/src/test.h b/src/test.h index 496954e2..6c5976e5 100644 --- a/src/test.h +++ b/src/test.h @@ -1,5 +1,6 @@ /* Unit testing declarations. - Copyright (C) 2005, 2006, 2007, 2008 Free Software Foundation, Inc. + Copyright (C) 2005, 2006, 2007, 2008, 2009, 2010, 2011 Free Software + Foundation, Inc. This file is part of GNU Wget. @@ -34,8 +35,9 @@ as that of the covered work. */ #define mu_assert(message, test) do { if (!(test)) return message; } while (0) #define mu_run_test(test) \ do { \ + const char *message; \ puts("RUNNING TEST " #test "..."); \ - const char *message = test(); \ + message = test(); \ tests_run++; \ if (message) return message; \ puts("PASSED\n"); \ @@ -43,6 +45,16 @@ do { \ extern int tests_run; +const char *test_parse_content_disposition(void); +const char *test_commands_sorted(void); +const char *test_cmd_spec_restrict_file_names(void); +const char *test_is_robots_txt_url(void); +const char *test_path_simplify (void); +const char *test_append_uri_pathel(void); +const char *test_are_urls_equal(void); +const char *test_subdir_p(void); +const char *test_dir_matches_p(void); + #endif /* TEST_H */ /*