Let's try scripts tests and source roles

This commit is contained in:
Peter Hutterer 2019-03-08 12:04:55 +10:00
parent 6884ed088b
commit 7102433213
4 changed files with 62 additions and 0 deletions

View File

@ -0,0 +1,5 @@
PURPOSE of libinput-test-suite
Description: Full test suite run for libinput
Author: Peter Hutterer <peter.hutterer@redhat.com>

View 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

View 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

View File

@ -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