test FEATURE perf test contains leaflist
diff --git a/tests/perf/perf.c b/tests/perf/perf.c
index 893a220..e15a2c6 100644
--- a/tests/perf/perf.c
+++ b/tests/perf/perf.c
@@ -116,7 +116,7 @@
{
LY_ERR ret;
uint32_t i;
- char k1_val[32], k2_val[32], l_val[32];
+ char k1_val[32], k2_val[32], l_val[32], lfl_val[32];
struct lyd_node *list;
if ((ret = lyd_new_inner(NULL, mod, "cont", 0, data))) {
@@ -136,6 +136,14 @@
}
}
+ /* Last list contains a "lfl" leaf-list with @p count terms. */
+ for (i = 0; i < count; ++i) {
+ sprintf(lfl_val, "%" PRIu32, i + offset);
+ if ((ret = lyd_new_term(list, NULL, "lfl", lfl_val, 0, NULL))) {
+ return ret;
+ }
+ }
+
return LY_SUCCESS;
}
diff --git a/tests/perf/perf.yang b/tests/perf/perf.yang
index 9614945..0560270 100644
--- a/tests/perf/perf.yang
+++ b/tests/perf/perf.yang
@@ -18,6 +18,10 @@
leaf l {
type string;
}
+
+ leaf-list lfl {
+ type uint32;
+ }
}
}
}