| OLD | NEW |
| 1 /* | 1 /* |
| 2 * runtest.c: C program to run libxml2 regression tests without | 2 * runtest.c: C program to run libxml2 regression tests without |
| 3 * requiring make or Python, and reducing platform dependancies | 3 * requiring make or Python, and reducing platform dependancies |
| 4 * to a strict minimum. | 4 * to a strict minimum. |
| 5 * | 5 * |
| 6 * To compile on Unixes: | 6 * To compile on Unixes: |
| 7 * cc -o runtest `xml2-config --cflags` runtest.c `xml2-config --libs` -lpthread | 7 * cc -o runtest `xml2-config --cflags` runtest.c `xml2-config --libs` -lpthread |
| 8 * | 8 * |
| 9 * See Copyright for the status of this software. | 9 * See Copyright for the status of this software. |
| 10 * | 10 * |
| (...skipping 2710 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2721 | 2721 |
| 2722 static int urip_success = 1; | 2722 static int urip_success = 1; |
| 2723 static int urip_current = 0; | 2723 static int urip_current = 0; |
| 2724 static const char *urip_testURLs[] = { | 2724 static const char *urip_testURLs[] = { |
| 2725 "urip://example.com/a b.html", | 2725 "urip://example.com/a b.html", |
| 2726 "urip://example.com/a%20b.html", | 2726 "urip://example.com/a%20b.html", |
| 2727 "file:///path/to/a b.html", | 2727 "file:///path/to/a b.html", |
| 2728 "file:///path/to/a%20b.html", | 2728 "file:///path/to/a%20b.html", |
| 2729 "/path/to/a b.html", | 2729 "/path/to/a b.html", |
| 2730 "/path/to/a%20b.html", | 2730 "/path/to/a%20b.html", |
| 2731 "urip://example.com/résumé.html", | 2731 "urip://example.com/résumé.html", |
| 2732 "urip://example.com/test?a=1&b=2%263&c=4#foo", | 2732 "urip://example.com/test?a=1&b=2%263&c=4#foo", |
| 2733 NULL | 2733 NULL |
| 2734 }; | 2734 }; |
| 2735 static const char *urip_rcvsURLs[] = { | 2735 static const char *urip_rcvsURLs[] = { |
| 2736 /* it is an URI the strings must be escaped */ | 2736 /* it is an URI the strings must be escaped */ |
| 2737 "urip://example.com/a%20b.html", | 2737 "urip://example.com/a%20b.html", |
| 2738 /* check that % escaping is not broken */ | 2738 /* check that % escaping is not broken */ |
| 2739 "urip://example.com/a%20b.html", | 2739 "urip://example.com/a%20b.html", |
| 2740 /* it's an URI path the strings must be escaped */ | 2740 /* it's an URI path the strings must be escaped */ |
| 2741 "file:///path/to/a%20b.html", | 2741 "file:///path/to/a%20b.html", |
| (...skipping 1720 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 4462 return(ret); | 4462 return(ret); |
| 4463 } | 4463 } |
| 4464 | 4464 |
| 4465 #else /* ! LIBXML_OUTPUT_ENABLED */ | 4465 #else /* ! LIBXML_OUTPUT_ENABLED */ |
| 4466 int | 4466 int |
| 4467 main(int argc ATTRIBUTE_UNUSED, char **argv ATTRIBUTE_UNUSED) { | 4467 main(int argc ATTRIBUTE_UNUSED, char **argv ATTRIBUTE_UNUSED) { |
| 4468 fprintf(stderr, "runtest requires output to be enabled in libxml2\n"); | 4468 fprintf(stderr, "runtest requires output to be enabled in libxml2\n"); |
| 4469 return(1); | 4469 return(1); |
| 4470 } | 4470 } |
| 4471 #endif | 4471 #endif |
| OLD | NEW |