|
@@ -499,6 +499,18 @@ static struct uri_test uri_mailto = {
|
499
|
499
|
{ .scheme = "mailto", .opaque = "ipxe-devel@lists.ipxe.org" }
|
500
|
500
|
};
|
501
|
501
|
|
|
502
|
+/** Basic path-only URI */
|
|
503
|
+static struct uri_test uri_path = {
|
|
504
|
+ "/var/lib/tftpboot/pxelinux.0",
|
|
505
|
+ { .path = "/var/lib/tftpboot/pxelinux.0" },
|
|
506
|
+};
|
|
507
|
+
|
|
508
|
+/** Path-only URI with escaped characters */
|
|
509
|
+static struct uri_test uri_path_escaped = {
|
|
510
|
+ "/hello%20world%3F",
|
|
511
|
+ { .path = "/hello world?" },
|
|
512
|
+};
|
|
513
|
+
|
502
|
514
|
/** HTTP URI with all the trimmings */
|
503
|
515
|
static struct uri_test uri_http_all = {
|
504
|
516
|
"http://anon:password@example.com:3001/~foo/cgi-bin/foo.pl?a=b&c=d#bit",
|
|
@@ -877,6 +889,8 @@ static void uri_test_exec ( void ) {
|
877
|
889
|
uri_parse_format_dup_ok ( &uri_empty );
|
878
|
890
|
uri_parse_format_dup_ok ( &uri_boot_ipxe_org );
|
879
|
891
|
uri_parse_format_dup_ok ( &uri_mailto );
|
|
892
|
+ uri_parse_format_dup_ok ( &uri_path );
|
|
893
|
+ uri_parse_format_dup_ok ( &uri_path_escaped );
|
880
|
894
|
uri_parse_format_dup_ok ( &uri_http_all );
|
881
|
895
|
uri_parse_format_dup_ok ( &uri_http_escaped );
|
882
|
896
|
uri_parse_ok ( &uri_http_escaped_improper ); /* Parse only */
|