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.
 
 
 
 
 

34 lines
682 B

  1. #!/bin/bash
  2. run_test()
  3. {
  4. if $1 "$2" &>report.txt
  5. then
  6. echo "Passed: $1 $2"
  7. else
  8. echo "Failed: $1 $2"
  9. cat report.txt >>fail.txt
  10. fi
  11. cat report.txt >>all.txt
  12. }
  13. rm -f all.txt fail.txt
  14. for STR in \
  15. 'sqlite3:db=test.db' \
  16. 'odbc:Driver=SQL Server Native Client 10.0;Databse=test;Server=localhost;UID=root;PWD=rootroot;@engine=mssql' \
  17. 'odbc:Driver=SQL Server Native Client 10.0;Databse=test;Server=localhost;UID=root;PWD=rootroot;@engine=mssql;@utf=wide' \
  18. do
  19. for SUFFIX in '' ';@use_prepared=off' ';@pool_size=5' ';@use_prepared=off;@pool_size=5'
  20. do
  21. run_test ./test_backend "$STR$SUFFIX"
  22. run_test ./test_basic "$STR$SUFFIX"
  23. done
  24. done
  25. run_test ./test_caching