view agent/test/gtest/testcase.sh @ 225:5abb11559f3b

Bug 3355: [TEST]Add unit test cases Reviewed-by: yasuenag https://github.com/HeapStats/heapstats/pull/90
author KUBOTA Yuji <kubota.yuji@lab.ntt.co.jp>
date Tue, 11 Apr 2017 13:05:30 +0900
parents
children
line wrap: on
line source

#!/bin/sh
set -e

pushd $(dirname $0) >/dev/null

if [[ $1 == "--clean" ]]; then
  make clean
  exit
fi

export LD_LIBRARY_PATH="$LD_LIBRARY_PATH:${JAVA_HOME:-/usr/lib/jvm/java-openjdk}/jre/lib/amd64/server"

if [[ ! -d test-bin ]]; then
  make
fi

pushd test-bin
./jvmti-load-test
./heapstats-test
popd

popd >/dev/null