Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse code

Example scripts to invoke nodejs statsd and ours

  • Loading branch information...
commit acf0f3ec58cd0c9521856012581532020dba28b2 1 parent 6a4e97c
Cosimo Streppone authored
20  t/bin/test-node-statsd.sh
... ...
@@ -0,0 +1,20 @@
  1
+#!/bin/sh
  2
+
  3
+# Where is your node executable?
  4
+NODE='/usr/bin/node'
  5
+
  6
+# Where is Etsy's statsd source code?
  7
+ETSY_STATSD_SRC='../statsd/stats.js'
  8
+
  9
+if [ ! -e './t' ]; then
  10
+    echo "Please run this script from the distribution root folder"
  11
+    exit 1
  12
+fi
  13
+
  14
+TEST_CASES="$*"
  15
+TEST_CASES="${TEST_CASES:-t/integration-tests/*.t}"
  16
+
  17
+export STATSD_BINARY="${NODE} ${ETSY_STATSD_SRC}"
  18
+export STATSD_CONFIG="t/config/testConfig.js"
  19
+
  20
+prove -Ilib -mv $TEST_CASES
11  t/bin/test-perl-statsd.sh
... ...
@@ -0,0 +1,11 @@
  1
+#!/bin/sh
  2
+
  3
+if [ ! -e './t' ]; then
  4
+    echo "Please run this script from the distribution root folder"
  5
+    exit 1
  6
+fi
  7
+
  8
+TEST_CASES="$*"
  9
+TEST_CASES="${TEST_CASES:-t/integration-tests/*.t}"
  10
+
  11
+prove -Ilib -mv $TEST_CASES

0 notes on commit acf0f3e

Please sign in to comment.
Something went wrong with that request. Please try again.