Tests: Split lib tests in multiple standalone test scripts
authorChristian Babeux <christian.babeux@efficios.com>
Thu, 22 Aug 2013 17:00:48 +0000 (13:00 -0400)
committerMathieu Desnoyers <mathieu.desnoyers@efficios.com>
Thu, 22 Aug 2013 17:07:57 +0000 (13:07 -0400)
Signed-off-by: Christian Babeux <christian.babeux@efficios.com>
Signed-off-by: Mathieu Desnoyers <mathieu.desnoyers@efficios.com>
.gitignore
tests/lib/Makefile.am
tests/lib/runall.sh [deleted file]
tests/lib/test_seek_big_trace [new file with mode: 0755]
tests/lib/test_seek_empty_packet [new file with mode: 0755]

index 49297ccb8b1f4709fe4a0f93667ae047a525ee8a..2b5af7e28fba1d5b6d6ad67e5812005487a21adf 100644 (file)
@@ -1,5 +1,5 @@
-/tests/lib/test-bitfield
-/tests/lib/test-seeks
+/tests/lib/test_bitfield
+/tests/lib/test_seek
 *.o
 *.a
 *.la
 *.o
 *.a
 *.la
index a7de0a946b0df10466b8c056fbb132ab29635c95..dac6a73eb876c82b95f3a7fc48c23fea3755f739 100644 (file)
@@ -17,7 +17,4 @@ noinst_PROGRAMS = test_seek test_bitfield
 test_seek_SOURCES = test_seek.c
 test_bitfield_SOURCES = test_bitfield.c
 
 test_seek_SOURCES = test_seek.c
 test_bitfield_SOURCES = test_bitfield.c
 
-EXTRA_DIST = runall.sh
-
-check-am:
-       ./runall.sh
+EXTRA_DIST = test_seek_big_trace test_seek_empty_packet
diff --git a/tests/lib/runall.sh b/tests/lib/runall.sh
deleted file mode 100755 (executable)
index 5c28299..0000000
+++ /dev/null
@@ -1,9 +0,0 @@
-#!/bin/sh
-# run Seeks tests
-# With a trace than contains empty packets
-./test_seek ../ctf-traces/succeed/wk-heartbeat-u/ 1351532897586558519 1351532897591331194
-# With a bigger trace
-./test_seek ../ctf-traces/succeed/lttng-modules-2.0-pre5/ 61334174524234 61336381998396
-
-# run bitfield tests
-./test_bitfield
diff --git a/tests/lib/test_seek_big_trace b/tests/lib/test_seek_big_trace
new file mode 100755 (executable)
index 0000000..732934f
--- /dev/null
@@ -0,0 +1,23 @@
+#!/bin/sh
+#
+# Copyright (C) 2013 - Christian Babeux <christian.babeux@efficios.com>
+#
+# This program is free software; you can redistribute it and/or
+# modify it under the terms of the GNU General Public License
+# as published by the Free Software Foundation; only version 2
+# of the License.
+#
+# This program is distributed in the hope that it will be useful,
+# but WITHOUT ANY WARRANTY; without even the implied warranty of
+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
+# GNU General Public License for more details.
+#
+# You should have received a copy of the GNU General Public License
+# along with this program; if not, write to the Free Software
+# Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA  02111-1307, USA.
+#
+CURDIR=$(dirname $0)/
+TESTDIR=$CURDIR/../
+CTF_TRACES=$TESTDIR/ctf-traces
+
+$CURDIR/test_seek $CTF_TRACES/succeed/lttng-modules-2.0-pre5/ 61334174524234 61336381998396
diff --git a/tests/lib/test_seek_empty_packet b/tests/lib/test_seek_empty_packet
new file mode 100755 (executable)
index 0000000..b6ac3c6
--- /dev/null
@@ -0,0 +1,23 @@
+#!/bin/sh
+#
+# Copyright (C) 2013 - Christian Babeux <christian.babeux@efficios.com>
+#
+# This program is free software; you can redistribute it and/or
+# modify it under the terms of the GNU General Public License
+# as published by the Free Software Foundation; only version 2
+# of the License.
+#
+# This program is distributed in the hope that it will be useful,
+# but WITHOUT ANY WARRANTY; without even the implied warranty of
+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
+# GNU General Public License for more details.
+#
+# You should have received a copy of the GNU General Public License
+# along with this program; if not, write to the Free Software
+# Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA  02111-1307, USA.
+#
+CURDIR=$(dirname $0)/
+TESTDIR=$CURDIR/../
+CTF_TRACES=$TESTDIR/ctf-traces
+
+$CURDIR/test_seek $CTF_TRACES/succeed/wk-heartbeat-u/ 1351532897586558519 1351532897591331194
This page took 0.02506 seconds and 4 git commands to generate.