libwacom: run tests

This commit is contained in:
Robert Schütz 2023-02-21 17:13:30 -08:00 committed by Robert Schütz
parent f254f935b0
commit b9a585ebd3

View file

@ -8,6 +8,7 @@
, udev
, libgudev
, python3
, valgrind
}:
stdenv.mkDerivation rec {
@ -23,6 +24,10 @@ stdenv.mkDerivation rec {
sha256 = "sha256-9zqW6zPrFcxv/yAAtFgdVavKVMXeDBoMP3E/XriUcT0=";
};
postPatch = ''
patchShebangs test/check-files-in-git.sh
'';
nativeBuildInputs = [
pkg-config
meson
@ -36,10 +41,20 @@ stdenv.mkDerivation rec {
libgudev
];
doCheck = stdenv.hostPlatform == stdenv.buildPlatform;
mesonFlags = [
"-Dtests=disabled"
"-Dtests=${if doCheck then "enabled" else "disabled"}"
];
nativeCheckInputs = [
valgrind
] ++ (with python3.pkgs; [
libevdev
pytest
pyudev
]);
meta = with lib; {
platforms = platforms.linux;
homepage = "https://linuxwacom.github.io/";