#!/bin/sh
# **********************************************************************
#
# Copyright (c) 1999
# Object Oriented Concepts, Inc.
# Billerica, MA, USA
#
# All Rights Reserved
#
# **********************************************************************

#
# Try to find top-level directory
#
if test -f property/src/com/ooc/CosPropertyService/PropertySetDef.java
then
    top_srcdir=property
elif test -f src/com/ooc/CosPropertyService/PropertySetDef.java
then
    top_srcdir=.
elif test -f ../src/com/ooc/CosPropertyService/PropertySetDef.java
then
    top_srcdir=..
elif test -f ../../src/com/ooc/CosPropertyService/PropertySetDef.java
then
    top_srcdir=../..
elif test -f ../../../src/com/ooc/CosPropertyService/PropertySetDef.java
then
    top_srcdir=../../..
elif test -f ../../../../src/com/ooc/CosPropertyService/PropertySetDef.java
then
    top_srcdir=../../../..
else
    $echo "$0: can't find top-level directory"
    exit
fi

#
# Run standard init script
#
. $top_srcdir/../config/sh.init
 
#
# Set Java CLASSPATH
#
if test "$windows" = "yes"
then
    CLASSPATH="$top_srcdir/test/classes;$OB_LIB;$CLASSPATH"
    CLASSPATH="$top_srcdir/lib;$CLASSPATH"
else
    CLASSPATH="$top_srcdir/test/classes:$OB_LIB:$CLASSPATH"
    CLASSPATH="$top_srcdir/lib:$CLASSPATH"
fi
 
export CLASSPATH

#
# Print welcome message
#
$echo
$echo "*******************************"
$echo "* Property Service Test-Suite *"
$echo "*******************************"
 
#
# Run test
#
$echo
$JAVA test.Test
