summaryrefslogtreecommitdiffstats
path: root/tests.txt
diff options
context:
space:
mode:
authorRemi Collet <fedora@famillecollet.com>2014-02-11 09:25:51 +0100
committerRemi Collet <fedora@famillecollet.com>2014-02-11 09:25:51 +0100
commit49440e43093a46eabbc1a8396a9197ae11a105fb (patch)
treeeb6c265cde61d5fc245207e57e9e1cc63e6718b1 /tests.txt
parent982cdf251617870817873c0115ea84b34cbb09fa (diff)
php-pecl-mongo: test info + patch (refused upstream, not applied)
Diffstat (limited to 'tests.txt')
-rw-r--r--tests.txt21
1 files changed, 21 insertions, 0 deletions
diff --git a/tests.txt b/tests.txt
new file mode 100644
index 0000000..7bbe8ff
--- /dev/null
+++ b/tests.txt
@@ -0,0 +1,21 @@
+# config
+sed -e '/DBDIR/s:/data:/tmp/data:' \
+ tests/utils/cfg.inc.template >tests/utils/cfg.inc
+
+# select servers (use SKIP_ prefix to skip) and launch
+# see .travis.scripts/compile.sh
+MONGO_SERVER_STANDALONE=yes \
+MONGO_SERVER_STANDALONE_AUTH=yes \
+MONGO_SERVER_REPLICASET=yes \
+MONGO_SERVER_REPLICASET_AUTH=yes \
+make servers
+
+# test suite
+TEST_PHP_EXECUTABLE=/usr/bin/php \
+TEST_PHP_ARGS="-n -d extension=json.so -d extension=$PWD/modules/mongo.so" \
+NO_INTERACTION=1 \
+REPORT_EXIT_STATUS=1 \
+/usr/bin/php -n run-tests.php
+
+# cleaups
+make stop-servers