summaryrefslogtreecommitdiffstats
path: root/src/tests/uri_test.c
diff options
context:
space:
mode:
authorSimon Rettberg2024-04-12 14:52:06 +0200
committerSimon Rettberg2024-04-12 14:52:06 +0200
commit2ae76865d3d109712f9ee488cbc19bd107bbc9ab (patch)
tree36e7310eb089cf7fd3496e5c32c70981e447f235 /src/tests/uri_test.c
parentMerge branch 'aqc1xx' into openslx (diff)
parent[netdevice] Add "linktype" setting (diff)
downloadipxe-openslx.tar.gz
ipxe-openslx.tar.xz
ipxe-openslx.zip
Merge branch 'master' into openslxopenslx
Diffstat (limited to 'src/tests/uri_test.c')
-rw-r--r--src/tests/uri_test.c16
1 files changed, 16 insertions, 0 deletions
diff --git a/src/tests/uri_test.c b/src/tests/uri_test.c
index 9d2f6dba..7ce87a20 100644
--- a/src/tests/uri_test.c
+++ b/src/tests/uri_test.c
@@ -754,6 +754,20 @@ static struct uri_resolve_test uri_fragment = {
"http://192.168.0.254/test#bar",
};
+/** Empty relative URI resolution test */
+static struct uri_resolve_test uri_self = {
+ "http://192.168.0.1/path/to/me",
+ "",
+ "http://192.168.0.1/path/to/me",
+};
+
+/** Current directory URI resolution test */
+static struct uri_resolve_test uri_cwd = {
+ "http://192.168.0.1/path/to/me",
+ ".",
+ "http://192.168.0.1/path/to/",
+};
+
/** PXE URI with absolute URI */
static struct uri_pxe_test uri_pxe_absolute = {
{
@@ -996,6 +1010,8 @@ static void uri_test_exec ( void ) {
uri_resolve_ok ( &uri_absolute_uri_path );
uri_resolve_ok ( &uri_query );
uri_resolve_ok ( &uri_fragment );
+ uri_resolve_ok ( &uri_self );
+ uri_resolve_ok ( &uri_cwd );
/* PXE URI construction tests */
uri_pxe_ok ( &uri_pxe_absolute );