#!/bin/bash
# -*- ksh -*-

# $Id: testAll,v 1.4 2012/11/27 16:27:07 rtobar Exp $
# 
# rtobar, Apr 8, 2010

tar xf external-configuration.tar.bz2

export CLASSPATH=../object/headlessTemp/plugins/TmcdbExplorer/@dot:../object/headlessTemp/plugins/TmcdbExplorer/src:../../dam/lib/cglib-nodep-2.1_3.jar:$CLASSPATH

# we must explicitly add the plugin jar to the classpath since it's not in a standard ACSROOT/lib or INTROOT/lib 
# location and will not be picked up automatically by the acs makefile system
if [ ! -z "$INTROOT" ]
then
    export PLUGIN_JAR="$INTROOT"/lib/TmcdbExplorer/plugins/alma.obops.tmcdb.explorer_1.0.0.jar
else
    export PLUGIN_JAR="$ACSROOT"/lib/TmcdbExplorer/plugins/alma.obops.tmcdb.explorer_1.0.0.jar 
fi

CLASSPATH=$CLASSPATH:$PLUGIN_JAR

acsStartJava -Darchive.configFile=config/archiveConfig.properties.sampleTmcdb -maxHeapSize 2G alma.acs.testsupport.tat.TATJUnitRunner alma.obops.tmcdbgui.AllTests 

rm external-configuration.xml
