From: Subrata <sub...@us...> - 2008-06-27 10:55:16
|
Update of /cvsroot/ltp/ltp/testcases/kernel/syscalls/io_cancel In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv18053/ltp/testcases/kernel/syscalls/io_cancel Modified Files: Makefile run-io_cancel.sh Log Message: I'd like to use the mechanism you introduced in io_* testcases. So I've made 'io_cancel' string in the script and Makefile a variable to avoid mistake. I made the patch from testcases/kernel/syscalls/io_cancel/Makefile, not from ltp/testcases/kernel/syscalls/io_cancel/Makefile. Is this acceptable. CVS reports like testcases/kernel/syscalls/io_cancel/Makefile. Signed-off-by: Masatake YAMATO <ya...@re...>. Index: run-io_cancel.sh =================================================================== RCS file: /cvsroot/ltp/ltp/testcases/kernel/syscalls/io_cancel/run-io_cancel.sh,v retrieving revision 1.1 retrieving revision 1.2 diff -C2 -d -r1.1 -r1.2 *** run-io_cancel.sh 26 Jun 2008 13:27:18 -0000 1.1 --- run-io_cancel.sh 27 Jun 2008 10:54:46 -0000 1.2 *************** *** 1,8 **** #!/bin/sh ! if [ -f $LTPROOT/testcases/bin/io_cancel01 ]; then ! $LTPROOT/testcases/bin/io_cancel01 else ! echo "io_cancel01 0 CONF : System doesn't support execution of the test" fi --- 1,10 ---- #!/bin/sh ! syscall=io_cancel ! ! if [ -f $LTPROOT/testcases/bin/${syscall}01 ]; then ! $LTPROOT/testcases/bin/${syscall}01 else ! echo "${syscall}01 0 CONF : System doesn't support execution of the test" fi Index: Makefile =================================================================== RCS file: /cvsroot/ltp/ltp/testcases/kernel/syscalls/io_cancel/Makefile,v retrieving revision 1.1 retrieving revision 1.2 diff -C2 -d -r1.1 -r1.2 *** Makefile 26 Jun 2008 13:27:18 -0000 1.1 --- Makefile 27 Jun 2008 10:54:46 -0000 1.2 *************** *** 24,27 **** --- 24,29 ---- SRCS = $(wildcard *.c) TARGETS = $(patsubst %.c,%,$(SRCS)) + SYSCALL = io_cancel + check_header = $(shell \ *************** *** 39,43 **** install: @set -e; for i in $(TARGETS); do ln -f $$i ../../../bin/$$i ; done ! cp run-io_cancel.sh ../../../bin/run-io_cancel.sh else ### does not have libaio.h ### --- 41,45 ---- install: @set -e; for i in $(TARGETS); do ln -f $$i ../../../bin/$$i ; done ! cp run-$(SYSCALL).sh ../../../bin/run-$(SYSCALL).sh else ### does not have libaio.h ### |