selftests: hid: add vmtest.sh
authorBenjamin Tissoires <benjamin.tissoires@redhat.com>
Fri, 13 Jan 2023 09:09:27 +0000 (10:09 +0100)
committerJiri Kosina <jkosina@suse.cz>
Wed, 18 Jan 2023 21:08:38 +0000 (22:08 +0100)
commit507806e9fdf09774d390c5f22893ba4d87ce40d5
tree5fc3ee4fedd927225568e018f2362e300e3e616f
parentbf7660dab30dfb43fcdd3c73b1f526e53f78b76c
selftests: hid: add vmtest.sh

Similar-ish in many points from the script in selftests/bpf, with a few
differences:
- relies on boot2container instead of a plain qemu image (meaning that
  we can take any container in a registry as a base)
- runs in the hid selftest dir, and such uses the test program from there
- the working directory to store the config is in
  tools/selftests/hid/results

Signed-off-by: Benjamin Tissoires <benjamin.tissoires@redhat.com>
Signed-off-by: Jiri Kosina <jkosina@suse.cz>
tools/testing/selftests/hid/.gitignore
tools/testing/selftests/hid/config.common [new file with mode: 0644]
tools/testing/selftests/hid/config.x86_64 [new file with mode: 0644]
tools/testing/selftests/hid/vmtest.sh [new file with mode: 0755]