summaryrefslogtreecommitdiffstats
path: root/extras/test/ld-preload-test/test-preload.sh
diff options
context:
space:
mode:
authorShehjar Tikoo <shehjart@gluster.com>2009-09-15 01:03:56 +0000
committerAnand V. Avati <avati@dev.gluster.com>2009-09-15 00:01:50 -0700
commita5f0b3d7d1b23053ce9327be91323e92ce554b32 (patch)
treed9aee1e46b23b3b40c26c8da1501fe2d3ac9e5cf /extras/test/ld-preload-test/test-preload.sh
parentad33df39dec4850c249c453822a99b3038b41389 (diff)
extras: Add LD_PRELOAD test tool
This tool allows us to check the sanity of the LD_PRELOAD mechanism so that we can be sure that an application's syscalls will be redirected into booster when that library is LD_PRELOADed. In case of failed syscalls, this tool should be run first to see if the calls are redirected as required. Signed-off-by: Anand V. Avati <avati@dev.gluster.com> BUG: 251 (Improve booster debugging through ld-preload testing tool) URL: http://bugs.gluster.com/cgi-bin/bugzilla3/show_bug.cgi?id=251
Diffstat (limited to 'extras/test/ld-preload-test/test-preload.sh')
-rwxr-xr-xextras/test/ld-preload-test/test-preload.sh7
1 files changed, 7 insertions, 0 deletions
diff --git a/extras/test/ld-preload-test/test-preload.sh b/extras/test/ld-preload-test/test-preload.sh
new file mode 100755
index 000000000..faed5cee3
--- /dev/null
+++ b/extras/test/ld-preload-test/test-preload.sh
@@ -0,0 +1,7 @@
+#!/bin/sh
+
+echo "Testing 32-bit offsets build"
+LD_PRELOAD="$(pwd)/ld-preload-lib.so" $(pwd)/ld-preload-test32 --path /tmp/testfile
+echo
+echo "Testing 64-bit offsets build"
+LD_PRELOAD="$(pwd)/ld-preload-lib.so" $(pwd)/ld-preload-test64 --path /tmp/testfile