From d88c53b829ea5f5b54443157343aa5e19518d38d Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Ture=20P=C3=A5lsson?= <ture@lysator.liu.se>
Date: Fri, 5 Dec 2014 10:48:33 +0100
Subject: [PATCH] Add helper script for 'git bisect'

---
 .gitignore |  1 -
 bistest    | 22 ++++++++++++++++++++++
 2 files changed, 22 insertions(+), 1 deletion(-)
 create mode 100755 bistest

diff --git a/.gitignore b/.gitignore
index 11476a7..bec50e4 100644
--- a/.gitignore
+++ b/.gitignore
@@ -2,7 +2,6 @@ Makefile
 config.log
 config.status
 Doxyfile
-bistest
 config.h
 examples/test_osm1
 examples/test_osm2
diff --git a/bistest b/bistest
new file mode 100755
index 0000000..0ba32d3
--- /dev/null
+++ b/bistest
@@ -0,0 +1,22 @@
+#! /bin/bash
+
+say() {
+    echo -e '\033[1;34m'${1}'\033[0m'
+}
+
+exec 2>bistest.out
+
+say 'Compiling readosm'
+make install CFLAGS="-g -O0" || exit 1
+cd ../test
+rm *.o
+say 'Compiling test program'
+make || exit 2
+say 'Running test program'
+export DYLD_INSERT_LIBRARIES=/usr/lib/libgmalloc.dylib
+./test $HOME/Documents/Kartor/OSM/sweden.osm.pbf || exit 3
+unset DYLD_INSERT_LIBRARIES
+
+say 'OK'
+
+exit 0
-- 
GitLab