]> git.proxmox.com Git - ceph.git/blame - ceph/src/jaegertracing/thrift/lib/nodets/test/runClient.sh
update source to Ceph Pacific 16.2.2
[ceph.git] / ceph / src / jaegertracing / thrift / lib / nodets / test / runClient.sh
CommitLineData
f67539c2
TL
1#! /bin/sh
2
3DIR="$( cd "$( dirname "$0" )" && pwd )"
4
5mkdir -p $DIR/../test-compiled
6
7COMPILEDDIR="$(cd $DIR && cd ../test-compiled && pwd)"
8export NODE_PATH="${DIR}:${DIR}/../../nodejs/lib:${NODE_PATH}"
9
10compile()
11{
12 #generating thrift code
13 ${DIR}/../../../compiler/cpp/thrift -o ${DIR} --gen js:node,ts ${DIR}/../../../test/ThriftTest.thrift
14 ${DIR}/../../../compiler/cpp/thrift -o ${COMPILEDDIR} --gen js:node,ts ${DIR}/../../../test/ThriftTest.thrift
15}
16compile
17
18node ${COMPILEDDIR}/client.js $*