lsr-step-3.sh 1.2 KB

1234567891011121314151617181920212223242526272829
  1. #!/bin/bash
  2. #
  3. # Bash script to be executed on the Linux server.
  4. #
  5. # Step 3: Verify setup.
  6. #
  7. echo "Host:" `hostname`
  8. echo "Step 3: Verify setup."
  9. export DEBIAN_FRONTEND=noninteractive
  10. export LC_ALL="en_US.UTF-8"
  11. source ~/benchmark-configuration.sh
  12. echo ""
  13. echo "Running a smoke test..."
  14. echo "servlet-raw (Java/MySQL), cpoll-pool(C++/PostgreSQL), nodejs-mongodb(JavaScript/MongoDB)"
  15. cd "$BENCHMARK_HOME" || { echo "Error changing directory."; exit 1; }
  16. echo "Verifying servlet-raw"
  17. echo ""
  18. toolset/run-tests.py -s "$BENCHMARK_SERVER_IP" -c "$BENCHMARK_CLIENT_IP" -i "$BENCHMARK_KEY_PATH" -u "$BENCHMARK_USER" --max-threads 1 --name smoketest --test servlet-raw --type all -m verify
  19. echo "Verifying cpoll_cppsp-postgres-raw"
  20. echo ""
  21. toolset/run-tests.py -s "$BENCHMARK_SERVER_IP" -c "$BENCHMARK_CLIENT_IP" -i "$BENCHMARK_KEY_PATH" -u "$BENCHMARK_USER" --max-threads 1 --name smoketest --test cpoll_cppsp-postgres-raw --type all -m verify
  22. echo "Verifying nodejs-mongodb"
  23. echo ""
  24. toolset/run-tests.py -s "$BENCHMARK_SERVER_IP" -c "$BENCHMARK_CLIENT_IP" -i "$BENCHMARK_KEY_PATH" -u "$BENCHMARK_USER" --max-threads 1 --name smoketest --test nodejs-mongodb --type all -m verify