diff options
author | Patrick McDermott <patrick.mcdermott@libiquity.com> | 2019-01-05 11:01:42 (EST) |
---|---|---|
committer | Patrick McDermott <patrick.mcdermott@libiquity.com> | 2019-01-05 11:03:00 (EST) |
commit | d44d31a8f786d39b59827048de6cbb9143e49550 (patch) | |
tree | f6f01581572fc73786779b0d9e0afcd5366f4d1d /tests | |
parent | 837d2a8ad902052d20e2729e7e505d95a593f3b8 (diff) |
ob_parse_control(): Add a user_data operand
Diffstat (limited to 'tests')
-rwxr-xr-x | tests/ob_parse_control.sh | 11 |
1 files changed, 7 insertions, 4 deletions
diff --git a/tests/ob_parse_control.sh b/tests/ob_parse_control.sh index 26222f2..c9e4289 100755 --- a/tests/ob_parse_control.sh +++ b/tests/ob_parse_control.sh @@ -56,7 +56,8 @@ field_1() { local name="${1}" local value="${2}" - shift 2 + local user_data="${3}" + shift 3 is 'maintainer field name' "${name}" 'Maintainer' is 'maintainer field value' "${value}" \ @@ -69,7 +70,8 @@ field_2() { local name="${1}" local value="${2}" - shift 2 + local user_data="${3}" + shift 3 is 'build-depends field name' "${name}" 'Build-Depends' is 'build-depends field value' "${value}" \ @@ -82,7 +84,8 @@ field_3() { local name="${1}" local value="${2}" - shift 2 + local user_data="${3}" + shift 3 is 'homepage field name' "${name}" 'Homepage' is 'homepage field value' "${value}" 'http://www.example.com/' @@ -101,7 +104,7 @@ field_cb() "field_${field}" "${@}" } -ob_parse_control - field_cb 'Maintainer' 'Build-Depends Homepage' <<-EOF +ob_parse_control - field_cb '' 'Maintainer' 'Build-Depends Homepage' <<-EOF ${CONTROL} EOF |