File indexing completed on 2026-04-09 07:49:23
0001
0002 usage(){ cat << EOU
0003 STTFTest.sh
0004 =============
0005
0006 ::
0007
0008 ~/o/sysrap/tests/STTFTest.sh
0009
0010
0011 Creates img, annotates and saves to file testing STTF.h and SIMG.h
0012
0013 EOU
0014 }
0015
0016 cd $(dirname $(realpath $BASH_SOURCE))
0017
0018 name=STTFTest
0019 bin=${TMP:-/tmp/$USER/opticks}/$name/$name
0020 mkdir -p $(dirname $bin)
0021
0022 gcc $name.cc \
0023 -g -std=c++11 -lstdc++ -lm \
0024 -I$OPTICKS_PREFIX/include/SysRap \
0025 -o $bin
0026 [ $? -ne 0 ] && echo compile fail && exit 1
0027
0028 path=${TMP:-/tmp/$USER/opticks}/sysrap/tests/STTFTest.jpg
0029 mkdir -p $(dirname $path)
0030 rm -f $path
0031
0032 $bin $path
0033 [ $? -ne 0 ] && echo run fail && exit 2
0034
0035 [ ! -f "$path" ] && echo failed to create path $path && exit 3
0036 open $path
0037
0038 exit 0
0039