This partially revert
0454cf05d38d289474ca65c1917d414b2958f6b5.
The executable actually does not work with itself, but needs to be
combined with test-udev.py. But, even so, the executable is for testing.
In the next commit, test and normal executables are declared in the same
way, and naming of the executable becomes essential to classify them.
Let's rename the executable and prefix with 'test-'.
endif
if want_tests != 'false'
- exe = TESTS.get('udev-rule-runner')
+ exe = TESTS.get('test-udev-rule-runner')
test('test-udev',
test_udev_py,
args : ['-v'],
'sources' : files('test-time-util.c'),
'timeout' : 120,
},
- {
- 'sources' : files('udev-rule-runner.c'),
- 'link_with' : [
- libshared,
- libudevd_core,
- ],
- 'dependencies' : [
- libacl,
- libblkid,
- libkmod,
- librt,
- libselinux,
- threads,
- ],
- 'includes' : udev_includes,
- 'type' : 'manual',
- },
{
'sources' : files('test-utmp.c'),
'condition' : 'ENABLE_UTMP',
'sources' : files('test-udev-node.c'),
'base' : test_libudev_base,
},
+ {
+ 'sources' : files('test-udev-rule-runner.c'),
+ 'link_with' : [
+ libshared,
+ libudevd_core,
+ ],
+ 'dependencies' : [
+ libacl,
+ libblkid,
+ libkmod,
+ librt,
+ libselinux,
+ threads,
+ ],
+ 'includes' : udev_includes,
+ 'type' : 'manual',
+ },
{
'sources' : files('test-udev-rules.c'),
'base' : test_libudev_base,
try:
UDEV_BIN = Path(os.environ['UDEV_RULE_RUNNER'])
except KeyError:
- UDEV_BIN = Path(__file__).parent / 'manual/udev-rule-runner'
+ UDEV_BIN = Path(__file__).parent / 'manual/test-udev-rule-runner'
UDEV_BIN = UDEV_BIN.absolute()
# Those will be set by the udev_setup() fixture