@@ -13,7 +13,7 @@ recursive-include gpiod/ext *.c
recursive-include gpiod/ext *.h
recursive-include tests/gpiosim *.c
-recursive-include tests/procname *.c
+recursive-include tests/system *.c
recursive-include lib *.c
recursive-include lib *.h
@@ -11,7 +11,7 @@ polluted with artefacts in build/
Builds:
tests/gpiosim/_ext.<target>.so
- tests/procname/_ext.<target>.so
+ tests/system/_ext.<target>.so
"""
@@ -61,9 +61,9 @@ gpiosim_ext = Extension(
],
)
-procname_ext = Extension(
- "tests.procname._ext",
- sources=["tests/procname/ext.c"],
+system_ext = Extension(
+ "tests.system._ext",
+ sources=["tests/system/ext.c"],
define_macros=[("_GNU_SOURCE", "1")],
extra_compile_args=["-Wall", "-Wextra"],
)
@@ -71,7 +71,7 @@ procname_ext = Extension(
dist = Distribution(
{
"name": "gpiod",
- "ext_modules": [gpiosim_ext, procname_ext, gpiod_ext],
+ "ext_modules": [gpiosim_ext, system_ext, gpiod_ext],
"version": __version__,
"platforms": ["linux"],
}
@@ -1,7 +1,7 @@
# SPDX-License-Identifier: LGPL-2.1-or-later
# SPDX-FileCopyrightText: 2022 Bartosz Golaszewski <brgl@bgdev.pl>
-SUBDIRS = gpiosim procname
+SUBDIRS = gpiosim system
EXTRA_DIST = \
helpers.py \
@@ -4,7 +4,7 @@
import unittest
-from . import procname
+from .system import set_process_name
from .tests_chip import *
from .tests_chip_info import *
from .tests_edge_event import *
@@ -15,6 +15,6 @@ from .tests_line_request import *
from .tests_line_settings import *
from .tests_module import *
-procname.set_process_name("python-gpiod")
+set_process_name("python-gpiod")
unittest.main()
similarity index 100%
rename from bindings/python/tests/procname/Makefile.am
rename to bindings/python/tests/system/Makefile.am
similarity index 100%
rename from bindings/python/tests/procname/__init__.py
rename to bindings/python/tests/system/__init__.py
similarity index 100%
rename from bindings/python/tests/procname/_ext.pyi
rename to bindings/python/tests/system/_ext.pyi
similarity index 96%
rename from bindings/python/tests/procname/ext.c
rename to bindings/python/tests/system/ext.c
@@ -32,7 +32,7 @@ static PyMethodDef module_methods[] = {
static PyModuleDef module_def = {
PyModuleDef_HEAD_INIT,
- .m_name = "procname._ext",
+ .m_name = "system._ext",
.m_methods = module_methods,
};
@@ -371,7 +371,7 @@ AC_CONFIG_FILES([Makefile
bindings/python/examples/Makefile
bindings/python/tests/Makefile
bindings/python/tests/gpiosim/Makefile
- bindings/python/tests/procname/Makefile
+ bindings/python/tests/system/Makefile
bindings/rust/libgpiod-sys/src/Makefile
bindings/rust/libgpiod-sys/Makefile
bindings/rust/libgpiod/src/Makefile