3
|
1 |
#!/bin/sh
|
|
2 |
|
|
3 |
# Copyright (c) 2007-2009 Nokia Corporation and/or its subsidiary(-ies).
|
|
4 |
# All rights reserved.
|
|
5 |
# This component and the accompanying materials are made available
|
|
6 |
# under the terms of the License "Eclipse Public License v1.0"
|
|
7 |
# which accompanies this distribution, and is available
|
|
8 |
# at the URL "http://www.eclipse.org/legal/epl-v10.html".
|
|
9 |
#
|
|
10 |
# Initial Contributors:
|
|
11 |
# Nokia Corporation - initial contribution.
|
|
12 |
#
|
|
13 |
# Contributors:
|
|
14 |
#
|
|
15 |
# Description:
|
|
16 |
#
|
|
17 |
|
|
18 |
# Test all nodes in a cluster
|
|
19 |
# arguments are the list of nodes.
|
|
20 |
|
|
21 |
NODELIST="$@"
|
|
22 |
|
|
23 |
(
|
|
24 |
echo "Date and time check:"
|
|
25 |
echo " The numbers following each hostname are the date and time in seconds"
|
|
26 |
echo " They should all be the same otherwise make errors may occur during builds."
|
|
27 |
echo " "`hostname`' '`date +%s`
|
|
28 |
for i in $NODELIST; do
|
|
29 |
ssh $i 'echo " "`hostname`' '`date +%s`'&
|
|
30 |
done
|
|
31 |
)
|
|
32 |
|
|
33 |
|
|
34 |
|
|
35 |
for i in $NODELIST; do
|
|
36 |
ssh $i "NODELIST=\"$NODELIST\" $SBS_HOME/test/cluster/nodetest.sh"
|
|
37 |
done
|
|
38 |
|
|
39 |
|