m4_define([test_parse], [
AT_DATA([tv],
[;;; -*-conf-*-
-@<:@$1@:>@
+@<:@copy-$1@:>@
$1 = $2
@show = t
])
check_template([BUILDDIR/t/tvec.t -fh tv], [0],
[left_pad([matched $1], [17]) = $3
-$1: ok
+copy-$1: ok
PASSED all 1 test in 1 group
])])
m4_define([test_parserr], [
AT_DATA([tv],
[;;; -*-conf-*-
-@<:@$1@:>@
+@<:@copy-$1@:>@
$1 = $2
])
check_template([BUILDDIR/t/tvec.t -fh tv], [2],
[tv:$3: $4
-tv:={N:\d+}: required register `$1' not set in test `$1'
-$1: skipped: no tests to run
+tv:={N:\d+}: required register `$1' not set in test `copy-$1'
+copy-$1: skipped: no tests to run
PASSED 0 tests in 0 groups (1 skipped)
ERRORS found in input; tests may not have run correctly
],
[tvec.t: tv:$3: $4
-tvec.t: tv:={N:\d+}: required register `$1' not set in test `$1'
+tvec.t: tv:={N:\d+}: required register `$1' not set in test `copy-$1'
])])
###--------------------------------------------------------------------------
AT_SETUP([tvec serialize])
AT_DATA([tv],
-[@<:@types@:>@
+[@<:@multi@:>@
int = -2
uint = 7