Paul J.Y. Lahaie | 5 Jul 2005 21:11

uClinux Makefile fixes

Here is another patch that fixes the uclinux_install target.  I guess
this would make 17/17 now.

Index: ltp-cvs/testcases/kernel/Makefile
===================================================================
--- ltp-cvs.orig/testcases/kernel/Makefile
+++ ltp-cvs/testcases/kernel/Makefile
 <at>  <at>  -11,7 +11,7  <at>  <at>  uclinux:
 	 <at> set -e; for i in $(UCLINUX_SUBDIRS); do $(MAKE) -C $$i uclinux ; done

 uclinux_install:
-	 <at> set -e; for i in $(UCLINUX_SUBDIRS); do $(MAKE) -C $$i install ; done
+	 <at> set -e; for i in $(UCLINUX_SUBDIRS); do $(MAKE) -C $$i uclinux_install ; done

 clean:
 	 <at> set -e; for i in $(SUBDIRS); do $(MAKE) -C $$i clean ; done
Index: ltp-cvs/testcases/kernel/syscalls/Makefile
===================================================================
--- ltp-cvs.orig/testcases/kernel/syscalls/Makefile
+++ ltp-cvs/testcases/kernel/syscalls/Makefile
 <at>  <at>  -51,6 +51,11  <at>  <at>  uclinux:  
 		$(MAKE) -C $$i UCLINUX=1 all; \
 	done

+uclinux_install:
+	 <at> set -e; for i in lib $(UCLINUX_SUBDIR); do \
+		$(MAKE) -C $$i UCLINUX=1 all; \
+	done
+
 clean:
(Continue reading)

Bryce Harrington | 6 Jul 2005 22:57

minor ver_linux patch

This suppresses the warning  "head: `-1' option is obsolete; use `-n 1'..."

Bryce

--- ver_linux.orig      2005-07-06 14:10:17.000000000 -0700
+++ ver_linux   2005-07-06 14:10:24.000000000 -0700
 <at>  <at>  -51,7 +51,7  <at>  <at> 
 -e 's/\.so$//' | awk -F'[.-]'   '{print "Linux C Library        " \
 $(NF-2)"."$(NF-1)"."$NF}'

-ldd -v > /dev/null 2>&1 && ldd -v || ldd --version |head -1 | awk \
+ldd -v > /dev/null 2>&1 && ldd -v || ldd --version |head -n 1 | awk \
 'NR==1{print "Dynamic linker (ldd)  ", $NF}'

 ls -l /usr/lib/lib{g,stdc}++.so  2>/dev/null | awk -F. \

-------------------------------------------------------
SF.Net email is sponsored by: Discover Easy Linux Migration Strategies
from IBM. Find simple to follow Roadmaps, straightforward articles,
informative Webcasts and more! Get everything you need to get up to
speed, fast. http://ads.osdn.com/?ad_id=7477&alloc_id=16492&op=click
Peter Sabaini | 7 Jul 2005 10:54
Picon

Lots of FAILS, Kernel 2.6.12.2

Hello List,

I ran the testsuite on a new Server of ours and got a lot of failed testcases 
(attached) -- is this normal? I'm a bit worried...

Kernel: Linux 2.6.12.2, Module loading enabled, but no versioning support or   
        autoloading

Machine: Dell Poweredge 1850, Xeon 3GHz, 2Gb RAM, SATA

Am I doing something wrong?

Thanks for any input,
peter.

Linux fingon 2.6.12.2_05-07-06_sabaini #1 Wed Jul 6 17:54:45 CEST 2005 i686 
GNU/Linux

Gnu C                  gcc (GCC) 3.3.5 (Debian 1:3.3.5-13) Copyright (C) 2003 
Free Software Foundation, Inc. This is free software; see the source for 
copying conditions. There is NO warranty; not even for MERCHANTABILITY or 
FITNESS FOR A PARTICULAR PURPOSE.
Gnu make               3.80
util-linux             2.12p
mount                  2.12p
modutils               3.2-pre1
e2fsprogs              1.37
PPP                    2.4.3
Linux C Library        2.3.2
Dynamic linker (ldd)   2.3.2
(Continue reading)

Bryce Harrington | 7 Jul 2005 22:13

[PATCH 0/7] NFSv4 support for LTP NFS tests

Hi Robbie,

I noticed that while LTP has tests for NFS, they all work only against
NFS versions 2 and 3.  The Linux NFSv4 project is working to improve
testing of the new version 4 of NFS, and it would be extremely helpful
to have NFSv4 testing supported by LTP.  I have implemented the changes
needed to add this capability to ltp-full-20050608 in the following 7
patches.  If this patchset is acceptable to the LTP team, I'd like to
see it added to the LTP testsuite.

The changes performed by these patches include:

1.  Adds a "-t $NFS_TYPE" parameter to each test's mount command, to
    allow passing in of 'nfs' or 'nfs4'.  NFSv4 mounts are created via
    the -t flag instead of the '-o vers=N' flag.

2.  Conditionalizes the mount options.  For NFSv4, we do not need to
    specify proto= or vers= options, so if $NFS_TYPE is defined as
    'nfsv4', these options are not set.

3.  $TESTDIR conformance.  Each of the NFS tests was creating and naming
    its exported/mounted test directory slightly differently.  These
    patches make the NFS tests use consistent naming approaches, and to
    use a configurable variable $TESTDIR instead of hardcoding through
    the script.

4.  NFSv4 export logic.  In NFSv4, exported directories are placed into
    a "pseudofilesystem", rather than being individual exports.  This
    requires slightly different logic in each test case to establish the
    $TESTDIR export directory.
(Continue reading)

Bryce Harrington | 7 Jul 2005 22:14

[PATCH 1/7] NFSv4 support for LTP NFS tests

NFSv4 support to fsx-linux test case
========================================================================
--- ltp-full-20050608.orig/testcases/network/nfs/fsx-linux/fsx.sh	2005-06-08
09:11:13.000000000 -0700
+++ ltp-full-20050608/testcases/network/nfs/fsx-linux/fsx.sh	2005-07-06 18:54:42.000000000 -0700
 <at>  <at>  -72,11 +72,15  <at>  <at>  EXECUTABLES=${EXECUTABLES:="fsx-linux"}
 setup_testcase()
 {
 $trace_logic
+
+    PID=$$

     VERSION=${VERSION:=2}
     RHOST=${RHOST:=`hostname`}
     ITERATIONS=${ITERATIONS:=50000}
     SOCKET_TYPE=${SOCKET_TYPE:=udp}
+    TESTDIR=${TESTDIR:=/tmp/$TC$PID.testdir}
+    NFS_TYPE=${NFS_TYPE:=nfs}

     echo ""
     echo "Test Options:"
 <at>  <at>  -84,25 +88,37  <at>  <at>  $trace_logic
     echo " RHOST: $RHOST"
     echo " ITERATIONS: $ITERATIONS"
     echo " SOCKET_TYPE: $SOCKET_TYPE"
-    sleep 5
+    echo " NFS_TYPE: $NFS_TYPE"

-    OPTS=${OPTS:=",vers=$VERSION "}
-    PID=$$
(Continue reading)

Bryce Harrington | 7 Jul 2005 22:15

[PATCH 2/7] NFSv4 support for LTP NFS tests

NFSv4 support to nfs01 test case
========================================================================
--- ltp-full-20050608.orig/testcases/network/nfs/nfs01/nfs01	2005-06-08 09:11:13.000000000 -0700
+++ ltp-full-20050608/testcases/network/nfs/nfs01/nfs01	2005-07-06 18:44:56.000000000 -0700
 <at>  <at>  -70,10 +70,14  <at>  <at>  setup_testcase()
 {
 $trace_logic

+    PID=$$
+
     VERSION=${VERSION:=2}
     RHOST=${RHOST:=`hostname`}
     NFILES=${NFILES:=1000}
     SOCKET_TYPE=${SOCKET_TYPE:=udp}
+    TESTDIR=${TESTDIR:=/tmp/$TC$PID.testdir}
+    NFS_TYPE=${NFS_TYPE:=nfs}

     echo ""
     echo "Test Options:"
 <at>  <at>  -81,25 +85,39  <at>  <at>  $trace_logic
     echo " RHOST: $RHOST"
     echo " NFILES: $NFILES"
     echo " SOCKET_TYPE: $SOCKET_TYPE"
-    sleep 5
+    echo " NFS_TYPE: $NFS_TYPE"
+    echo " TESTDIR: $TESTDIR"

-    PID=$$
-    OPTS=${OPTS:=",vers=$VERSION "}
-    REMOTE_DIR=${RHOST}:/tmp/nfs01$PID.testdir
(Continue reading)

Bryce Harrington | 7 Jul 2005 22:15

[PATCH 3/7] NFSv4 support for LTP NFS tests

NFSv4 support to nfs02 test case
========================================================================
--- ltp-full-20050608.orig/testcases/network/nfs/nfs02/nfs02	2005-06-08 09:11:13.000000000 -0700
+++ ltp-full-20050608/testcases/network/nfs/nfs02/nfs02	2005-07-06 22:56:41.000000000 -0700
 <at>  <at>  -46,12 +46,15  <at>  <at>  TCbin=${TCbin:=`pwd`}
 TCdat=${TCdat:=$TCbin/dat}
 TCsrc=${TCsrc:=$TCbin}
 TCtmp=${TCtmp:=$TCbin/$TC$$}
+
+PID=$$
+
 RHOST=${RHOST:=`hostname`}
 VERSION=${VERSION:=2}
 SOCKET_TYPE=${SOCKET_TYPE:=udp}
-TESTDIR=${TESTDIR:=/tmp/$TC$$}
+TESTDIR=${TESTDIR:=/tmp/$TC$PID.testdir}
 CLEANUP=${CLEANUP:="ON"}
-
+NFS_TYPE=${NFS_TYPE:=nfs}

 #---------------------------------------------------------------------#
 # FUNCTION: do_setup
 <at>  <at>  -65,14 +68,36  <at>  <at>  $trace_logic

    echo "do_setup $TC"

+   echo ""
+   echo "Test Options:"
+   echo " VERSION: $VERSION"
+   echo " RHOST: $RHOST"
(Continue reading)

Bryce Harrington | 7 Jul 2005 22:16

[PATCH 4/7] NFSv4 support for LTP NFS tests

NFSv4 support for nfs03 test case
========================================================================
--- ltp-full-20050608.orig/testcases/network/nfs/nfs03/nfs03	2005-06-08 09:11:13.000000000 -0700
+++ ltp-full-20050608/testcases/network/nfs/nfs03/nfs03	2005-07-06 23:02:51.000000000 -0700
 <at>  <at>  -50,9 +50,13  <at>  <at>  TCtmp=${TCtmp:=$TCbin/$TC$$}
 TCdump=${TCdump:=$TCbin}
 RHOST=${RHOST:=`hostname | awk {'print $1'}`}

+PID=$$
+
 # Setting the NFS to version 2 by default
 VERSION=${VERSION:=2}
 SOCKET_TYPE=${SOCKET_TYPE:=udp}
+TESTDIR=${TESTDIR:=/tmp/$TC$PID.testdir}
+NFS_TYPE=${NFS_TYPE:=nfs}

 # If CLEANUP is not set; set it to "ON"
 CLEANUP=${CLEANUP:="ON"}
 <at>  <at>  -66,7 +70,7  <at>  <at>  FILE_NUM=${FILE_NUM:= 100}
 THREAD_NUM=${THREAD_NUM:=1}

 #============================================================================
-# FUNCITON NAME:        fs_inod
+# FUNCTION NAME:        fs_inod
 #
 # FUNCTION DESCRIPTION: Filesystems test from LTP.
 # 
 <at>  <at>  -310,7 +314,9  <at>  <at>  $trace_logic
     echo "Test Options:"
     echo " VERSION: $VERSION"
(Continue reading)

Bryce Harrington | 7 Jul 2005 22:17

[PATCH 5/7] NFSv4 support for LTP NFS tests

NFSv4 support for nfs04 test case
========================================================================
--- ltp-full-20050608.orig/testcases/network/nfs/nfs04/nfs04	2005-06-08 09:11:13.000000000 -0700
+++ ltp-full-20050608/testcases/network/nfs/nfs04/nfs04	2005-07-06 18:45:10.000000000 -0700
 <at>  <at>  -69,10 +69,14  <at>  <at>  setup_testcase()
 {
 $trace_logic

+    PID=$$
+
     VERSION=${VERSION:=2}
     RHOST=${RHOST:=`hostname`}
     FILESIZE=${FILESIZE:=10}
     SOCKET_TYPE=${SOCKET_TYPE:=udp}
+    TESTDIR=${TESTDIR:=/tmp/$TC$PID.testdir}
+    NFS_TYPE=${NFS_TYPE:=nfs}
     LOOPS=${LOOPS:=1}
     export TST_COUNT=$LOOPS

 <at>  <at>  -82,26 +86,39  <at>  <at>  $trace_logic
     echo " RHOST: $RHOST"
     echo " FILESIZE: $FILESIZE"
     echo " SOCKET_TYPE: $SOCKET_TYPE"
+    echo " TESTDIR: $TESTDIR"
+    echo " NFS_TYPE: $NFS_TYPE"
     echo " LOOPS: $LOOPS"
-    sleep 5

-    OPTS=${OPTS:=",vers=$VERSION "}
-    PID=$$
(Continue reading)

Bryce Harrington | 7 Jul 2005 22:17

[PATCH 6/7] NFSv4 support for LTP NFS tests

NFSv4 support for nfsstat01 test case
========================================================================
--- ltp-full-20050608.orig/testcases/network/nfs/nfsstat01/nfsstat01	2005-06-08
09:11:13.000000000 -0700
+++ ltp-full-20050608/testcases/network/nfs/nfsstat01/nfsstat01	2005-07-07
10:20:40.000000000 -0700
 <at>  <at>  -39,13 +39,20  <at>  <at>  $trace_logic
 # Initialize local variables
 #-----------------------------------------------------------------------

+PID=$$
+
 TC=nfsstat01
 TCbin=${TCbin:=`pwd`}
-EXPORTDIR=/tmp/$TC$$
+EXPORTDIR=${EXPORTDIR:=/tmp/$TC$PID}
 HOST=`hostname`
-MOUNTDIR=${MOUNTDIR:=/tmp/$TC$$Mount}
 CLEANUP=${CLEANUP:="ON"}
 VERSION=${VERSION:=2}
+TESTDIR=${TESTDIR:=/tmp/$TC$PID.testdir}
+NFS_TYPE=${NFS_TYPE:nfs}
+
+if [ "x$NFS_TYPE" != "xnfs4" ]; then
+    OPTS=${OPTS:="-o vers=$VERSION "}
+fi

 #---------------------------------------------------------------------#
 # FUNCTION: do_setup
 <at>  <at>  -77,19 +84,28  <at>  <at>  $trace_logic
(Continue reading)


Gmane