summaryrefslogtreecommitdiff
path: root/test
diff options
context:
space:
mode:
authorMartin Pitt <martin.pitt@ubuntu.com>2015-01-20 21:26:35 +0100
committerMartin Pitt <martin.pitt@ubuntu.com>2015-01-20 21:26:35 +0100
commit72521ab9fd8a47e5b9df4b99b7289531124df5e7 (patch)
tree48acb41933073d9dbdf491f890d9534f14ee7f85 /test
parente8015e6e28fe7d287fc1d5d8bfd82ca65c51326c (diff)
test: eliminate shell wrapper for Python test
Use the parallel test runner's TEST_EXTENSIONS/*_LOG_COMPILER feature (https://www.gnu.org/software/automake/manual/html_node/Parallel-Test-Harness.html) to run *.py tests through $(PYTHON), and only if we have python available/enabled. This eliminates the need of having shell wrappers, thus drop test/rules-test.sh.
Diffstat (limited to 'test')
-rwxr-xr-xtest/rules-test.sh26
1 files changed, 0 insertions, 26 deletions
diff --git a/test/rules-test.sh b/test/rules-test.sh
deleted file mode 100755
index 50b83a3e9..000000000
--- a/test/rules-test.sh
+++ /dev/null
@@ -1,26 +0,0 @@
-#!/bin/sh
-# Call the udev rule syntax checker on all rules that we ship
-#
-# (C) 2010 Canonical Ltd.
-# Author: Martin Pitt <martin.pitt@ubuntu.com>
-#
-# systemd is free software; you can redistribute it and/or modify it
-# under the terms of the GNU Lesser General Public License as published by
-# the Free Software Foundation; either version 2.1 of the License, or
-# (at your option) any later version.
-
-# systemd is distributed in the hope that it will be useful, but
-# WITHOUT ANY WARRANTY; without even the implied warranty of
-# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
-# Lesser General Public License for more details.
-#
-# You should have received a copy of the GNU Lesser General Public License
-# along with systemd; If not, see <http://www.gnu.org/licenses/>.
-
-# skip if we don't have python
-type ${PYTHON:-python} >/dev/null 2>&1 || {
- echo "$0: No $PYTHON installed, skipping udev rule syntax check"
- exit 0
-}
-
-$PYTHON $srcdir/test/rule-syntax-check.py