From 6018f3c1eadd5c60902aa5cf4f926ff17cbaf8ab Mon Sep 17 00:00:00 2001 From: Karen Arutyunov Date: Thu, 8 Mar 2018 15:24:30 +0300 Subject: Check parsed package manifests for duplicates --- tests/manifest/testscript | 23 +++++++++++++++++------ 1 file changed, 17 insertions(+), 6 deletions(-) (limited to 'tests/manifest/testscript') 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 : 1 @@ -90,11 +96,16 @@ location: mhello/ EOF - : empty + : duplicate : - : Roundtrip an empty git package manifest list. + $* -gp <'stdin:5:1: error: duplicate package manifest' != 0 + : 1 + location: hello/ : - $* -gp <"" >:"" + location: hello/ + : + location: mhello/ + EOI } } -- cgit v1.1