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
627 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. # This is not supported by freetds driver
  15. # 'odbc:DSN=MSSQL;UID=root;PWD=rootroot;@engine=mssql' \
  16. # 'odbc:DSN=MSSQL;UID=root;PWD=rootroot;@engine=mssql;@utf=wide' \
  17. for STR in \
  18. 'sqlite3:db=test.db;@modules_path=.'
  19. do
  20. for SUFFIX in '' ';@use_prepared=off' ';@pool_size=5' ';@use_prepared=off;@pool_size=5'
  21. do
  22. run_test ./test_backend "$STR$SUFFIX"
  23. run_test ./test_basic "$STR$SUFFIX"
  24. done
  25. done
  26. run_test ./test_caching