testall.sh 1.1 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556
  1. #!/bin/bash
  2. #
  3. # Copyright (c) 2011 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. # A script that does a test run with simmmer upto some number of cores
  17. #
  18. function dotest {
  19. for i in {1..32}; do
  20. j=$(( i *2 ))
  21. rm -f testfile.*
  22. (time make -j $j -f test.mk SIMMER_ARGS:="$SIMMER_ARGS" ) 2>result.j$j
  23. done
  24. mkdir "$TESTNAME"
  25. mv result.j* "$TESTNAME"
  26. }
  27. SIMMER_ARGS=--copylen=16384
  28. TESTNAME=copylen_16384
  29. dotest
  30. SIMMER_ARGS=--copylen=8192
  31. TESTNAME=copylen_8192
  32. dotest
  33. SIMMER_ARGS=--copylen=4096
  34. TESTNAME=copylen_4096
  35. dotest
  36. SIMMER_ARGS=--filedata=425000L
  37. TESTNAME=filedata_425000
  38. dotest
  39. SIMMER_ARGS=--filedata=850000L
  40. TESTNAME=filedata_850000
  41. dotest
  42. SIMMER_ARGS=--filedata=1700000L
  43. TESTNAME=filedata_1700000L
  44. dotest