File: runme_pgsql

package info (click to toggle)
phpwiki 1.3.14-3
  • links: PTS
  • area: main
  • in suites: lenny
  • size: 15,716 kB
  • ctags: 23,548
  • sloc: php: 88,295; sql: 1,476; sh: 1,378; perl: 765; makefile: 602; awk: 28
file content (13 lines) | stat: -rwxr-xr-x 411 bytes parent folder | download | duplicates (4)
1
2
3
4
5
6
7
8
9
10
11
12
13
#!/bin/sh
# init:
# psql -U wikiuser phpwiki < pgsql-test-initialize.sql

# need to check write perms to the .testbox/* (mixed web/cli perms)
chmod -R a+rw .dumphtml
if [ -d .dumphtml -a ! -w .dumphtml/AllPages.html ]; then
  rm -rf .dumphtml/*
fi
# TODO: if php>5 add PDO
for db in PearDB_pgsql ADODB_postgres7; do
    php -Cq -d register_argc_argv=1 test.php debug=1 level=10 db=$db | tee all_$db.result
done