#!/bin/sh
#\
test -f ../demos/cat_env.sh && . ../demos/cat_env.sh
#\
P=$PWD; DIRN=`dirname $0`; cd $DIRN; XP=`pwd`; cd $P
#\
if [ -z "$CAT_LIBRARY" ] ; then
#\
   WISH=cat_wish; L=`dirname $XP`; CAT_LIBRARY="$L/lib/cat" ; export CAT_LIBRARY
#\
   else WISH=$CAT_LIBRARY/../bin/cat_wish
#\
fi
#\
LD_LIBRARY_PATH="${LD_LIBRARY_PATH}:${INSTALL_TARGET}/lib:/vlt/APR2003/tcltk/lib:/vlt/APR2003/tcltk/lib/itcl:/usr/X11R6/lib"
#\
exec $WISH "$0" ${1+"$@"}
# --------------------------------------------------
source test.tcl


puts "testing the tcscat Tcl command..."
tcscat cat
cat open gsc@eso
puts "GSC headings: [cat headings]"
puts "GSC query:"
set list [cat query -pos {3:19:48 +41:30:39} -radius 10 -nrows 10]
foreach i $list {
    puts $i
}
exit 0
