Your New Makefile and new Test Cases has been added to LTP. Thanks for contributing. We expect more contributions from you in terms new test cases and patches.
--Subrata-- On Thu, 2007-11-22 at 20:11 +0900, Masatake YAMATO wrote: > > > > Masatake Y, > > > > Kindly let me know if you need any assistance for writing these test > > > > cases. > > > > --Subrata-- > > > > > > Thanks. After some studying about fadvise64 in glibc and linux, > > > I get a remark that I should write tests for posix_fadvise first. > > > Generally applications use posix_fadvise64, don't use fadvise64 > > > directly as far as searching all C source code in Fedora 8. > > > > After more study, I've found test cases in posix test suite are > > really comprehensive. I'd like to show(and see) the result of > > my effort very quickly and start small, I decide adapt my test > > case to ltp/testcases/kernel/syscalls. > > > > Put fadvise.tar.gz to ltp/testcases/kernel/syscalls and run tar zxvf. > > I tested this my test cases only on Fedora 7 which updated from > > Fedora Core 5. Some packages are mixed between distro versions. > > I've updated Makefile so that the testcases test both posix_fadvise and > posix_fadvise64. > > Masatake YAMATO > plain text document attachment (Makefile) > # > # Copied from ../open/Makefile by Masatake YAMATO > # > ### > # > # Copyright (c) International Business Machines Corp., 2001 > # > # This program is free software; you can redistribute it and/or modify > # it under the terms of the GNU General Public License as published by > # the Free Software Foundation; either version 2 of the License, or > # (at your option) any later version. > # > # This program is distributed in the hope that it will be useful, > # but WITHOUT ANY WARRANTY; without even the implied warranty of > # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See > # the GNU General Public License for more details. > # > # You should have received a copy of the GNU General Public License > # along with this program; if not, write to the Free Software > # Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA > # > CFLAGS += -I../../../../include -Wall > LDLIBS += -L../../../../lib -lltp > > SRCS = $(wildcard posix_fadvise[0-9][0-9].c) > TARGETS = $(patsubst %.c,%,$(SRCS)) $(patsubst %.c,%_64,$(SRCS)) > > %_64.c: %.c > echo "#define _FILE_OFFSET_BITS 64" > $@ > cat $< >> $@ > > > all: $(TARGETS) > > install: > @set -e; for i in $(TARGETS); do ln -f $$i ../../../bin/$$i ; done > > clean: > rm -f $(TARGETS) ------------------------------------------------------------------------- This SF.net email is sponsored by: Microsoft Defy all challenges. Microsoft(R) Visual Studio 2005. http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/ _______________________________________________ Ltp-list mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/ltp-list
