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.
 
 
 
 
 

36 lines
760 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. # 'odbc:@engine=sqlite3;Driver=Sqlite3;database=/tmp/test.db' \
  15. # 'postgresql:dbname=test' \
  16. for STR in \
  17. 'postgresql:dbname=test;@blob=bytea' \
  18. 'sqlite3:db=test.db' \
  19. 'mysql:user=root;password=root;database=test' \
  20. 'odbc:@engine=postgresql;Database=test;Driver=Postgresql ANSI' \
  21. 'odbc:@engine=mysql;UID=root;PWD=root;Database=test;Driver=MySQL' \
  22. do
  23. for SUFFIX in '' ';@use_prepared=off' ';@pool_size=5' ';@use_prepared=off;@pool_size=5'
  24. do
  25. run_test ./test_backend "$STR$SUFFIX"
  26. run_test ./test_basic "$STR$SUFFIX"
  27. done
  28. done
  29. run_test ./test_caching