Skip to content

Instantly share code, notes, and snippets.

@kyleterry
Created November 26, 2014 04:58
Show Gist options
  • Save kyleterry/bd556ced72c8426b9141 to your computer and use it in GitHub Desktop.
Save kyleterry/bd556ced72c8426b9141 to your computer and use it in GitHub Desktop.
#!/bin/sh
export LD_LIBRARY_PATH=./build/lib:$LD_LIBRARY_PATH
<<<<<<< HEAD
if [ "$1" == "valgrind" ]
then
valgrind --leak-check=full --track-origins=yes ./build/bin/oleg_test
=======
rm -rf /tmp/oleg_is_king
CMD=./build/bin/oleg_test
if [ $# -eq 0 ]; then
$CMD
else
if [ $1 == "gdb" ]; then
gdb --args $CMD
elif [ $1 == "valgrind" ]; then
valgrind --leak-check=full $CMD
>>>>>>> master
else
$CMD
fi
fi
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment