Skip to contentSkip to conversation

network: updated doc

PATCH Superseded Petr Vorel 2 participants 5 messages Nov 10, 2016

v1 of 2 Superseded Latest is v2 →

lore
Share & tools
lore

Petr Vorel

author
#0 lore raw

cover network: updated doc

Hi there,

sending patches to update doc related mainly to network scripts. There is duplicity with testcases/network/README.md, it might be good to keep info only one place. Also fixed runalltests.sh (although network tests aren't running atm).

Kind regards,
Petr

Petr Vorel (3):
doc: update networking related documentation
doc: replace ltp.cvs.sourceforge.net links by path runalltests.sh: update network related scripts paths

 INSTALL                          | 25 ++++++++++---------------
 doc/ltp-run-files.txt            |  2 +-
 runalltests.sh                   | 21 ++++++++++-----------
 testcases/kernel/fs/fs_bind/TODO |  2 --
 4 files changed, 21 insertions(+), 29 deletions(-)
Signature · 1 line
2.10.2
author
#1 lore raw

PATCH 1/3 doc: update networking related documentation

networktests.sh was removed in fddb4f3.

---
 INSTALL               | 25 ++++++++++---------------
 doc/ltp-run-files.txt |  2 +-
 2 files changed, 11 insertions(+), 16 deletions(-)
INSTALL +10 -15
index ca9b98d..cb4fff9 100644
@@ -196,8 +196,8 @@ contributions are welcome.
    in the CD-ROM drive.  The corresponding tests will fail if either disk is
    missing.
 
-6. The network tests are executed by running the networktests.sh script. The
-   network tests require some configuration for them to work correctly:
+6. The network tests are executed by running the network.sh script. The network
+   tests require some configuration for them to work correctly:
 
      i) First, there MUST be another test machine setup to act as the server
 	to these client side tests.  This machine MUST have the LTP installed
@@ -231,23 +231,18 @@ contributions are welcome.
 	 Also, because certain RPC programs are tested, the "portmapper" daemon
 	 MUST be started, as well as NFS server AND lock services.
 
-    iv) Finally, before running the networktests.sh script, two variables must
-	be set within the script file.  The "RHOST" variable should be set to
-	the hostname of the server.  The "PASSWD" variable should be set to
-	root's password on the server machine.  This is necessary for tests
-	such as telnet01 and ftp01.
+    iv) Finally, before running the network.sh script, two variables must be
+   set: The "RHOST" variable should be set to the hostname of the server.  The
+   "PASSWD" variable should be set to root's password on the server machine.
+   This is necessary for tests such as telnet01 and ftp01.
 
-   You can now successfully execute the networktests.sh script.
-   When you would like to run the whole network tests, specify -w option:
-	# ./networktests.sh -w
-
-   When you would like to run the same tests which networktests.sh ran till
-   2008, specify no option or -d option:
-	# ./networktests.sh
+   You can now successfully execute the network.sh script.
 
    You can run the test category which you are interested in, -h option shows
    the list of the test category:
-	# ./netwoktests.sh -h
+       # ./network.sh -h
+
+   For more info about howto run network.sh see testcases/network/README.md.
 
 
 Cross compiling
doc/ltp-run-files.txt +1 -1
index 5da5747..0b4cc48 100644
@@ -27,7 +27,7 @@ Device Mapper tests
  - ltpdmmapper.sh
 
 Network tests
- - networktests.sh
+ - network.sh
  - testcases/network/sockets/ltpSockets.sh
 
 other filesystem or disk type tests
Signature · 1 line
2.10.2
author
#2 lore raw

PATCH 2/3 doc: replace ltp.cvs.sourceforge.net links by path

In reply to Petr Vorel

+ remove outdated links and minor cleanup.

---
 runalltests.sh                   | 17 ++++++++---------
 testcases/kernel/fs/fs_bind/TODO |  2 --
 2 files changed, 8 insertions(+), 11 deletions(-)
runalltests.sh +8 -9
index 20086b6..6e48c38 100755
@@ -70,24 +70,22 @@ export LIBATTR_INSTALLED=0
 
 ## Set this to 1 if you wish to execute the stress_cd tests
 ## Make sure you have FLOPPY inserted, be warned that you
-## will loose all data on it after the tests,
+## will loose all data on it after the tests.
 export RUN_STRESS_FLOPPY=0
 
 ## Set this to 1 if you wish to execute the stress_floppy tests
-## Make sure you have CD inserted in your CD-ROM drive,
+## Make sure you have CD inserted in your CD-ROM drive.
 export RUN_STRESS_CD=0
 
-##Set this to 1 if you wish to run the CPUHOTPLUG tests
+## Set this to 1 if you wish to run the CPUHOTPLUG tests
 export RUN_CPU_HOTPLUG=0
 
 ##Set this to 1 if you wish to run the LTP-NETWORK tests. Please refer to:
-## http://ltp.cvs.sourceforge.net/viewvc/ltp/ltp/testcases/network/LTP-Network-test_README.pdf
-## for more information on how to run the tests.
+## testcases/network/README.md for more information on how to run the tests.
 export RUN_LTP_NETWORK_TESTS=0
 
-##Set this to 1 if you wish to run the LTP-NETWORK-STRESS tests. Please refer to:
-## http://ltp.cvs.sourceforge.net/viewvc/ltp/ltp/testcases/network/LTP-Network-test_README.pdf
-## and http://ltp.cvs.sourceforge.net/viewvc/ltp/ltp/testcases/network/stress/README
+## Set this to 1 if you wish to run the LTP-NETWORK-STRESS tests. Please refer to:
+## testcases/network/README.md and testcases/network/stress/README
 ## for more information on how to run the NETWORK-STRESS tests.
 export RUN_LTP_NETWORK_STRESS_TESTS=0
 
@@ -113,7 +111,8 @@ export NFS_SERVER_DISK_PARTITION1=yyy
 export NFS_SERVER_FS_TYPE1=zzz
 
 
-## Set this to 1 if you wish to run the FS tests on READ ONLY File Systems. Refer to http://ltp.cvs.sourceforge.net/viewvc/ltp/ltp/testscripts/Readme_ROBind for more info
+## Set this to 1 if you wish to run the FS tests on READ ONLY File Systems.
+## Refer to testscripts/Readme_ROBind for more info.
 export RUN_RO_ONLY_FS_TESTS=0
 export READ_ONLY_DIRECTORY1=xxxx
 
testcases/kernel/fs/fs_bind/TODO +0 -2
index 567a33a..1730148 100644
@@ -1,5 +1,3 @@
-Reuse http://ltp.cvs.sourceforge.net/*checkout*/ltp/ltp/testcases/kernel/containers/check_for_unshare.c to test for unshare (used in nsclone.c) ??
-
 Consider replacing long invocations
 	(replace "$FS_BIND_ROOT/bin/makedir") with something shorter).
 
Signature · 1 line
2.10.2
author
#3 lore raw

PATCH 3/3 runalltests.sh: update network related scripts paths

In reply to Petr Vorel

networktests.sh and networkstress.sh scripts were removed in fddb4f3.

network tests are running the same tests as it was default in networktests.sh, networkstress.sh are running all tests (default was to display help).

---
 runalltests.sh | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)
runalltests.sh +2 -2
index 6e48c38..a899473 100755
@@ -367,7 +367,7 @@ fi
 ## START => Test Series 12                             ##
 if [ $RUN_LTP_NETWORK_TESTS -eq 1 ]
 then
-	(cd $LTPROOT/testscripts/; ./networktests.sh)
+	(cd $LTPROOT/testscripts/; ./network.sh -m -n -r -t)
 fi
 ## END => Test Series 12                               ##
 
@@ -375,7 +375,7 @@ fi
 ## START => Test Series 13                             ##
 if [ $RUN_LTP_NETWORK_STRESS_TESTS -eq 1 ]
 then
-	(cd $LTPROOT/testscripts/; ./networkstress.sh)
+	(cd $LTPROOT/testscripts/; ./network.sh -w)
 fi
 ## END => Test Series 13                               ##
 
Signature · 1 line
2.10.2
#4 lore raw

PATCH 3/3 runalltests.sh: update network related scripts paths

Hi!
Well the runalltests.sh seems to be deprecated since 2001 and is basically unmaintained. I guess that we should better remove it in order not to confuse our users.

Signature · 2 lines
Cyril Hrubis
[email protected]