diff options
author | Will Newton <will.newton@gmail.com> | 2009-07-02 16:54:41 +0100 |
---|---|---|
committer | Peter Korsgaard <jacmet@sunsite.dk> | 2009-08-02 22:20:28 +0200 |
commit | 56fcdc9b6e695170a6fedf5380c3dab7e2c4fb0a (patch) | |
tree | b69f43f6fec25180c4fdef3ce9a97a47e5c6e052 /package/ltp-testsuite | |
parent | 81f9990e021011146537c106190116d728477329 (diff) |
ltp-testsuite: Bump version to 20090630.
Closes #437
- Remove a few obsolete patches.
- Add a patch to disable syscall tests unsupported by uClibc.
- Add a patch to fix sched_getaffinity build.
Signed-off-by: Will Newton <will.newton@gmail.com>
Signed-off-by: Peter Korsgaard <jacmet@sunsite.dk>
Diffstat (limited to 'package/ltp-testsuite')
5 files changed, 25 insertions, 86 deletions
diff --git a/package/ltp-testsuite/ltp-testsuite-sched-getaffinity.patch b/package/ltp-testsuite/ltp-testsuite-sched-getaffinity.patch new file mode 100644 index 000000000..9e4a9d837 --- /dev/null +++ b/package/ltp-testsuite/ltp-testsuite-sched-getaffinity.patch @@ -0,0 +1,11 @@ +--- ltp-full-20090630/testcases/kernel/syscalls/sched_getaffinity/Makefile 2009-06-15 19:38:04.000000000 +0100 ++++ ltp-full-20090630.mod/testcases/kernel/syscalls/sched_getaffinity/Makefile 2009-07-02 15:02:33.000000000 +0100 +@@ -16,7 +16,7 @@ + # Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA + # + +-CFLAGS += -I../../../../include -Wall ++CFLAGS += -I../../../../include -Wall -D_GNU_SOURCE + LDLIBS += -L../../../../lib -lltp + + SRCS = $(wildcard *.c) diff --git a/package/ltp-testsuite/ltp-testsuite-sh-is-not-C-code.patch b/package/ltp-testsuite/ltp-testsuite-sh-is-not-C-code.patch deleted file mode 100644 index a6f98ac13..000000000 --- a/package/ltp-testsuite/ltp-testsuite-sh-is-not-C-code.patch +++ /dev/null @@ -1,11 +0,0 @@ ---- ltp-full-20061121/IDcheck.sh.orig 2006-12-07 22:31:29.000000000 -0700 -+++ ltp-full-20061121/IDcheck.sh 2006-12-07 22:32:58.000000000 -0700 -@@ -85,7 +85,7 @@ - fi - - whoami | grep root > /dev/null --if [ $? == "0" ]; then -+if [ $? = "0" ]; then - I_AM_ROOT=1 - fi - diff --git a/package/ltp-testsuite/ltp-testsuite-uclibc-syscalls.patch b/package/ltp-testsuite/ltp-testsuite-uclibc-syscalls.patch new file mode 100644 index 000000000..866a56cc4 --- /dev/null +++ b/package/ltp-testsuite/ltp-testsuite-uclibc-syscalls.patch @@ -0,0 +1,11 @@ +--- ltp-full-20090630/testcases/kernel/syscalls/Makefile 2009-02-26 11:37:28.000000000 +0000 ++++ ltp-full-20090630.mod/testcases/kernel/syscalls/Makefile 2009-07-02 14:57:30.000000000 +0100 +@@ -25,7 +25,7 @@ + # + # Commented this out since there are directories here we don't want built by default + # +-SUBDIR = `ls */Makefile | sed "s/Makefile//g"` ++SUBDIR = `ls */Makefile | sed "s/Makefile//g" | grep -vE "^clock_nanosleep|quotactl|sched_getaffinity|sigreturn|unshare"` + UCLINUX_SUBDIR = `ls */Makefile | sed "s/Makefile//g" | grep -vE "^fork|epoll|capget|capset|chmod|chown|llseek|nftw|clone|profil|getcontext|remap_file_pages"` + + all: diff --git a/package/ltp-testsuite/ltp-testsuite.mk b/package/ltp-testsuite/ltp-testsuite.mk index 178983201..7cb51c211 100644 --- a/package/ltp-testsuite/ltp-testsuite.mk +++ b/package/ltp-testsuite/ltp-testsuite.mk @@ -3,7 +3,7 @@ # ltp-testsuite # ############################################################# -LTP_TESTSUITE_VERSION:=20070228 +LTP_TESTSUITE_VERSION:=20090630 LTP_TESTSUITE_SOURCE:=ltp-full-$(LTP_TESTSUITE_VERSION).tgz LTP_TESTSUITE_SITE:=http://$(BR2_SOURCEFORGE_MIRROR).dl.sourceforge.net/sourceforge/ltp LTP_TESTSUITE_CAT:=$(ZCAT) @@ -15,7 +15,8 @@ LTP_TESTSUITE_DIR:=$(LTP_TESTSUITE_ROOT)/ltp-full-$(LTP_TESTSUITE_VERSION) # LTP_PATCHES:=ltp-testsuite-generate-needs-bash.patch \ ltp-testsuite-sh-is-not-C-code.patch \ - ltp-testsuite.patch + ltp-testsuite-sched-getaffinity.patch \ + ltp-testsuite-uclibc-syscalls.patch ifeq ($(BR2_PTHREADS_NATIVE),y) LTP_PATCHES+=ltp-testsuite-enable-openposix-for-nptl.patch diff --git a/package/ltp-testsuite/ltp-testsuite.patch b/package/ltp-testsuite/ltp-testsuite.patch deleted file mode 100644 index ce6cff3ea..000000000 --- a/package/ltp-testsuite/ltp-testsuite.patch +++ /dev/null @@ -1,73 +0,0 @@ -diff -ur ltp-full-20061121/testcases/kernel/syscalls/fmtmsg/Makefile ltp-full-20061121-patched/testcases/kernel/syscalls/fmtmsg/Makefile ---- ltp-full-20061121/testcases/kernel/syscalls/fmtmsg/Makefile 2006-11-21 14:31:28.000000000 -0600 -+++ ltp-full-20061121-patched/testcases/kernel/syscalls/fmtmsg/Makefile 2006-12-02 00:16:36.830948316 -0600 -@@ -20,7 +20,7 @@ - LDLIBS += -L../../../../lib -lltp - - SRCS = $(wildcard *.c) --TARGETS = $(patsubst %.c,%,$(SRCS)) -+TARGETS =#$(patsubst %.c,%,$(SRCS)) - - all: $(TARGETS) - -diff -ur ltp-full-20061121/testcases/kernel/syscalls/getcontext/Makefile ltp-full-20061121-patched/testcases/kernel/syscalls/getcontext/Makefile ---- ltp-full-20061121/testcases/kernel/syscalls/getcontext/Makefile 2006-11-21 14:31:27.000000000 -0600 -+++ ltp-full-20061121-patched/testcases/kernel/syscalls/getcontext/Makefile 2006-12-02 00:16:50.072004501 -0600 -@@ -20,7 +20,7 @@ - LDLIBS += -L../../../../lib -lltp - - SRCS = $(wildcard *.c) --TARGETS = $(patsubst %.c,%,$(SRCS)) -+TARGETS =#$(patsubst %.c,%,$(SRCS)) - - all: $(TARGETS) - -diff -ur ltp-full-20061121/testcases/kernel/syscalls/profil/Makefile ltp-full-20061121-patched/testcases/kernel/syscalls/profil/Makefile ---- ltp-full-20061121/testcases/kernel/syscalls/profil/Makefile 2006-11-21 14:31:28.000000000 -0600 -+++ ltp-full-20061121-patched/testcases/kernel/syscalls/profil/Makefile 2006-12-02 00:17:03.301059744 -0600 -@@ -20,7 +20,7 @@ - LDLIBS += -L../../../../lib -lltp - - SRCS = $(wildcard *.c) --TARGETS = $(patsubst %.c,%,$(SRCS)) -+TARGETS =#$(patsubst %.c,%,$(SRCS)) - - all: $(TARGETS) - -diff -ur ltp-full-20061121/testcases/kernel/syscalls/pselect/Makefile ltp-full-20061121-patched/testcases/kernel/syscalls/pselect/Makefile ---- ltp-full-20061121/testcases/kernel/syscalls/pselect/Makefile 2006-11-21 14:31:29.000000000 -0600 -+++ ltp-full-20061121-patched/testcases/kernel/syscalls/pselect/Makefile 2006-12-02 00:17:14.661965984 -0600 -@@ -20,7 +20,7 @@ - LDLIBS += -L../../../../lib -lltp - - SRCS = $(wildcard *.c) --TARGETS = $(patsubst %.c,%,$(SRCS)) -+TARGETS =#$(patsubst %.c,%,$(SRCS)) - - all: $(TARGETS) - -diff -ur ltp-full-20061121/testcases/kernel/syscalls/swapon/swapon02.c ltp-full-20061121-patched/testcases/kernel/syscalls/swapon/swapon02.c ---- ltp-full-20061121/testcases/kernel/syscalls/swapon/swapon02.c 2006-11-21 14:31:29.000000000 -0600 -+++ ltp-full-20061121-patched/testcases/kernel/syscalls/swapon/swapon02.c 2006-12-02 00:18:12.422573631 -0600 -@@ -85,9 +85,7 @@ - #include <sys/wait.h> - #include <sys/stat.h> - #include <sys/swap.h> --#ifdef OLDER_DISTRO_RELEASE --#include <linux/swap.h> --#endif -+#define MAX_SWAPFILES 32 - #include <fcntl.h> - #include <pwd.h> - #include <string.h> -@@ -96,10 +94,6 @@ - #include "test.h" - #include "usctest.h" - --#ifndef OLDER_DISTRO_RELEASE --#define MAX_SWAPFILES 32 --#endif -- - static void setup(); - static void cleanup(); - static int setup01(); |