From: Subrata <sub...@us...> - 2009-01-15 09:17:17
|
Update of /cvsroot/ltp/ltp/testcases/kernel/device-drivers/nls In directory ddv4jf1.ch3.sourceforge.com:/tmp/cvs-serv11350/ltp/testcases/kernel/device-drivers/nls Modified Files: Makefile README Log Message: [2nd Updates for kernel/device-drivers/nls test for 2.6.25]: Németh Márton initially wrote: the attached patch makes the ltp/testcases/kernel/device-drivers/nls testsuite compileable under Linux kernel 2.6.25. Currently the test_nls_base() crashes with 2.6.25, but without calling that function the module loads and unloads cleanly. This can be a base for checking what is going wrong with nls. Signed-off-by: Márton Németh <nm...@fr...>. Subrata Modak replied: Thanks Németh for the patch. I tested the build on my machine 2.6.27, x86_64. I have merged this Patch. However, i would request you to send me another patch containing the following information: 1) Kernel config options to be enabled & any special library(s) to be installed to allow these tests to be built/run on kernel(s) > 2.6.25 in the following README: http://ltp.cvs.sourceforge.net/viewvc/ltp/ltp/README, 2) Then, http://ltp.cvs.sourceforge.net/viewvc/ltp/ltp/testcases/kernel/device-drivers/nls/README, should contain information to build/install/run these tests. Since these are device drivers tests, and will be executed through insmod, etc, can we have a script which automates these steps and reports error in loading/unloading of modules as such. I think it can be a very small script as well. Németh Márton responded by: I added some descriptions in the mentioned READMEs. However, I would wait adding an automated shell script because the tests fails on my x86_32 system with 2.6.28, and for example "rmmod nlsTest" reports "ERROR: Module nlsTest is in use". The real problem is, however, that the one of the test case already caused NULL pointer exception. I also don't have any easy solution to report only the nlsTest output to the user other than first running "dmesg -c" and then load nlsTest.ko. After the module was loaded the "dmesg" will only show the output of the testsuite. The drawback is that the user will loose the first part of his/her "dmesg" in this way. Signed-Off-By: Németh Márton <nm...@fr...>. Index: README =================================================================== RCS file: /cvsroot/ltp/ltp/testcases/kernel/device-drivers/nls/README,v retrieving revision 1.1 retrieving revision 1.2 diff -C2 -d -r1.1 -r1.2 *** README 12 Jan 2009 07:23:43 -0000 1.1 --- README 15 Jan 2009 09:17:14 -0000 1.2 *************** *** 1,3 **** ! Depends on "nls_base" kernel module. ! Depends on CONFIG_NLS. --- 1,30 ---- ! Native language support (nls) testsuite ! --------------------------------------- ! ! The nls testsuite consists of a kernel space and a user space part. Currently ! the kernel space part is compileable (tested with 2.6.27 & 2.6.28). Check the ! top level README file in LTP to find out the kernel configuration dependencies ! of this testsuite. ! ! Before loading nlsTest.ko the nls_base.ko module must already be loaded. ! ! Building ! -------- ! To build nlsTest.ko you will need to have the the Linux kernel sources installed ! on your build environment. Execute "make" from the current directory should ! build the nlsTest.ko. ! ! Executing the testsuite ! ----------------------- ! The whole testsuite is executed automatically at module load time. You can ! find the test results in the "dmesg" output. ! ! Cleaning up ! ----------- ! To clean up your test system can unload the nlsTest.ko module with ! "rmmod nlsTest". To clean up your build system execute "make clean". ! ! Credits ! ------- ! This README was written by Márton Németh <nm...@fr...>, 14 Jan 2009 Index: Makefile =================================================================== RCS file: /cvsroot/ltp/ltp/testcases/kernel/device-drivers/nls/Makefile,v retrieving revision 1.2 retrieving revision 1.3 diff -C2 -d -r1.2 -r1.3 *** Makefile 12 Jan 2009 07:23:43 -0000 1.2 --- Makefile 15 Jan 2009 09:17:14 -0000 1.3 *************** *** 3,7 **** # - #KERNELDIR := /usr/src/linux-2.5.66-gcov EXTRA_CFLAGS := -Wall -Wextra -Wno-unused-parameter --- 3,6 ---- *************** *** 17,32 **** gcc $(EXTRA_CFLAGS) -o userBlockNLS userBlockNLS.c # $(MAKE) -C $(KERNELDIR) SUBDIRS=$(PWD) modules - endif clean: rm -f modules.order - rm -f Module.symvers rm -f userBlockNLS ! rm -f nlsTest.o ! rm -f nlsTest.ko ! rm -f nlsTest.mod.c ! rm -f nlsTest.mod.o ! rm -f .nlsTest.ko.cmd ! rm -f .nlsTest.mod.o.cmd ! rm -f .nlsTest.o.cmd ! rm -rf .tmp_versions --- 16,24 ---- gcc $(EXTRA_CFLAGS) -o userBlockNLS userBlockNLS.c # $(MAKE) -C $(KERNELDIR) SUBDIRS=$(PWD) modules clean: + $(MAKE) -C $(KDIR) SUBDIRS=$(PWD) clean rm -f modules.order rm -f userBlockNLS ! ! endif |