aboutsummaryrefslogtreecommitdiff
path: root/tests/run_tests.py
diff options
context:
space:
mode:
authorAndrew Hastings <abh@cray.com>2011-01-21 08:19:17 -0600
committerEric B Munson <emunson@mgebm.net>2011-02-23 14:28:50 -0500
commit319122ba1f31cf5804901ec078dab5491f9202be (patch)
treecac187a54cceea49c2d314c7b8584f24802ba039 /tests/run_tests.py
parent48b7ff1d536f63025e6b279be6798d167a4fa87a (diff)
downloadlibhugetlbfs-319122ba1f31cf5804901ec078dab5491f9202be.tar.gz
tests: add support for static linking
Add general support for static linking to the test suite. Build a static version of the shmoverride_linked test; this acts as a test case for a recent patch that allows shmget() to be used in static executables linked against libhugetlbfs. Correct runtests.py to run all cases of shmoverride: with and without LD_PRELOAD, with and without HUGETLB_SHM, with and without prelinking. Signed-off-by: Andrew Hastings <abh@cray.com> on behalf of Cray Inc. Signed-off-by: Eric B Munson <emunson@mgebm.net>
Diffstat (limited to 'tests/run_tests.py')
-rwxr-xr-xtests/run_tests.py4
1 files changed, 4 insertions, 0 deletions
diff --git a/tests/run_tests.py b/tests/run_tests.py
index 99f382a..27a94cb 100755
--- a/tests/run_tests.py
+++ b/tests/run_tests.py
@@ -597,7 +597,11 @@ def functional_tests():
# Test overriding of shmget()
do_shm_test("shmoverride_linked")
+ do_shm_test("shmoverride_linked", HUGETLB_SHM="yes")
+ do_shm_test("shmoverride_linked_static")
+ do_shm_test("shmoverride_linked_static", HUGETLB_SHM="yes")
do_shm_test("shmoverride_unlinked", LD_PRELOAD="libhugetlbfs.so")
+ do_shm_test("shmoverride_unlinked", LD_PRELOAD="libhugetlbfs.so", HUGETLB_SHM="yes")
# Test hugetlbfs filesystem quota accounting
do_test("quota.sh")