{"id":13305802,"url":"https://github.com/stubbfel/KUnity-Test-Runner-Module","last_synced_at":"2025-03-10T14:32:02.478Z","repository":{"id":92962767,"uuid":"142484467","full_name":"stubbfel/KUnity-Test-Runner-Module","owner":"stubbfel","description":"run kunity tests  by a runner module","archived":false,"fork":false,"pushed_at":"2018-09-06T21:02:08.000Z","size":24,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"master","last_synced_at":"2023-03-01T00:35:34.400Z","etag":null,"topics":["c","gpl","linux","linux-kernel-module","test-runner"],"latest_commit_sha":null,"homepage":"","language":"C","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"gpl-3.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/stubbfel.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2018-07-26T19:21:39.000Z","updated_at":"2018-09-06T21:02:09.000Z","dependencies_parsed_at":"2023-03-13T17:24:08.113Z","dependency_job_id":null,"html_url":"https://github.com/stubbfel/KUnity-Test-Runner-Module","commit_stats":null,"previous_names":[],"tags_count":0,"template":null,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/stubbfel%2FKUnity-Test-Runner-Module","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/stubbfel%2FKUnity-Test-Runner-Module/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/stubbfel%2FKUnity-Test-Runner-Module/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/stubbfel%2FKUnity-Test-Runner-Module/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/stubbfel","download_url":"https://codeload.github.com/stubbfel/KUnity-Test-Runner-Module/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":242868421,"owners_count":20198476,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["c","gpl","linux","linux-kernel-module","test-runner"],"created_at":"2024-07-29T17:54:34.991Z","updated_at":"2025-03-10T14:32:02.466Z","avatar_url":"https://github.com/stubbfel.png","language":"C","funding_links":[],"categories":[],"sub_categories":[],"readme":"\n# Kunity test runner module\nThe Kunity test runner runs any kunity tests (see [KUnity-Core](https://github.com/stubbfel/KUnity-Core)) by a kernel module. \nThis module search for test function in the symbol table of the kernel space (https://www.linux.com/learn/kernel-newbie-corner-kernel-symbols-whats-available-your-module-what-isnt) and made them runable for the userspace (by proc files).\n\n## proc file struce\n\n```plain\n + /proc/kunity_test\n    + \u003cmodulename\u003e\n        - \u003cmodulename\u003e -\u003e read of this file, will be run all test case of this module\n        + single_tests\n            - \u003ctest_name\u003e -\u003e read of this file, will be run the specific test case\n```\n\n## building module\n\n### cmake\n\n``` bash\nmkdir build\ncd build\ncmake ../\n# cmake -DKERNEL_DIR=\u003cpath/to/kernel/module/build\u003e ../\nmake\n#load module by \"insmod kunity_test_runner_module/kunity_test_runner_module.ko\"\n```\nBy default the `/lib/modules/${CMAKE_SYSTEM_VERSION}/build` path is use for the kernel build path. This path can be change by using the `KERNEL_DIR` option.\n\n### KBuild\n\n```bash\nmake -C /lib/modules/\u003cKernelVersion\u003e/build  M=${PWD} modules KBUILD_EXTRA_SYMBOLS=${PWD}/Module.symvers\n#load module by \"insmod kunity_test_runner_module.ko\"\n```\n\n## execution\n\nsimple use `cat` on the proc file :) like : `cat /proc/kunity_test/my_module/single_tests/my_first_module_test`\n\n## module parameter\n\n  * proc_test_root_folder_name - The name of the proc folder, which will contains the test proc files. (Default is \"kunity_test\")\n  * test_function_filter - a filter option for test function names, which the runner is looking for. (Default is \"kunity_test_*\")\n  * module_filter - a filter option for modules, which the runner is looking for test functions.  (Default is * -\u003e search in all modules)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fstubbfel%2FKUnity-Test-Runner-Module","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fstubbfel%2FKUnity-Test-Runner-Module","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fstubbfel%2FKUnity-Test-Runner-Module/lists"}