lsr-step-3.sh 1.1 KB

12345678910111213141516171819202122232425262728
  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. source ~/benchmark-configuration.sh
  11. echo ""
  12. echo "Running a smoke test..."
  13. echo "servlet-raw (Java/MySQL), cpoll-pool(C++/PostgreSQL), nodejs-mongodb(JavaScript/MongoDB)"
  14. cd "$BENCHMARK_HOME" || { echo "Error changing directory."; exit 1; }
  15. echo "Verifying servlet-raw"
  16. echo ""
  17. toolset/run-tests.py -s "$BENCHMARK_SERVER_IP" -c "$BENCHMARK_CLIENT_IP" -i "$BENCHMARK_KEY_PATH" --max-threads 1 --name smoketest --test servlet-raw --type all -m verify
  18. echo "Verifying cpoll_cppsp-postgres-raw"
  19. echo ""
  20. toolset/run-tests.py -s "$BENCHMARK_SERVER_IP" -c "$BENCHMARK_CLIENT_IP" -i "$BENCHMARK_KEY_PATH" --max-threads 1 --name smoketest --test cpoll_cppsp-postgres-raw --type all -m verify
  21. echo "Verifying nodejs-mongodb"
  22. echo ""
  23. toolset/run-tests.py -s "$BENCHMARK_SERVER_IP" -c "$BENCHMARK_CLIENT_IP" -i "$BENCHMARK_KEY_PATH" --max-threads 1 --name smoketest --test nodejs-mongodb --type all -m verify