aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAndrew Hastings <abh@cray.com>2010-12-28 15:56:34 -0600
committerEric B Munson <emunson@mgebm.net>2011-01-21 14:09:27 -0700
commit0c460f66d8500909b1ecc1b57263f49fabbff889 (patch)
tree46cac8557f561aa4dcde88b62749b00ba7dbefa3
parent23baae5c1b660068dd7bc8d8f236d901e6492bae (diff)
downloadlibhugetlbfs-0c460f66d8500909b1ecc1b57263f49fabbff889.tar.gz
tests/Makefile: add missing tests
Fix the libhugetlbfs test Makefile so the built-in test suite can correctly install and run the tests. - Several tests that require a wrapper are not in the general list of tests. They must be listed there for the wrapper Makefile code to operate correctly. - The test driver is now a python script, but the installer was still looking for a differently named bash script. Patch originally authored by Dean Luick <luick@cray.com>. Signed-off-by: Andrew Hastings <abh@cray.com> on behalf of Cray Inc. Signed-off-by: Eric B Munson <emunson@mgebm.net>
-rw-r--r--tests/Makefile9
1 files changed, 6 insertions, 3 deletions
diff --git a/tests/Makefile b/tests/Makefile
index 3ed52a9..7364fdb 100644
--- a/tests/Makefile
+++ b/tests/Makefile
@@ -10,7 +10,9 @@ LIB_TESTS = gethugepagesize test_root find_path unlinked_fd misalign \
counters quota heap-overflow get_huge_pages get_hugepage_region \
shmoverride_linked gethugepagesizes \
madvise_reserve fadvise_reserve readahead_reserve \
- shm-perms
+ shm-perms \
+ mremap-expand-slice-collision \
+ mremap-fixed-normal-near-huge mremap-fixed-huge-near-normal
LIB_TESTS_64 = straddle_4GB huge_at_4GB_normal_below \
huge_below_4GB_normal_above
NOLIB_TESTS = malloc malloc_manysmall dummy heapshrink shmoverride_unlinked
@@ -18,6 +20,7 @@ LDSCRIPT_TESTS = zero_filesize_segment
HUGELINK_TESTS = linkhuge linkhuge_nofd linkshare
HUGELINK_RW_TESTS = linkhuge_rw
STRESS_TESTS = mmap-gettest mmap-cow shm-gettest shm-getraw shm-fork
+# NOTE: all named tests in WRAPPERS must also be named in TESTS
WRAPPERS = quota counters madvise_reserve fadvise_reserve \
readahead_reserve mremap-expand-slice-collision \
mremap-fixed-normal-near-huge mremap-fixed-huge-near-normal
@@ -233,7 +236,7 @@ obj32/install:
$(INSTALL) -m 755 wrapper-utils.sh $(DESTDIR)$(INST_TESTSDIR32)/obj32
$(INSTALL) -m 755 $(HELPERS:%=obj32/%) $(DESTDIR)$(INST_TESTSDIR32)/obj32
$(INSTALL) -m 755 $(HELPER_LIBS:%=obj32/%) $(DESTDIR)$(INST_TESTSDIR32)/obj32
- $(INSTALL) -m 755 run_tests.sh $(DESTDIR)$(INST_TESTSDIR32)
+ $(INSTALL) -m 755 run_tests.py $(DESTDIR)$(INST_TESTSDIR32)
obj64/install:
@$(VECHO) INSTALL64 $(INST_TESTSDIR64)
@@ -245,6 +248,6 @@ obj64/install:
$(INSTALL) -m 755 $(HELPERS:%=obj64/%) $(DESTDIR)$(INST_TESTSDIR64)/obj64
$(INSTALL) -m 755 $(HELPER_LIBS:%=obj64/%) $(DESTDIR)$(INST_TESTSDIR64)/obj64
$(INSTALL) -m 755 $(TESTS_64:%=obj64/%) $(DESTDIR)$(INST_TESTSDIR64)/obj64
- $(INSTALL) -m 755 run_tests.sh $(DESTDIR)$(INST_TESTSDIR64)
+ $(INSTALL) -m 755 run_tests.py $(DESTDIR)$(INST_TESTSDIR64)
install: $(OBJDIRS:%=%/install)