From ce1399d1610771c5ecca49586dccd89e00427515 Mon Sep 17 00:00:00 2001 From: Karen Arutyunov Date: Wed, 29 May 2019 19:02:06 +0300 Subject: Inherit url type from butl::url --- tests/manifest/testscript | 49 +++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 49 insertions(+) (limited to 'tests') diff --git a/tests/manifest/testscript b/tests/manifest/testscript index 96f8f31..e7a6af6 100644 --- a/tests/manifest/testscript +++ b/tests/manifest/testscript @@ -138,6 +138,55 @@ stdin:6:19: error: invalid package description file: invalid filesystem path %) EOE + + : url + : + { + : no-scheme + : + $* <>EOE != 0 + : 1 + src-url: libfoo + EOI + stdin:2:10: error: invalid src url: no scheme + EOE + + : rootless + : + $* <>EOE != 0 + : 1 + src-url: pkcs11:libfoo + EOI + stdin:2:10: error: invalid src url: rootless URL + EOE + + : local + : + $* <>EOE != 0 + : 1 + src-url: file:/libfoo/bar + EOI + stdin:2:10: error: invalid src url: local URL + EOE + + : authority-absent + : + $* <>EOE != 0 + : 1 + src-url: http:/libfoo/bar + EOI + stdin:2:10: error: invalid src url: no authority + EOE + + : authority-empty + : + $* <>EOE != 0 + : 1 + src-url: http:///libfoo/bar + EOI + stdin:2:10: error: invalid src url: no authority + EOE + } } : complete -- cgit v1.1