Fix: make benchmark test run in oot build
authorMichael Jeanson <mjeanson@efficios.com>
Tue, 30 Jun 2015 15:04:14 +0000 (11:04 -0400)
committerMathieu Desnoyers <mathieu.desnoyers@efficios.com>
Tue, 30 Jun 2015 15:14:11 +0000 (11:14 -0400)
Signed-off-by: Michael Jeanson <mjeanson@efficios.com>
Signed-off-by: Mathieu Desnoyers <mathieu.desnoyers@efficios.com>
tests/benchmark/Makefile.am
tests/benchmark/common.sh [changed mode: 0644->0755]
tests/benchmark/runpaul-phase5.sh [changed mode: 0644->0755]
tests/benchmark/runpaul-phase6.sh [changed mode: 0644->0755]

index 85d454d829de1b64fb34db503e369d91ec294f10..e25dd8f545da17fb1ac617b70baf921ad52e640e 100644 (file)
@@ -3,6 +3,22 @@ AM_LDFLAGS=-lpthread
 endif
 AM_CFLAGS=-I$(top_srcdir) -I$(top_builddir) -I$(top_srcdir)/tests/common -g
 
+SCRIPT_LIST = common.sh \
+       runall.sh \
+       runhash.sh \
+       runtests.sh \
+       runpaul-phase1.sh \
+       runpaul-phase2.sh \
+       runpaul-phase3.sh \
+       runpaul-phase4.sh \
+       runpaul-phase5.sh \
+       runpaul-phase6.sh \
+       runpaul-phase7.sh \
+       runtests-batch.sh \
+       subphase4.sh
+
+dist_noinst_SCRIPTS = $(SCRIPT_LIST)
+
 noinst_PROGRAMS = test_urcu test_urcu_dynamic_link test_urcu_timing \
        test_urcu_signal test_urcu_signal_dynamic_link test_urcu_signal_timing \
         test_rwlock_timing test_rwlock test_perthreadlock_timing \
@@ -32,8 +48,6 @@ URCU_CDS_LIB=$(top_builddir)/liburcu-cds.la
 
 DEBUG_YIELD_LIB=$(builddir)/../common/libdebug-yield.la
 
-EXTRA_DIST = *.sh
-
 test_urcu_SOURCES = test_urcu.c
 test_urcu_LDADD = $(URCU_LIB)
 
@@ -194,6 +208,20 @@ test_urcu_hash_SOURCES = test_urcu_hash.c test_urcu_hash.h \
 test_urcu_hash_CFLAGS = -DRCU_QSBR $(AM_CFLAGS)
 test_urcu_hash_LDADD = $(URCU_QSBR_LIB) $(URCU_COMMON_LIB) $(URCU_CDS_LIB)
 
+all-local:
+       @if [ x"$(srcdir)" != x"$(builddir)" ]; then \
+               for script in $(SCRIPT_LIST); do \
+                       cp -f $(srcdir)/$$script $(builddir); \
+               done; \
+       fi
+
+clean-local:
+       @if [ x"$(srcdir)" != x"$(builddir)" ]; then \
+               for script in $(SCRIPT_LIST); do \
+                       rm -f $(builddir)/$$script; \
+               done; \
+       fi
+
 .PHONY: bench
 
 bench:
old mode 100644 (file)
new mode 100755 (executable)
old mode 100644 (file)
new mode 100755 (executable)
old mode 100644 (file)
new mode 100755 (executable)
This page took 0.035029 seconds and 4 git commands to generate.