File indexing completed on 2026-04-09 07:49:16
0001
0002 usage(){ cat << EOU
0003 sconfig_test.sh
0004 ===============
0005
0006 ~/o/sysrap/tests/sconfig_test.sh
0007
0008 EOU
0009 }
0010
0011 cd $(dirname $(realpath $BASH_SOURCE))
0012
0013 name=sconfig_test
0014 bin=/tmp/$name
0015
0016 gcc $name.cc \
0017 -std=c++11 -lstdc++ \
0018 -I$OPTICKS_PREFIX/include/SysRap \
0019 -o $bin
0020
0021 [ $? -ne 0 ] && echo $BASH_SOURCE : build error && exit 1
0022
0023
0024 $bin
0025 [ $? -ne 0 ] && echo $BASH_SOURCE : run error && exit 2
0026
0027 exit 0
0028