headtest.sh 948 B

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