]> xenbits.xensource.com Git - libvirt.git/commit
rpcgen: tests: Allow running test_demo from anywhere
authorMichal Privoznik <mprivozn@redhat.com>
Wed, 29 Nov 2023 11:22:21 +0000 (12:22 +0100)
committerMichal Privoznik <mprivozn@redhat.com>
Wed, 29 Nov 2023 13:34:11 +0000 (14:34 +0100)
commitdec02f101e2a0d46a8c75946ac3467f42108d006
treeccae4fc2e14f5409912a2ac1535d2ec3bfdbbdd4
parent944fe54b6e2ec4b92dbd96ba427e4070f2e05086
rpcgen: tests: Allow running test_demo from anywhere

The test_demo program compares whether XDR encoded data match the
expected output as read from a file. But the file path is not
absolute and thus relative to CWD which means the program can run
only from one specific directory.

Do what we do in the rest of our test suite: define 'abs_srcdir'
macro and prefix the path with it.

Signed-off-by: Michal Privoznik <mprivozn@redhat.com>
Reviewed-by: Jiri Denemark <jdenemar@redhat.com>
scripts/rpcgen/tests/meson.build
scripts/rpcgen/tests/test_demo.c