]> xenbits.xensource.com Git - xen.git/commit
tests/xenstore: Rework Makefile
authorAndrew Cooper <andrew.cooper3@citrix.com>
Tue, 15 Jun 2021 15:02:29 +0000 (16:02 +0100)
committerAndrew Cooper <andrew.cooper3@citrix.com>
Fri, 9 Jul 2021 15:38:27 +0000 (16:38 +0100)
commit93c9edbef51b31056f93a37a778326c90a83158c
tree6827d5df89094e180a103689336d21c3ddb8090e
parent6a9f5477637a9f2d1d61c0a065eeb01bf84f6484
tests/xenstore: Rework Makefile

In particular, fill in the install/uninstall rules so this test can be
packaged to be automated sensibly.

This causes the code to be noticed by CI, which objects as follows:

  test-xenstore.c: In function 'main':
  test-xenstore.c:486:5: error: ignoring return value of 'asprintf', declared
  with attribute warn_unused_result [-Werror=unused-result]
       asprintf(&path, "%s/%u", TEST_PATH, getpid());
       ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

Address the CI failure by checking the asprintf() return value and exiting.

Rename xs-test to test-xenstore to be consistent with other tests.  Honour
APPEND_FLAGS too.

Signed-off-by: Andrew Cooper <andrew.cooper3@citrix.com>
Reviewed-by: Jan Beulich <jbeulich@suse.com>
.gitignore
tools/tests/xenstore/.gitignore [new file with mode: 0644]
tools/tests/xenstore/Makefile
tools/tests/xenstore/test-xenstore.c [new file with mode: 0644]
tools/tests/xenstore/xs-test.c [deleted file]