]> git.ipfire.org Git - thirdparty/libvirt.git/commit
test: utils: Add helpers for automatic numbering of test cases
authorPeter Krempa <pkrempa@redhat.com>
Thu, 15 Jan 2015 10:44:58 +0000 (11:44 +0100)
committerPeter Krempa <pkrempa@redhat.com>
Sat, 31 Jan 2015 07:53:21 +0000 (08:53 +0100)
commitd793aeedf2bac8e183d4b83e709f78874a59c8d7
treefe4f0a946a6ce5bb90550eae6e81129bb4e68a52
parentea3891a0fc14ce15cd5b113af2795bcb426582f3
test: utils: Add helpers for automatic numbering of test cases

Adding or reordering test cases is usually a pain due to static test
case names that are then passed to virtTestRun(). To ease the numbering
of test cases, this patch adds two simple helpers that generate the test
names according to the order they are run. The test name can be
configured via the reset function.

This will allow us to freely add test cases in middle of test groups
without the need to re-number the rest of test cases.
tests/testutils.c
tests/testutils.h