aboutsummaryrefslogtreecommitdiff
path: root/tests/manifest/testscript
diff options
context:
space:
mode:
authorKaren Arutyunov <karen@codesynthesis.com>2018-03-08 15:24:30 +0300
committerKaren Arutyunov <karen@codesynthesis.com>2018-03-09 14:52:31 +0300
commit6018f3c1eadd5c60902aa5cf4f926ff17cbaf8ab (patch)
tree129e1c23e97bc7f86858a85cbc431449f799b5d6 /tests/manifest/testscript
parentb2bd3dc5f992b1898061e6836ea2b8b04ec243f1 (diff)
Check parsed package manifests for duplicates
Diffstat (limited to 'tests/manifest/testscript')
-rw-r--r--tests/manifest/testscript23
1 files changed, 17 insertions, 6 deletions
diff --git a/tests/manifest/testscript b/tests/manifest/testscript
index b72f492..59f4db0 100644
--- a/tests/manifest/testscript
+++ b/tests/manifest/testscript
@@ -76,12 +76,18 @@
EOF
}
- : git
+ : dir
:
{
- : manifest
+ : empty
+ :
+ : Roundtrip an empty dir package manifest list.
+ :
+ $* -gp <"" >:""
+
+ : non-empty
:
- : Roundtrip the git package manifest list.
+ : Roundtrip the dir package manifest list.
:
$* -gp <<EOF >>EOF
: 1
@@ -90,11 +96,16 @@
location: mhello/
EOF
- : empty
+ : duplicate
:
- : Roundtrip an empty git package manifest list.
+ $* -gp <<EOI 2>'stdin:5:1: error: duplicate package manifest' != 0
+ : 1
+ location: hello/
:
- $* -gp <"" >:""
+ location: hello/
+ :
+ location: mhello/
+ EOI
}
}