Permalink
Browse files

Example scripts to invoke nodejs statsd and ours

  • Loading branch information...
1 parent 6a4e97c commit acf0f3ec58cd0c9521856012581532020dba28b2 @cosimo committed Jan 28, 2013
Showing with 31 additions and 0 deletions.
  1. +20 −0 t/bin/test-node-statsd.sh
  2. +11 −0 t/bin/test-perl-statsd.sh
View
@@ -0,0 +1,20 @@
+#!/bin/sh
+
+# Where is your node executable?
+NODE='/usr/bin/node'
+
+# Where is Etsy's statsd source code?
+ETSY_STATSD_SRC='../statsd/stats.js'
+
+if [ ! -e './t' ]; then
+ echo "Please run this script from the distribution root folder"
+ exit 1
+fi
+
+TEST_CASES="$*"
+TEST_CASES="${TEST_CASES:-t/integration-tests/*.t}"
+
+export STATSD_BINARY="${NODE} ${ETSY_STATSD_SRC}"
+export STATSD_CONFIG="t/config/testConfig.js"
+
+prove -Ilib -mv $TEST_CASES
View
@@ -0,0 +1,11 @@
+#!/bin/sh
+
+if [ ! -e './t' ]; then
+ echo "Please run this script from the distribution root folder"
+ exit 1
+fi
+
+TEST_CASES="$*"
+TEST_CASES="${TEST_CASES:-t/integration-tests/*.t}"
+
+prove -Ilib -mv $TEST_CASES

0 comments on commit acf0f3e

Please sign in to comment.