blob: 9497da38872d5cc86165dd71eb7e9a0add01068b [file] [log] [blame]
wilfrem2c69b5a2015-04-20 19:24:50 +09001#! /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
Jens Geyerf066d842022-06-13 23:37:25 +020013 ${DIR}/../../../compiler/cpp/thrift -o ${DIR} --gen js:node,ts ${DIR}/../../../test/v0.16/ThriftTest.thrift
14 ${DIR}/../../../compiler/cpp/thrift -o ${COMPILEDDIR} --gen js:node,ts ${DIR}/../../../test/v0.16/ThriftTest.thrift
wilfrem2c69b5a2015-04-20 19:24:50 +090015}
16compile
17
18node ${COMPILEDDIR}/client.js $*