Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/trunk]: src/tests/rump/rumpnet Use 8 TCP/IP stacks instead of 16. That ...



details:   https://anonhg.NetBSD.org/src/rev/440e37860fce
branches:  trunk
changeset: 789833:440e37860fce
user:      pooka <pooka%NetBSD.org@localhost>
date:      Mon Sep 09 19:27:49 2013 +0000

description:
Use 8 TCP/IP stacks instead of 16.  That still gives us plenty crossping
testing for 1/4th of the cost.

diffstat:

 tests/rump/rumpnet/t_shmif.sh |  14 ++++++++------
 1 files changed, 8 insertions(+), 6 deletions(-)

diffs (46 lines):

diff -r 2c49e2301552 -r 440e37860fce tests/rump/rumpnet/t_shmif.sh
--- a/tests/rump/rumpnet/t_shmif.sh     Mon Sep 09 19:20:38 2013 +0000
+++ b/tests/rump/rumpnet/t_shmif.sh     Mon Sep 09 19:27:49 2013 +0000
@@ -1,4 +1,4 @@
-#      $NetBSD: t_shmif.sh,v 1.1 2011/03/10 14:09:46 pooka Exp $
+#      $NetBSD: t_shmif.sh,v 1.2 2013/09/09 19:27:49 pooka Exp $
 #
 # Copyright (c) 2011 The NetBSD Foundation, Inc.
 # All rights reserved.
@@ -27,9 +27,11 @@
 
 atf_test_case crossping cleanup
 
+NKERN=8
+
 crossping_head()
 {
-       atf_set "descr" "start 16 rump kernels on one shmif bus and crossping"
+       atf_set "descr" "run $NKERN rump kernels on one shmif bus and crossping"
 }
 
 startserver()
@@ -51,11 +53,11 @@
 crossping_body()
 {
 
-       for x in `jot 16` ; do startserver $x ; done
-       for x in `jot 16`
+       for x in `jot ${NKERN}` ; do startserver $x ; done
+       for x in `jot ${NKERN}`
        do
                export RUMP_SERVER=unix://sock${x}
-               for y in `jot 16`
+               for y in `jot ${NKERN}`
                do
                        [ ${y} -eq ${x} ] && continue
                        atf_check -s exit:0 -o ignore -e ignore \
@@ -67,7 +69,7 @@
 crossping_cleanup()
 {
 
-       for x in `jot 16` ; do RUMP_SERVER=unix://sock${x} rump.halt ; done
+       for x in `jot ${NKERN}` ; do RUMP_SERVER=unix://sock${x} rump.halt ;done
        :
 }
 



Home | Main Index | Thread Index | Old Index