aboutsummaryrefslogtreecommitdiff
path: root/gold
diff options
context:
space:
mode:
authorIan Lance Taylor <iant@google.com>2007-09-22 23:36:01 +0000
committerIan Lance Taylor <iant@google.com>2007-09-22 23:36:01 +0000
commit56ba9a23db7ae4d13f36d87b94f691c9b96515ea (patch)
tree9601c7553eba039454088865ca6208d4958838ea /gold
parent22dc1b094d9ad4794c07aeb9b923d8fb0d51b161 (diff)
downloadgdb-56ba9a23db7ae4d13f36d87b94f691c9b96515ea.zip
gdb-56ba9a23db7ae4d13f36d87b94f691c9b96515ea.tar.gz
gdb-56ba9a23db7ae4d13f36d87b94f691c9b96515ea.tar.bz2
Rename t1 to basic_test, add static tests.
Diffstat (limited to 'gold')
-rw-r--r--gold/testsuite/Makefile.am22
-rw-r--r--gold/testsuite/Makefile.in23
-rw-r--r--gold/testsuite/basic_test.cc (renamed from gold/testsuite/t1.cc)0
3 files changed, 31 insertions, 14 deletions
diff --git a/gold/testsuite/Makefile.am b/gold/testsuite/Makefile.am
index 265717d..55f387d 100644
--- a/gold/testsuite/Makefile.am
+++ b/gold/testsuite/Makefile.am
@@ -16,7 +16,11 @@ INCLUDES = -D_GNU_SOURCE \
if GCC
if NATIVE_LINKER
-NATIVE_TESTING = t1 t1_pic
+NATIVE_TESTING = \
+ basic_test \
+ basic_pic_test \
+ basic_static_test \
+ basic_static_pic_test
endif
endif
@@ -40,15 +44,19 @@ gcctestdir/ld: ../ld-new
(cd gcctestdir && $(LN_S) ../../ld-new ld)
# Override the default CXXFLAGS--we don't want any optimization
-t1.o: t1.cc
+basic_test.o: basic_test.cc
$(CXXCOMPILE) -O0 -c -o $@ $<
-t1: t1.o gcctestdir/ld
- $(CXXLINK) -Bgcctestdir/ t1.o
+basic_test: basic_test.o gcctestdir/ld
+ $(CXXLINK) -Bgcctestdir/ basic_test.o
+basic_static_test: basic_test.o gcctestdir/ld
+ $(CXXLINK) -Bgcctestdir/ -static basic_test.o
-t1_pic.o: t1.cc
+basic_pic_test.o: basic_test.cc
$(CXXCOMPILE) -O0 -c -fpic -o $@ $<
-t1_pic: t1_pic.o gcctestdir/ld
- $(CXXLINK) -Bgcctestdir/ t1_pic.o
+basic_pic_test: basic_pic_test.o gcctestdir/ld
+ $(CXXLINK) -Bgcctestdir/ basic_pic_test.o
+basic_static_pic_test: basic_pic_test.o gcctestdir/ld
+ $(CXXLINK) -Bgcctestdir/ -static basic_pic_test.o
endif
endif
diff --git a/gold/testsuite/Makefile.in b/gold/testsuite/Makefile.in
index 28b7350..78933e9 100644
--- a/gold/testsuite/Makefile.in
+++ b/gold/testsuite/Makefile.in
@@ -208,7 +208,12 @@ INCLUDES = -D_GNU_SOURCE \
-DLOCALEDIR="\"$(datadir)/locale\"" \
@INCINTL@
-@GCC_TRUE@@NATIVE_LINKER_TRUE@NATIVE_TESTING = t1 t1_pic
+@GCC_TRUE@@NATIVE_LINKER_TRUE@NATIVE_TESTING = \
+@GCC_TRUE@@NATIVE_LINKER_TRUE@ basic_test \
+@GCC_TRUE@@NATIVE_LINKER_TRUE@ basic_pic_test \
+@GCC_TRUE@@NATIVE_LINKER_TRUE@ basic_static_test \
+@GCC_TRUE@@NATIVE_LINKER_TRUE@ basic_static_pic_test
+
TESTS = object_unittest $(NATIVE_TESTING)
check_LIBRARIES = libgoldtest.a
libgoldtest_a_SOURCES = test.cc testmain.cc testfile.cc
@@ -533,15 +538,19 @@ uninstall-am: uninstall-info-am
@GCC_TRUE@@NATIVE_LINKER_TRUE@ (cd gcctestdir && $(LN_S) ../../ld-new ld)
# Override the default CXXFLAGS--we don't want any optimization
-@GCC_TRUE@@NATIVE_LINKER_TRUE@t1.o: t1.cc
+@GCC_TRUE@@NATIVE_LINKER_TRUE@basic_test.o: basic_test.cc
@GCC_TRUE@@NATIVE_LINKER_TRUE@ $(CXXCOMPILE) -O0 -c -o $@ $<
-@GCC_TRUE@@NATIVE_LINKER_TRUE@t1: t1.o gcctestdir/ld
-@GCC_TRUE@@NATIVE_LINKER_TRUE@ $(CXXLINK) -Bgcctestdir/ t1.o
+@GCC_TRUE@@NATIVE_LINKER_TRUE@basic_test: basic_test.o gcctestdir/ld
+@GCC_TRUE@@NATIVE_LINKER_TRUE@ $(CXXLINK) -Bgcctestdir/ basic_test.o
+@GCC_TRUE@@NATIVE_LINKER_TRUE@basic_static_test: basic_test.o gcctestdir/ld
+@GCC_TRUE@@NATIVE_LINKER_TRUE@ $(CXXLINK) -Bgcctestdir/ -static basic_test.o
-@GCC_TRUE@@NATIVE_LINKER_TRUE@t1_pic.o: t1.cc
+@GCC_TRUE@@NATIVE_LINKER_TRUE@basic_pic_test.o: basic_test.cc
@GCC_TRUE@@NATIVE_LINKER_TRUE@ $(CXXCOMPILE) -O0 -c -fpic -o $@ $<
-@GCC_TRUE@@NATIVE_LINKER_TRUE@t1_pic: t1_pic.o gcctestdir/ld
-@GCC_TRUE@@NATIVE_LINKER_TRUE@ $(CXXLINK) -Bgcctestdir/ t1_pic.o
+@GCC_TRUE@@NATIVE_LINKER_TRUE@basic_pic_test: basic_pic_test.o gcctestdir/ld
+@GCC_TRUE@@NATIVE_LINKER_TRUE@ $(CXXLINK) -Bgcctestdir/ basic_pic_test.o
+@GCC_TRUE@@NATIVE_LINKER_TRUE@basic_static_pic_test: basic_pic_test.o gcctestdir/ld
+@GCC_TRUE@@NATIVE_LINKER_TRUE@ $(CXXLINK) -Bgcctestdir/ -static basic_pic_test.o
# Tell versions [3.59,3.63) of GNU make to not export all variables.
# Otherwise a system limit (for SysV at least) may be exceeded.
.NOEXPORT:
diff --git a/gold/testsuite/t1.cc b/gold/testsuite/basic_test.cc
index 795f049..795f049 100644
--- a/gold/testsuite/t1.cc
+++ b/gold/testsuite/basic_test.cc