add basic_long test program
authorPierre-Marc Fournier <pierre-marc.fournier@polymtl.ca>
Tue, 8 Sep 2009 17:56:39 +0000 (13:56 -0400)
committerPierre-Marc Fournier <pierre-marc.fournier@polymtl.ca>
Tue, 8 Sep 2009 17:56:39 +0000 (13:56 -0400)
configure.ac
tests/Makefile.am
tests/basic_long/Makefile.am [new file with mode: 0644]
tests/basic_long/basic_long.c [new file with mode: 0644]
tests/basic_long/run [new file with mode: 0755]

index a8accce43802bb1e7181185a8b9c05ee337bc069..500765b74efc1244ee9c4627702cf9773c935d30 100644 (file)
@@ -81,6 +81,8 @@ AC_CONFIG_FILES([
        tests/Makefile
        tests/hello/Makefile
        tests/hello2/Makefile
+       tests/basic/Makefile
+       tests/basic_long/Makefile
        libmallocwrap/Makefile
        libinterfork/Makefile
        ustd/Makefile
index 0308483d31768ba09f7a52a8ea0be6bc41698b49..644b80f11a74970456c605552fe4d46856f62364 100644 (file)
@@ -1 +1 @@
-SUBDIRS = hello hello2
+SUBDIRS = hello hello2 basic basic_long
diff --git a/tests/basic_long/Makefile.am b/tests/basic_long/Makefile.am
new file mode 100644 (file)
index 0000000..219be7a
--- /dev/null
@@ -0,0 +1,9 @@
+INCLUDES = -I$(top_builddir)/share -I$(top_builddir)/libust \
+       $(KCOMPAT_CFLAGS) $(URCU_CFLAGS)
+
+noinst_PROGRAMS = basic_long
+basic_long_SOURCES = basic_long.c
+basic_long_LDADD = $(top_builddir)/libust/libust.la $(URCU_LIBS)
+
+noinst_SCRIPTS = run
+EXTRA_DIST = run
diff --git a/tests/basic_long/basic_long.c b/tests/basic_long/basic_long.c
new file mode 100644 (file)
index 0000000..29f26ef
--- /dev/null
@@ -0,0 +1,20 @@
+#include <stdio.h>
+#include <unistd.h>
+
+#include "marker.h"
+
+
+int main()
+{
+       printf("Basic test program\n");
+
+       for(;;) {
+               trace_mark(ust, bar, "str %s", "FOOBAZ");
+               trace_mark(ust, bar2, "number1 %d number2 %d", 53, 9800);
+               usleep(1000000);
+       }
+
+       return 0;
+}
+
+MARKER_LIB;
diff --git a/tests/basic_long/run b/tests/basic_long/run
new file mode 100755 (executable)
index 0000000..a137ed2
--- /dev/null
@@ -0,0 +1,8 @@
+#!/bin/sh
+
+# Run with nothing
+
+
+#LD_LIBRARY_PATH=../../libust/.libs:../../../liburcu $1 .libs/basic
+#UST_AUTOPROBE="/foo" LD_LIBRARY_PATH=../../libust/.libs:../../../liburcu $1 .libs/basic
+UST_AUTOPROBE=1 UST_TRACE=1 LD_LIBRARY_PATH=../../libust/.libs:../../../liburcu $1 .libs/basic_long
This page took 0.024922 seconds and 4 git commands to generate.