tools: added shell script to automate testing of unit tests
authorImran Zaman <imran.zaman@linux.intel.com>
Fri, 24 May 2013 09:26:47 +0000 (12:26 +0300)
committerImran Zaman <imran.zaman@linux.intel.com>
Fri, 24 May 2013 09:26:47 +0000 (12:26 +0300)
tools/run-tests.sh [new file with mode: 0755]

diff --git a/tools/run-tests.sh b/tools/run-tests.sh
new file mode 100755 (executable)
index 0000000..c93f8b2
--- /dev/null
@@ -0,0 +1,18 @@
+#Environment variables for the tests
+export G_MESSAGES_DEBUG=all
+export SSO_STORAGE_PATH=/tmp/gsignond
+export SSO_SECRET_PATH=/tmp/gsignond
+
+rm -rf "$SSO_STORAGE_PATH"
+
+cd ..;
+
+make distclean;
+./autogen.sh --enable-dbus-type=session --enable-debug && \
+make -j4 && make check && make distclean && \
+./autogen.sh --enable-dbus-type=system --enable-debug && \
+make -j4 && make check && make distclean && \
+./autogen.sh --enable-dbus-type=p2p --enable-debug && \
+make -j4 && make check;
+
+cd tools;