summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
author"Steven J. Hill" <sjhill@realitydiluted.com>2007-05-09 22:58:59 +0000
committer"Steven J. Hill" <sjhill@realitydiluted.com>2007-05-09 22:58:59 +0000
commit6b2416e57c8b01e770cc2e092ed37354b075f266 (patch)
tree6072701af2883c908de7d1a94aa80a63ca8edc13
parent6b00c90d709a01822027fb9986ec8ace605dd991 (diff)
downloadbuildroot-novena-6b2416e57c8b01e770cc2e092ed37354b075f266.tar.gz
buildroot-novena-6b2416e57c8b01e770cc2e092ed37354b075f266.zip
Update version of LTP.
-rw-r--r--package/ltp-testsuite/ltp-testsuite-remove-bzero-bcmp.patch65
-rw-r--r--package/ltp-testsuite/ltp-testsuite-stime-is-a-reserved-name.patch93
-rw-r--r--package/ltp-testsuite/ltp-testsuite.mk6
-rw-r--r--package/ltp-testsuite/ltp-testsuite.patch84
4 files changed, 5 insertions, 243 deletions
diff --git a/package/ltp-testsuite/ltp-testsuite-remove-bzero-bcmp.patch b/package/ltp-testsuite/ltp-testsuite-remove-bzero-bcmp.patch
deleted file mode 100644
index 16f1a1c19..000000000
--- a/package/ltp-testsuite/ltp-testsuite-remove-bzero-bcmp.patch
+++ /dev/null
@@ -1,65 +0,0 @@
-diff -ur ltp-full-20061121/testcases/kernel/fs/fsx-linux/fsx-linux.c ltp-full-20061121-patched/testcases/kernel/fs/fsx-linux/fsx-linux.c
---- ltp-full-20061121/testcases/kernel/fs/fsx-linux/fsx-linux.c 2006-11-21 14:31:29.000000000 -0600
-+++ ltp-full-20061121-patched/testcases/kernel/fs/fsx-linux/fsx-linux.c 2006-12-02 00:35:42.070475329 -0600
-@@ -322,7 +322,7 @@
- unsigned op = 0;
- unsigned bad = 0;
-
-- if (bcmp(good_buf + offset, temp_buf, size) != 0) {
-+ if (memcmp(good_buf + offset, temp_buf, size) != 0) {
- prt("READ BAD DATA: offset = 0x%x, size = 0x%x\n",
- offset, size);
- prt("OFFSET\tGOOD\tBAD\tRANGE\n");
-diff -ur ltp-full-20061121/testcases/kernel/io/ltp-aiodio/fsx-linux.c ltp-full-20061121-patched/testcases/kernel/io/ltp-aiodio/fsx-linux.c
---- ltp-full-20061121/testcases/kernel/io/ltp-aiodio/fsx-linux.c 2006-11-21 14:31:27.000000000 -0600
-+++ ltp-full-20061121-patched/testcases/kernel/io/ltp-aiodio/fsx-linux.c 2006-12-02 00:36:09.496726421 -0600
-@@ -355,7 +355,7 @@
- unsigned op = 0;
- unsigned bad = 0;
-
-- if (bcmp(good_buf + offset, temp_buf, size) != 0) {
-+ if (memcmp(good_buf + offset, temp_buf, size) != 0) {
- prt("READ BAD DATA: offset = 0x%x, size = 0x%x, fname = %s\n",
- offset, size, fname);
- prt("OFFSET\tGOOD\tBAD\tRANGE\n");
-diff -ur ltp-full-20061121/testcases/kernel/syscalls/symlink/symlink01.c ltp-full-20061121-patched/testcases/kernel/syscalls/symlink/symlink01.c
---- ltp-full-20061121/testcases/kernel/syscalls/symlink/symlink01.c 2006-11-21 14:31:28.000000000 -0600
-+++ ltp-full-20061121-patched/testcases/kernel/syscalls/symlink/symlink01.c 2006-12-02 00:36:18.081430964 -0600
-@@ -904,7 +904,7 @@
- "stat(2) failed to return inode information for a regular object file");
- return(0);
- }
-- else if (bcmp((char *)&statter, (char *)&asymlink, sizeof(statter)) != 0) {
-+ else if (memcmp((char *)&statter, (char *)&asymlink, sizeof(statter)) != 0) {
- TEST_RESULT=TFAIL;
- sprintf(test_msg,
- "lstat(2) and stat(2) do not return same inode information for an object file");
-diff -ur ltp-full-20061121/testcases/network/nfs/fsx-linux/fsx-linux.c ltp-full-20061121-patched/testcases/network/nfs/fsx-linux/fsx-linux.c
---- ltp-full-20061121/testcases/network/nfs/fsx-linux/fsx-linux.c 2006-11-21 14:31:24.000000000 -0600
-+++ ltp-full-20061121-patched/testcases/network/nfs/fsx-linux/fsx-linux.c 2006-12-02 00:35:51.495248935 -0600
-@@ -325,7 +325,7 @@
- unsigned op = 0;
- unsigned bad = 0;
-
-- if (bcmp(good_buf + offset, temp_buf, size) != 0) {
-+ if (memcmp(good_buf + offset, temp_buf, size) != 0) {
- prt("READ BAD DATA: offset = 0x%x, size = 0x%x\n",
- offset, size);
- prt("OFFSET\tGOOD\tBAD\tRANGE\n");
-diff -ur ltp-full-20061121/testcases/network/nfsv4/locks/netsync.c ltp-full-20061121-patched/testcases/network/nfsv4/locks/netsync.c
---- ltp-full-20061121/testcases/network/nfsv4/locks/netsync.c 2006-11-21 14:31:27.000000000 -0600
-+++ ltp-full-20061121-patched/testcases/network/nfsv4/locks/netsync.c 2006-12-02 00:38:03.710097050 -0600
-@@ -57,11 +57,11 @@
- perror ("socket");
- exit(1);
- }
-- bzero(&local, sizeof(local));
-+ memset(&local, 0, sizeof(local));
- local.sin_family = AF_INET;
- local.sin_port = htons(PORT);
- local.sin_addr.s_addr = INADDR_ANY;
-- bzero(&(local.sin_zero), 8);
-+ memset(&(local.sin_zero), 0, 8);
-
- if(bind(sock, (struct sockaddr *)&local, sizeof(struct sockaddr))== -1){
- perror("bind");
diff --git a/package/ltp-testsuite/ltp-testsuite-stime-is-a-reserved-name.patch b/package/ltp-testsuite/ltp-testsuite-stime-is-a-reserved-name.patch
deleted file mode 100644
index dea7863f7..000000000
--- a/package/ltp-testsuite/ltp-testsuite-stime-is-a-reserved-name.patch
+++ /dev/null
@@ -1,93 +0,0 @@
---- ltp-full-20061121/testcases/misc/math/fptests/fptest01.c.orig 2006-12-07 22:14:38.000000000 -0700
-+++ ltp-full-20061121/testcases/misc/math/fptests/fptest01.c 2006-12-07 22:16:08.000000000 -0700
-@@ -84,7 +84,7 @@
- struct event rtrevent;
- int waiting[EVENTMX]; /* array of waiting processors */
- int nwaiting; /* number of waiting processors */
--double stime; /* global clock */
-+double xstime; /* global clock */
- double lsttime; /* time used for editing */
- double dtc, dts, alpha; /* timing parameters */
- int nproc; /* number of processors */
-@@ -133,7 +133,7 @@
- double dtw, dtwsig;
-
- ncycle=0;
-- stime=0;
-+ xstime=0;
- lsttime=0;
- barcnt=0;
- nwaiting=0;
-@@ -148,7 +148,7 @@
- }
-
- for (p=1; p<=nproc; p++) {
-- addevent(ENTERWORK,p,stime);
-+ addevent(ENTERWORK,p,xstime);
- }
-
- return(0);
-@@ -167,7 +167,7 @@
- for (i=0; i < nproc; i++)
- t_total += eventtab[i].time;
-
-- avgspd=ncycle/stime;
-+ avgspd=ncycle/xstime;
-
- v = t_total - MAGIC1;
- if (v < 0.0)
-@@ -294,33 +294,33 @@
- double nxttime;
- int i, p, proc;
-
-- stime = ev->time;
-+ xstime = ev->time;
- proc = ev->proc;
-
- switch (ev->type) {
- case TRYCRIT :
- if (critfree==TRUE)
-- addevent(ENTERCRIT,proc,stime);
-+ addevent(ENTERCRIT,proc,xstime);
- else
- addwaiting(proc);
- break;
- case ENTERCRIT :
- critfree = FALSE;
-- nxttime=stime+dtcrit();
-+ nxttime=xstime+dtcrit();
- addevent(LEAVECRIT,proc,nxttime);
- break;
- case LEAVECRIT :
- critfree = TRUE;
-- addevent(ATBARRIER,proc,stime);
-+ addevent(ATBARRIER,proc,xstime);
- if ((p=getwaiting())!=0) {
-- nxttime=stime;
-+ nxttime=xstime;
- addevent(ENTERCRIT,p,nxttime);
- }
- break;
- case ATBARRIER :
- barcnt++;
- if (barcnt==nproc) {
-- nxttime=stime;
-+ nxttime=xstime;
- for (i=1; i<=nproc; i++) {
- nxttime+=dtspinoff();
- addevent(ENTERWORK,i,nxttime);
-@@ -330,12 +330,12 @@
- }
- break;
- case ENTERWORK :
-- nxttime=stime+dtwork();
-+ nxttime=xstime+dtwork();
- if (ncycle<ncycmax)
- addevent(LEAVEWORK,proc,nxttime);
- break;
- case LEAVEWORK :
-- addevent(TRYCRIT,proc,stime);
-+ addevent(TRYCRIT,proc,xstime);
- break;
- default:
- tst_resm(TBROK,"Illegal event");
diff --git a/package/ltp-testsuite/ltp-testsuite.mk b/package/ltp-testsuite/ltp-testsuite.mk
index 571c8ea2f..bd791b16f 100644
--- a/package/ltp-testsuite/ltp-testsuite.mk
+++ b/package/ltp-testsuite/ltp-testsuite.mk
@@ -3,7 +3,7 @@
# ltp-testsuite
#
#############################################################
-LTP_TESTSUITE_VERSION:=20061121
+LTP_TESTSUITE_VERSION:=20070228
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)
@@ -37,6 +37,10 @@ $(LTP_TESTSUITE_DIR)/.compiled: $(LTP_TESTSUITE_DIR)/Makefile
-C $(LTP_TESTSUITE_DIR) all
touch $(LTP_TESTSUITE_DIR)/.compiled
+sjh: $(LTP_TESTSUITE_DIR)/Makefile
+ $(MAKE1) $(TARGET_CONFIGURE_OPTS) CROSS_COMPILER=$(TARGET_CROSS) \
+ -C $(LTP_TESTSUITE_DIR) all
+
$(LTP_TESTSUITE_DIR)/.installed: $(LTP_TESTSUITE_DIR)/.compiled
# Use fakeroot to pretend to do 'make install' as root
echo "$(MAKE1) $(TARGET_CONFIGURE_OPTS) CROSS_COMPILER=$(TARGET_CROSS) " \
diff --git a/package/ltp-testsuite/ltp-testsuite.patch b/package/ltp-testsuite/ltp-testsuite.patch
index afd436b98..ce6cff3ea 100644
--- a/package/ltp-testsuite/ltp-testsuite.patch
+++ b/package/ltp-testsuite/ltp-testsuite.patch
@@ -71,87 +71,3 @@ diff -ur ltp-full-20061121/testcases/kernel/syscalls/swapon/swapon02.c ltp-full-
static void setup();
static void cleanup();
static int setup01();
-diff -ur ltp-full-20061121/testcases/kernel/syscalls/sysfs/sysfs01.c ltp-full-20061121-patched/testcases/kernel/syscalls/sysfs/sysfs01.c
---- ltp-full-20061121/testcases/kernel/syscalls/sysfs/sysfs01.c 2006-11-21 14:31:29.000000000 -0600
-+++ ltp-full-20061121-patched/testcases/kernel/syscalls/sysfs/sysfs01.c 2006-12-02 00:15:34.705993080 -0600
-@@ -72,10 +72,6 @@
- #include <unistd.h>
- #include <syscall.h>
-
--#ifndef _syscall2
--#include <linux/unistd.h>
--#endif
--
- static void setup();
- static void cleanup();
-
-diff -ur ltp-full-20061121/testcases/kernel/syscalls/sysfs/sysfs02.c ltp-full-20061121-patched/testcases/kernel/syscalls/sysfs/sysfs02.c
---- ltp-full-20061121/testcases/kernel/syscalls/sysfs/sysfs02.c 2006-11-21 14:31:29.000000000 -0600
-+++ ltp-full-20061121-patched/testcases/kernel/syscalls/sysfs/sysfs02.c 2006-12-02 00:15:34.705993080 -0600
-@@ -70,10 +70,6 @@
- #include <unistd.h>
- #include <syscall.h>
-
--#ifndef _syscall2
--#include <linux/unistd.h>
--#endif
--
- static void setup();
- static void cleanup();
-
-diff -ur ltp-full-20061121/testcases/kernel/syscalls/sysfs/sysfs03.c ltp-full-20061121-patched/testcases/kernel/syscalls/sysfs/sysfs03.c
---- ltp-full-20061121/testcases/kernel/syscalls/sysfs/sysfs03.c 2006-11-21 14:31:29.000000000 -0600
-+++ ltp-full-20061121-patched/testcases/kernel/syscalls/sysfs/sysfs03.c 2006-12-02 00:15:34.705993080 -0600
-@@ -70,10 +70,6 @@
- #include <unistd.h>
- #include <syscall.h>
-
--#ifndef _syscall2
--#include <linux/unistd.h>
--#endif
--
- static void setup();
- static void cleanup();
-
-diff -ur ltp-full-20061121/testcases/kernel/syscalls/sysfs/sysfs04.c ltp-full-20061121-patched/testcases/kernel/syscalls/sysfs/sysfs04.c
---- ltp-full-20061121/testcases/kernel/syscalls/sysfs/sysfs04.c 2006-11-21 14:31:29.000000000 -0600
-+++ ltp-full-20061121-patched/testcases/kernel/syscalls/sysfs/sysfs04.c 2006-12-02 00:15:34.705993080 -0600
-@@ -73,10 +73,6 @@
- #include "test.h"
- #include "usctest.h"
-
--#ifndef _syscall2
--#include <linux/unistd.h>
--#endif
--
- #define INVALID_OPTION 100
- static void setup();
- static void cleanup();
-diff -ur ltp-full-20061121/testcases/kernel/syscalls/sysfs/sysfs05.c ltp-full-20061121-patched/testcases/kernel/syscalls/sysfs/sysfs05.c
---- ltp-full-20061121/testcases/kernel/syscalls/sysfs/sysfs05.c 2006-11-21 14:31:29.000000000 -0600
-+++ ltp-full-20061121-patched/testcases/kernel/syscalls/sysfs/sysfs05.c 2006-12-02 00:22:55.657171949 -0600
-@@ -74,10 +74,6 @@
- #include "test.h"
- #include "usctest.h"
-
--#ifndef _syscall2
--#include <linux/unistd.h>
--#endif
--
- static void setup();
- static void cleanup();
-
-diff -ur ltp-full-20061121/testcases/kernel/syscalls/sysfs/sysfs06.c ltp-full-20061121-patched/testcases/kernel/syscalls/sysfs/sysfs06.c
---- ltp-full-20061121/testcases/kernel/syscalls/sysfs/sysfs06.c 2006-11-21 14:31:29.000000000 -0600
-+++ ltp-full-20061121-patched/testcases/kernel/syscalls/sysfs/sysfs06.c 2006-12-02 00:22:47.124491054 -0600
-@@ -75,10 +75,6 @@
- #include "test.h"
- #include "usctest.h"
-
--#ifndef _syscall2
--#include <linux/unistd.h>
--#endif
--
- static void setup();
- static void cleanup();
-