C++DB is the database layer that was designed to work with C++CMS. This customized version is used within Ye Ol' Pi Shack.
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 

45 lines
1004 B

  1. #!/bin/bash
  2. # This is not supported by freetds driver
  3. # 'odbc:DSN=MSSQL;UID=root;PWD=rootroot;@engine=mssql' \
  4. # 'odbc:DSN=MSSQL;UID=root;PWD=rootroot;@engine=mssql;@utf=wide' \
  5. rm Fail.txt
  6. for CS in \
  7. 'sqlite3:db=test.db' \
  8. do
  9. for OP in '' ';@use_prepared=off' ';@pool_size=8' ';@use_prepared=off;@pool_size=8'
  10. do
  11. echo $CS$OP
  12. if ! ./test_backend "$CS$OP" &> rep.txt
  13. then
  14. echo " ------------------ FAIL test_backend ------"
  15. cat rep.txt >> Fail.txt
  16. echo " -------------------------------------------"
  17. else
  18. echo " test_backend - OK"
  19. fi
  20. if ! ./test_basic "$CS$OP" &> rep.txt
  21. then
  22. echo " ------------------ FAIL test_basic ------"
  23. cat rep.txt >> Fail.txt
  24. echo " -------------------------------------------"
  25. else
  26. echo " test_basic - OK"
  27. fi
  28. done
  29. done
  30. if ! ./test_caching &> rep.txt
  31. then
  32. echo " ------------------ FAIL test_caching ------"
  33. cat rep.txt >> Fail.txt
  34. echo " -------------------------------------------"
  35. else
  36. echo " test_caching - OK"
  37. fi