[C-mpi-commits] SF.net SVN: c-mpi:[39] test/cmpi
Status: Pre-Alpha
Brought to you by:
jmwozniak
|
From: <jmw...@us...> - 2010-04-20 20:43:50
|
Revision: 39
http://c-mpi.svn.sourceforge.net/c-mpi/?rev=39&view=rev
Author: jmwozniak
Date: 2010-04-20 20:43:44 +0000 (Tue, 20 Apr 2010)
Log Message:
-----------
Better name.
Added Paths:
-----------
test/cmpi/test-startup.c
test/cmpi/test-startup.zsh
Removed Paths:
-------------
test/cmpi/test01.c
test/cmpi/test01.zsh
Copied: test/cmpi/test-startup.c (from rev 38, test/cmpi/test01.c)
===================================================================
--- test/cmpi/test-startup.c (rev 0)
+++ test/cmpi/test-startup.c 2010-04-20 20:43:44 UTC (rev 39)
@@ -0,0 +1,21 @@
+
+/**
+ Simply build DHT and shutdown.
+ Be sure to pass -n <nodes> !
+*/
+
+#include "test_helpers.h"
+
+void
+cmpi_client_code()
+{
+ NOTE_F;
+
+ gossip_set_debug_mask(1, MASK_MPIRPC|MASK_DHT);
+
+ wait_for_notification();
+ notify_next();
+
+ if (mpi_rank == mpi_size-1)
+ cmpi_shutdown();
+}
Property changes on: test/cmpi/test-startup.c
___________________________________________________________________
Added: svn:mergeinfo
+
Copied: test/cmpi/test-startup.zsh (from rev 38, test/cmpi/test01.zsh)
===================================================================
--- test/cmpi/test-startup.zsh (rev 0)
+++ test/cmpi/test-startup.zsh 2010-04-20 20:43:44 UTC (rev 39)
@@ -0,0 +1,47 @@
+#!/bin/zsh
+
+# set -x
+
+# Be sure to make tests with D=1
+
+PROGRAM=$1
+OUT=${PROGRAM%.x}.out
+shift
+LAUNCH=${*}
+
+crash()
+{
+ print $1
+ mv ${OUT} ${OUT}.failed
+ exit 1
+}
+
+source tools/helpers.zsh
+
+USE_COMM_WORLD=$( grep USE_COMM_WORLD cmpi-config.h | col 3 )
+
+if (( USE_COMM_WORLD == 1 ))
+then
+
+ # KDA-2A execution (3 nodes, 2 clients):
+ mpiexec -n 5 ${PROGRAM} -n 3 >& ${OUT}
+ CODE=$?
+ [[ ${CODE} == 0 ]] || crash "exit code was: ${CODE}"
+
+else
+
+ # KDA-2B execution:
+
+ tools/startup_nodes.zsh $(( N-1 )) 100 &
+
+ mpiexec -n 1 test/cmpi/test01.x > CLIENT.out
+
+ sleep $(( N+15 ))
+
+fi
+
+# Should be 5 "Normal exit."s
+N=$( grep -c "Normal exit." ${OUT} )
+(( N == 5 )) || crash "N != 5"
+
+exit 0
Property changes on: test/cmpi/test-startup.zsh
___________________________________________________________________
Added: svn:executable
+ *
Added: svn:mergeinfo
+
Deleted: test/cmpi/test01.c
===================================================================
--- test/cmpi/test01.c 2010-04-20 20:42:03 UTC (rev 38)
+++ test/cmpi/test01.c 2010-04-20 20:43:44 UTC (rev 39)
@@ -1,21 +0,0 @@
-
-/**
- Simply build DHT and shutdown.
- Be sure to pass -n <nodes> !
-*/
-
-#include "test_helpers.h"
-
-void
-cmpi_client_code()
-{
- NOTE_F;
-
- gossip_set_debug_mask(1, MASK_MPIRPC|MASK_DHT);
-
- wait_for_notification();
- notify_next();
-
- if (mpi_rank == mpi_size-1)
- cmpi_shutdown();
-}
Deleted: test/cmpi/test01.zsh
===================================================================
--- test/cmpi/test01.zsh 2010-04-20 20:42:03 UTC (rev 38)
+++ test/cmpi/test01.zsh 2010-04-20 20:43:44 UTC (rev 39)
@@ -1,45 +0,0 @@
-#!/bin/zsh
-
-# set -x
-
-# Be sure to make tests with D=1
-
-PROGRAM=$1
-OUT=${PROGRAM%.x}.out
-shift
-LAUNCH=${*}
-
-crash()
-{
- print $1
- mv ${OUT} ${OUT}.failed
- exit 1
-}
-
-USE_COMM_WORLD=$( grep USE_COMM_WORLD cmpi-config.h | col 3 )
-
-if (( USE_COMM_WORLD == 1 ))
-then
-
- # KDA-2A execution (3 nodes, 2 clients):
- mpiexec -n 5 ${PROGRAM} -n 3 >& ${OUT}
- CODE=$?
- [[ ${CODE} == 0 ]] || crash "exit code was: ${CODE}"
-
-else
-
- # KDA-2B execution:
-
- tools/startup_nodes.zsh $(( N-1 )) 100 &
-
- mpiexec -n 1 test/cmpi/test01.x > CLIENT.out
-
- sleep $(( N+15 ))
-
-fi
-
-# Should be 5 "Normal exit."s
-N=$( grep -c "Normal exit." ${OUT} )
-(( N == 5 )) || crash "N != 5"
-
-exit 0
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
|