Hi, I am actually interested in kselftests. My requirement is: I have a sub folders for test. Example: tools/testing/selftests/<my folders>/<folder1> I have my own Makefile, and some set of C source files under folder1 I also have a test script under folder1, that tests 2 executable generated out of 7 C files. I wanted to know about to make use of selftest framework to generate these 2 executable, and also execute by script to run the test. I have already includes <my folders> in top level Makefile under selftests. TARGETS = <my folders> Do, I need to create another Makefile under <my folders> and invoke folder1/Makefile from there? Or is there another way? If anybody have already done a new addition in selftests, please let me know. Thanks, Pintu On Tue, Oct 10, 2017 at 1:15 PM, Pintu Kumar <pintu.ping@xxxxxxxxx> wrote: > Hi All, > > Is anybody familiar with ktests of selftests framework under: tool/testing/ ? > I have some queries. > > 1) What is the difference between ktests and selftests ? How to choose ? > 2) How to invoke a test under ktests? > For example: > I have some user space C program, that tests some kernel driver IOCTL calls. > I have a Makefile to build 2 executable for the tests. > I invoke those executable from a bash shell script and execute all > the tests. > How can I do it automatically from ktests ? > 3) Similarly, how can I do it using selftests? > Using selftests looks much better option for me. > But the problem is I have some sub directories to execute the tests. > Example: > Under, tools/testing/selftests , I have created 2 sub folders. > selftests/folders/folder1/ > My test setup is under: folder1 > How to invoke selftests, for folder1 ? > > If anybody have added new tests under ktests of selftests, please > provide some reference. > > > Thanks, > Pintu _______________________________________________ Kernelnewbies mailing list Kernelnewbies@xxxxxxxxxxxxxxxxx https://lists.kernelnewbies.org/mailman/listinfo/kernelnewbies