aboutsummaryrefslogtreecommitdiff
path: root/tests/manifest
diff options
context:
space:
mode:
authorKaren Arutyunov <karen@codesynthesis.com>2019-05-29 19:02:06 +0300
committerKaren Arutyunov <karen@codesynthesis.com>2019-05-29 19:02:06 +0300
commitce1399d1610771c5ecca49586dccd89e00427515 (patch)
tree264f2eb0afe5f003283ea77068051b74a1a2d620 /tests/manifest
parentd40d439ed96e441fdf74ed9c8073e8941100254e (diff)
Inherit url type from butl::url
Diffstat (limited to 'tests/manifest')
-rw-r--r--tests/manifest/testscript49
1 files changed, 49 insertions, 0 deletions
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
+ :
+ $* <<EOI 2>>EOE != 0
+ : 1
+ src-url: libfoo
+ EOI
+ stdin:2:10: error: invalid src url: no scheme
+ EOE
+
+ : rootless
+ :
+ $* <<EOI 2>>EOE != 0
+ : 1
+ src-url: pkcs11:libfoo
+ EOI
+ stdin:2:10: error: invalid src url: rootless URL
+ EOE
+
+ : local
+ :
+ $* <<EOI 2>>EOE != 0
+ : 1
+ src-url: file:/libfoo/bar
+ EOI
+ stdin:2:10: error: invalid src url: local URL
+ EOE
+
+ : authority-absent
+ :
+ $* <<EOI 2>>EOE != 0
+ : 1
+ src-url: http:/libfoo/bar
+ EOI
+ stdin:2:10: error: invalid src url: no authority
+ EOE
+
+ : authority-empty
+ :
+ $* <<EOI 2>>EOE != 0
+ : 1
+ src-url: http:///libfoo/bar
+ EOI
+ stdin:2:10: error: invalid src url: no authority
+ EOE
+ }
}
: complete