]> git.ipfire.org Git - thirdparty/libvirt.git/commit
virshtest: Test against output files ("echo" tests)
authorPeter Krempa <pkrempa@redhat.com>
Tue, 12 Mar 2024 13:13:19 +0000 (14:13 +0100)
committerPeter Krempa <pkrempa@redhat.com>
Tue, 2 Apr 2024 12:24:30 +0000 (14:24 +0200)
commitd15b79a35cbf78f3d852b4e8865113b92d24b5ce
treea3857c054767b238d954c32d9f83f232d1a8bb0f
parentc63b5ee98becfa0453d441782d65478aeea94a18
virshtest: Test against output files ("echo" tests)

Managing output files is much simpler especially with
VIR_TEST_REGENERATE_OUTPUT compared to putting the expected string blobs
into the C source file.

For now the output is tested both against the hardcoded strings as well
as the output files.

Signed-off-by: Peter Krempa <pkrempa@redhat.com>
Reviewed-by: Ján Tomko <jtomko@redhat.com>
31 files changed:
tests/virshtest.c
tests/virshtestdata/dash-dash-argument-1.out [new file with mode: 0644]
tests/virshtestdata/dash-dash-argument-2.out [new file with mode: 0644]
tests/virshtestdata/dash-dash-argument-3.out [new file with mode: 0644]
tests/virshtestdata/dash-dash-argument-4.out [new file with mode: 0644]
tests/virshtestdata/dash-dash-argument-5.out [new file with mode: 0644]
tests/virshtestdata/dash-dash-argument-6.out [new file with mode: 0644]
tests/virshtestdata/echo-alias-argv.out [new file with mode: 0644]
tests/virshtestdata/echo-escaping-1.out [new file with mode: 0644]
tests/virshtestdata/echo-escaping-2.out [new file with mode: 0644]
tests/virshtestdata/echo-escaping-3.out [new file with mode: 0644]
tests/virshtestdata/echo-quote-removal-1.out [new file with mode: 0644]
tests/virshtestdata/echo-quote-removal-2.out [new file with mode: 0644]
tests/virshtestdata/echo-quote-removal-3.out [new file with mode: 0644]
tests/virshtestdata/echo-quote-removal-4.out [new file with mode: 0644]
tests/virshtestdata/echo-quote-removal-5.out [new file with mode: 0644]
tests/virshtestdata/echo-quote-removal-6.out [new file with mode: 0644]
tests/virshtestdata/echo-quote-removal-7.out [new file with mode: 0644]
tests/virshtestdata/echo-quote-removal-8.out [new file with mode: 0644]
tests/virshtestdata/multiple-commands-1.out [new file with mode: 0644]
tests/virshtestdata/multiple-commands-10.out [new file with mode: 0644]
tests/virshtestdata/multiple-commands-11.out [new file with mode: 0644]
tests/virshtestdata/multiple-commands-12.out [new file with mode: 0644]
tests/virshtestdata/multiple-commands-2.out [new file with mode: 0644]
tests/virshtestdata/multiple-commands-3.out [new file with mode: 0644]
tests/virshtestdata/multiple-commands-4.out [new file with mode: 0644]
tests/virshtestdata/multiple-commands-5.out [new file with mode: 0644]
tests/virshtestdata/multiple-commands-6.out [new file with mode: 0644]
tests/virshtestdata/multiple-commands-7.out [new file with mode: 0644]
tests/virshtestdata/multiple-commands-8.out [new file with mode: 0644]
tests/virshtestdata/multiple-commands-9.out [new file with mode: 0644]