From c24da0284e4cccf9c0c4e5c37f84a2a03c140cdc Mon Sep 17 00:00:00 2001 From: Werner Almesberger Date: Wed, 30 May 2012 12:27:05 -0300 Subject: [PATCH] test/hierfld: field definitions in hierarchy --- b2/test/hierfld | 82 +++++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 82 insertions(+) create mode 100755 b2/test/hierfld diff --git a/b2/test/hierfld b/b2/test/hierfld new file mode 100755 index 0000000..cd0c672 --- /dev/null +++ b/b2/test/hierfld @@ -0,0 +1,82 @@ +#!/bin/bash +. ./Common + +# +# Note: the hierarchy dump differs in some details from the input format. +# Its main purpose is to aid with debugging, not to produce a syntactically +# valid representation of the currently loaded hierarchy. +# + +############################################################################### + +tst "hierarchy: name field" < = A }; +EOF + +expect < } +EOF + +#------------------------------------------------------------------------------ + +tst_fail "hierarchy: name set field (incorrect name)" < = A }; +EOF + +expect <