On 02.03.2007 [15:12:06 -0800], Nishanth Aravamudan wrote:
> Makefile: add ia64, sparc64 support for functional tests only
>
> Add simple support for ia64 and sparc64. We avoid doing the relink tests
> by adding another environment variable which only ia64 and sparc64
> define, which is checked in tests/Makefile. Also, explicitly fail to
> build on other architectures rather than silently doing nothing.
Makefile: add ia64, sparc64 support for functional tests only
Add simple support for ia64 and sparc64. We avoid doing the relink and
malloc tests by adding environment variables only defined for ia64 and
sparc64, which then are checked in tests/Makefile. Also, explicitly fail
to build on other architectures rather than silently doing nothing.
Finally, remove the unused dummy test from the Makefile and
run_tests.sh.
Signed-off-by: Nishanth Aravamudan <[EMAIL PROTECTED]>
---
Hrm, this is still going to be incomplete, as we really probably want
the slice/end functions in first, before this is applied, so we do the
right thing on ia64, at least. I could meanwhile add a flag in for
disabling morecore tests too, I suppose.
diff --git a/Makefile b/Makefile
index d169042..3af791c 100644
--- a/Makefile
+++ b/Makefile
@@ -48,6 +48,22 @@ ifneq ($(BUILDTYPE),NATIVEONLY)
CC32 = gcc -m32
ELF32 = elf_i386
endif
+else
+ifeq ($(ARCH),ia64)
+CC64 = gcc
+LIB64 = lib64
+ARCH_RELINK_NOT_SUPPORTED = 1
+ARCH_MORECORE_NOT_SUPPORTED = 1
+else
+ifeq ($(ARCH),sparc64)
+CC64 = gcc -m64
+LIB64 = lib64
+ARCH_RELINK_NOT_SUPPORTED = 1
+ARCH_MORECORE_NOT_SUPPORTED = 1
+else
+$(error "Unrecognized architecture ($(ARCH))")
+endif
+endif
endif
endif
endif
@@ -91,6 +107,8 @@ export ELF32
export ELF64
export LIBDIR32
export LIBDIR64
+export ARCH_RELINK_NOT_SUPPORTED
+export ARCH_MORECORE_NOT_SUPPORTED
all: libs tests
diff --git a/tests/Makefile b/tests/Makefile
index 6939784..fd866c9 100644
--- a/tests/Makefile
+++ b/tests/Makefile
@@ -9,7 +9,7 @@ LIB_TESTS = gethugepagesize test_root find_path unlinked_fd \
misaligned_offset brk_near_huge task-size-overrun stack_grow_into_huge
LIB_TESTS_64 = straddle_4GB huge_at_4GB_normal_below \
huge_below_4GB_normal_above
-NOLIB_TESTS = malloc malloc_manysmall dummy
+MORECORE_TESTS = malloc malloc_manysmall
LDSCRIPT_TESTS = zero_filesize_segment
HUGELINK_TESTS = linkhuge linkhuge_nofd linkshare
STRESS_TESTS = mmap-gettest mmap-cow shm-gettest shm-getraw shm-fork
@@ -22,9 +22,14 @@ LDFLAGS32 = -L../obj32
LDFLAGS64 = -L../obj64
INSTALL = install
-TESTS = $(LIB_TESTS) $(NOLIB_TESTS) $(LDSCRIPT_TESTS) $(HUGELINK_TESTS) \
- $(HUGELINK_TESTS:%=xB.%) $(HUGELINK_TESTS:%=xBDT.%) \
- $(STRESS_TESTS)
+TESTS = $(LIB_TESTS) $(LDSCRIPT_TESTS) $(STRESS_TESTS)
+
+ifndef ARCH_MORECORE_NOT_SUPPORTED
+TESTS += $(MORECORE_TESTS)
+endif
+ifndef ARCH_RELINK_NOT_SUPPORTED
+TESTS += $(HUGELINK_TESTS) $(HUGELINK_TESTS:%=xB.%) $(HUGELINK_TESTS:%=xBDT.%)
+endif
TESTS_64 = $(LIB_TESTS_64)
diff --git a/tests/run_tests.sh b/tests/run_tests.sh
index 3ab4532..6b6f1bb 100755
--- a/tests/run_tests.sh
+++ b/tests/run_tests.sh
@@ -125,7 +125,6 @@ restore_shm_sysctl() {
}
functional_tests () {
- #run_test dummy
# Kernel background tests not requiring hugepage support
run_test zero_filesize_segment
--
Nishanth Aravamudan <[EMAIL PROTECTED]>
IBM Linux Technology Center
-------------------------------------------------------------------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys-and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
_______________________________________________
Libhugetlbfs-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/libhugetlbfs-devel