Let's try scripts tests and source roles
This commit is contained in:
parent
6884ed088b
commit
7102433213
5
tests/libinput-test-suite/PURPOSE
Normal file
5
tests/libinput-test-suite/PURPOSE
Normal file
@ -0,0 +1,5 @@
|
||||
PURPOSE of libinput-test-suite
|
||||
Description: Full test suite run for libinput
|
||||
Author: Peter Hutterer <peter.hutterer@redhat.com>
|
||||
|
||||
|
14
tests/libinput-test-suite/runtest.sh
Normal file
14
tests/libinput-test-suite/runtest.sh
Normal file
@ -0,0 +1,14 @@
|
||||
#!/bin/bash
|
||||
|
||||
export # let's see what's available
|
||||
ls /dev/input
|
||||
ls /dev/
|
||||
|
||||
ls # let's debug where the actual tarball sits in case the next one fails
|
||||
# Can we use the spec file version number here??
|
||||
pushd libinput-*
|
||||
|
||||
meson builddir -Ddocumentation=false -Dtests=true -Ddebug-gui=false
|
||||
ninja -C builddir test
|
||||
|
||||
popd > /dev/null
|
16
tests/libinput-tool-scripttest/libinput-tool-test.sh
Normal file
16
tests/libinput-tool-scripttest/libinput-tool-test.sh
Normal file
@ -0,0 +1,16 @@
|
||||
#!/bin/bash
|
||||
|
||||
# check libinput is in the path, --help and --version need to work
|
||||
libinput --help
|
||||
libinput --version
|
||||
|
||||
# this should fail if the quirks failed to install
|
||||
libinput quirks validate
|
||||
|
||||
# check the various tools exist
|
||||
libinput record --help
|
||||
libinput measure --help
|
||||
libinput measure fuzz --help
|
||||
libinput measure touch-size --help
|
||||
libinput measure touchpad-pressure --help
|
||||
libinput measure touchpad-tap --help
|
@ -14,3 +14,30 @@
|
||||
- classic
|
||||
tests:
|
||||
- libinput-tool
|
||||
|
||||
- hosts: localhost
|
||||
roles:
|
||||
- role: standard-test-scripts
|
||||
tags:
|
||||
- classic
|
||||
tests:
|
||||
- libinput-tool-scripttest/libinput-tool-test.sh
|
||||
|
||||
- hosts: localhost
|
||||
roles:
|
||||
- role: standard-test-source
|
||||
tags:
|
||||
- always
|
||||
- role: standard-test-basic
|
||||
tags:
|
||||
- classic
|
||||
required_packages:
|
||||
- meson
|
||||
- gcc
|
||||
- mtdev-devel
|
||||
- libevdev-devel
|
||||
- libwacom-devel
|
||||
- check-devel
|
||||
- systemd-devel
|
||||
tests:
|
||||
- libinput-test-suite
|
||||
|
Loading…
Reference in New Issue
Block a user