From 56ba9a23db7ae4d13f36d87b94f691c9b96515ea Mon Sep 17 00:00:00 2001 From: Ian Lance Taylor Date: Sat, 22 Sep 2007 23:36:01 +0000 Subject: [PATCH] Rename t1 to basic_test, add static tests. --- gold/testsuite/Makefile.am | 22 +++++++++++++++------- gold/testsuite/Makefile.in | 23 ++++++++++++++++------- gold/testsuite/{t1.cc => basic_test.cc} | 0 3 files changed, 31 insertions(+), 14 deletions(-) rename gold/testsuite/{t1.cc => basic_test.cc} (100%) diff --git a/gold/testsuite/Makefile.am b/gold/testsuite/Makefile.am index 265717d6829..55f387d1d03 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 28b7350d8ca..78933e9b506 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 similarity index 100% rename from gold/testsuite/t1.cc rename to gold/testsuite/basic_test.cc -- 2.30.2