sbsv2/raptor/test/cluster/pvmtest.sh
author jjkang
Thu, 01 Jul 2010 14:58:06 +0800
changeset 609 f76e0f94b7ab
parent 591 22486c9c7b15
permissions -rw-r--r--
Minor change: update package_definition.xml
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
591
22486c9c7b15 raptor v2.14.0
jjkang
parents:
diff changeset
     1
#!/bin/sh
22486c9c7b15 raptor v2.14.0
jjkang
parents:
diff changeset
     2
22486c9c7b15 raptor v2.14.0
jjkang
parents:
diff changeset
     3
# Copyright (c) 2007-2009 Nokia Corporation and/or its subsidiary(-ies).
22486c9c7b15 raptor v2.14.0
jjkang
parents:
diff changeset
     4
# All rights reserved.
22486c9c7b15 raptor v2.14.0
jjkang
parents:
diff changeset
     5
# This component and the accompanying materials are made available
22486c9c7b15 raptor v2.14.0
jjkang
parents:
diff changeset
     6
# under the terms of the License "Eclipse Public License v1.0"
22486c9c7b15 raptor v2.14.0
jjkang
parents:
diff changeset
     7
# which accompanies this distribution, and is available
22486c9c7b15 raptor v2.14.0
jjkang
parents:
diff changeset
     8
# at the URL "http://www.eclipse.org/legal/epl-v10.html".
22486c9c7b15 raptor v2.14.0
jjkang
parents:
diff changeset
     9
#
22486c9c7b15 raptor v2.14.0
jjkang
parents:
diff changeset
    10
# Initial Contributors:
22486c9c7b15 raptor v2.14.0
jjkang
parents:
diff changeset
    11
# Nokia Corporation - initial contribution.
22486c9c7b15 raptor v2.14.0
jjkang
parents:
diff changeset
    12
#
22486c9c7b15 raptor v2.14.0
jjkang
parents:
diff changeset
    13
# Contributors:
22486c9c7b15 raptor v2.14.0
jjkang
parents:
diff changeset
    14
#
22486c9c7b15 raptor v2.14.0
jjkang
parents:
diff changeset
    15
# Description:
22486c9c7b15 raptor v2.14.0
jjkang
parents:
diff changeset
    16
#
22486c9c7b15 raptor v2.14.0
jjkang
parents:
diff changeset
    17
22486c9c7b15 raptor v2.14.0
jjkang
parents:
diff changeset
    18
# Test all nodes in a cluster
22486c9c7b15 raptor v2.14.0
jjkang
parents:
diff changeset
    19
# arguments are the list of nodes.
22486c9c7b15 raptor v2.14.0
jjkang
parents:
diff changeset
    20
22486c9c7b15 raptor v2.14.0
jjkang
parents:
diff changeset
    21
NODELIST="$@"
22486c9c7b15 raptor v2.14.0
jjkang
parents:
diff changeset
    22
22486c9c7b15 raptor v2.14.0
jjkang
parents:
diff changeset
    23
for i in $NODELIST; do
22486c9c7b15 raptor v2.14.0
jjkang
parents:
diff changeset
    24
	ssh $i "ls -l /tmp/pvm.$UID"
22486c9c7b15 raptor v2.14.0
jjkang
parents:
diff changeset
    25
done
22486c9c7b15 raptor v2.14.0
jjkang
parents:
diff changeset
    26
22486c9c7b15 raptor v2.14.0
jjkang
parents:
diff changeset
    27
for i in $NODELIST; do
22486c9c7b15 raptor v2.14.0
jjkang
parents:
diff changeset
    28
	(
22486c9c7b15 raptor v2.14.0
jjkang
parents:
diff changeset
    29
	echo "spawn -($i) -> /bin/hostname"
22486c9c7b15 raptor v2.14.0
jjkang
parents:
diff changeset
    30
	echo "spawn -($i) -> $PVM_ROOT/bin/LINUX/pvmgmake_pvm"
22486c9c7b15 raptor v2.14.0
jjkang
parents:
diff changeset
    31
	echo "quit"
22486c9c7b15 raptor v2.14.0
jjkang
parents:
diff changeset
    32
	) | pvm
22486c9c7b15 raptor v2.14.0
jjkang
parents:
diff changeset
    33
done
22486c9c7b15 raptor v2.14.0
jjkang
parents:
diff changeset
    34
22486c9c7b15 raptor v2.14.0
jjkang
parents:
diff changeset
    35
22486c9c7b15 raptor v2.14.0
jjkang
parents:
diff changeset
    36