mirror of git://gcc.gnu.org/git/gcc.git
abi.exp: Add multilib support.
* testsuite/libstdc++-abi/abi.exp: Add multilib support. * acinclude.m4 (GLIBCXX_CONFIGURE_TESTSUITE): Remove MULTISUBDIR from baseline_dir. * configure: Regenerate. * testsuite/Makefile.am (baseline_file): Remove variable. (site.exp): Set baseline_dir rather than baseline_file. (check-abi): Pass AM_RUNTESTFLAGS and RUNTESTFLAGS to runtest. * testsuite/Makefile.in: Regenerate. From-SVN: r144394
This commit is contained in:
parent
2604de9d9f
commit
68c512f66d
|
@ -1,3 +1,14 @@
|
||||||
|
2009-02-23 Adam Nemet <anemet@caviumnetworks.com>
|
||||||
|
|
||||||
|
* testsuite/libstdc++-abi/abi.exp: Add multilib support.
|
||||||
|
* acinclude.m4 (GLIBCXX_CONFIGURE_TESTSUITE): Remove MULTISUBDIR
|
||||||
|
from baseline_dir.
|
||||||
|
* configure: Regenerate.
|
||||||
|
* testsuite/Makefile.am (baseline_file): Remove variable.
|
||||||
|
(site.exp): Set baseline_dir rather than baseline_file.
|
||||||
|
(check-abi): Pass AM_RUNTESTFLAGS and RUNTESTFLAGS to runtest.
|
||||||
|
* testsuite/Makefile.in: Regenerate.
|
||||||
|
|
||||||
2009-02-20 Benjamin Kosnik <bkoz@redhat.com>
|
2009-02-20 Benjamin Kosnik <bkoz@redhat.com>
|
||||||
|
|
||||||
* testsuite/30_threads/thread/this_thread: Move...
|
* testsuite/30_threads/thread/this_thread: Move...
|
||||||
|
|
|
@ -638,7 +638,7 @@ AC_DEFUN([GLIBCXX_CONFIGURE_TESTSUITE], [
|
||||||
fi
|
fi
|
||||||
|
|
||||||
# Export file names for ABI checking.
|
# Export file names for ABI checking.
|
||||||
baseline_dir="$glibcxx_srcdir/config/abi/post/${abi_baseline_pair}\$(MULTISUBDIR)"
|
baseline_dir="$glibcxx_srcdir/config/abi/post/${abi_baseline_pair}"
|
||||||
AC_SUBST(baseline_dir)
|
AC_SUBST(baseline_dir)
|
||||||
])
|
])
|
||||||
|
|
||||||
|
|
|
@ -117983,7 +117983,7 @@ done
|
||||||
fi
|
fi
|
||||||
|
|
||||||
# Export file names for ABI checking.
|
# Export file names for ABI checking.
|
||||||
baseline_dir="$glibcxx_srcdir/config/abi/post/${abi_baseline_pair}\$(MULTISUBDIR)"
|
baseline_dir="$glibcxx_srcdir/config/abi/post/${abi_baseline_pair}"
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
|
@ -58,7 +58,7 @@ site.exp: Makefile
|
||||||
@echo 'set target_triplet $(target_triplet)' >>site.tmp
|
@echo 'set target_triplet $(target_triplet)' >>site.tmp
|
||||||
@echo 'set target_triplet $(target_triplet)' >>site.tmp
|
@echo 'set target_triplet $(target_triplet)' >>site.tmp
|
||||||
@echo 'set libiconv "$(LIBICONV)"' >>site.tmp
|
@echo 'set libiconv "$(LIBICONV)"' >>site.tmp
|
||||||
@echo 'set baseline_file "$(baseline_file)"' >> site.tmp
|
@echo 'set baseline_dir "$(baseline_dir)"' >> site.tmp
|
||||||
@echo '## All variables above are generated by configure. Do Not Edit ##' >>site.tmp
|
@echo '## All variables above are generated by configure. Do Not Edit ##' >>site.tmp
|
||||||
@test ! -f site.exp || \
|
@test ! -f site.exp || \
|
||||||
sed '1,/^## All variables above are.*##/ d' site.exp >> site.tmp
|
sed '1,/^## All variables above are.*##/ d' site.exp >> site.tmp
|
||||||
|
@ -67,7 +67,6 @@ site.exp: Makefile
|
||||||
@mv site.tmp site.exp
|
@mv site.tmp site.exp
|
||||||
|
|
||||||
|
|
||||||
baseline_file = ${baseline_dir}/baseline_symbols.txt
|
|
||||||
extract_symvers = $(glibcxx_srcdir)/scripts/extract_symvers
|
extract_symvers = $(glibcxx_srcdir)/scripts/extract_symvers
|
||||||
|
|
||||||
baseline_symbols:
|
baseline_symbols:
|
||||||
|
@ -165,7 +164,7 @@ check-am:
|
||||||
# Use 'new-abi-baseline' to create an initial symbol file. Then run
|
# Use 'new-abi-baseline' to create an initial symbol file. Then run
|
||||||
# 'check-abi' to test for changes against that file.
|
# 'check-abi' to test for changes against that file.
|
||||||
check-abi: site.exp baseline_symbols
|
check-abi: site.exp baseline_symbols
|
||||||
-@runtest --tool libstdc++ abi.exp
|
-@runtest $(AM_RUNTESTFLAGS) --tool libstdc++ $(RUNTESTFLAGS) abi.exp
|
||||||
|
|
||||||
# Runs the testsuite, but in compile only mode.
|
# Runs the testsuite, but in compile only mode.
|
||||||
# Can be used to test sources with non-GNU FE's at various warning
|
# Can be used to test sources with non-GNU FE's at various warning
|
||||||
|
|
|
@ -299,7 +299,6 @@ lists_of_files = \
|
||||||
testsuite_files_interactive \
|
testsuite_files_interactive \
|
||||||
testsuite_files_performance
|
testsuite_files_performance
|
||||||
|
|
||||||
baseline_file = ${baseline_dir}/baseline_symbols.txt
|
|
||||||
extract_symvers = $(glibcxx_srcdir)/scripts/extract_symvers
|
extract_symvers = $(glibcxx_srcdir)/scripts/extract_symvers
|
||||||
check_DEJAGNU_normal_targets = $(patsubst %,check-DEJAGNUnormal%,0 1 2 3)
|
check_DEJAGNU_normal_targets = $(patsubst %,check-DEJAGNUnormal%,0 1 2 3)
|
||||||
|
|
||||||
|
@ -517,7 +516,7 @@ site.exp: Makefile
|
||||||
@echo 'set target_triplet $(target_triplet)' >>site.tmp
|
@echo 'set target_triplet $(target_triplet)' >>site.tmp
|
||||||
@echo 'set target_triplet $(target_triplet)' >>site.tmp
|
@echo 'set target_triplet $(target_triplet)' >>site.tmp
|
||||||
@echo 'set libiconv "$(LIBICONV)"' >>site.tmp
|
@echo 'set libiconv "$(LIBICONV)"' >>site.tmp
|
||||||
@echo 'set baseline_file "$(baseline_file)"' >> site.tmp
|
@echo 'set baseline_dir "$(baseline_dir)"' >> site.tmp
|
||||||
@echo '## All variables above are generated by configure. Do Not Edit ##' >>site.tmp
|
@echo '## All variables above are generated by configure. Do Not Edit ##' >>site.tmp
|
||||||
@test ! -f site.exp || \
|
@test ! -f site.exp || \
|
||||||
sed '1,/^## All variables above are.*##/ d' site.exp >> site.tmp
|
sed '1,/^## All variables above are.*##/ d' site.exp >> site.tmp
|
||||||
|
@ -618,7 +617,7 @@ check-am:
|
||||||
# Use 'new-abi-baseline' to create an initial symbol file. Then run
|
# Use 'new-abi-baseline' to create an initial symbol file. Then run
|
||||||
# 'check-abi' to test for changes against that file.
|
# 'check-abi' to test for changes against that file.
|
||||||
check-abi: site.exp baseline_symbols
|
check-abi: site.exp baseline_symbols
|
||||||
-@runtest --tool libstdc++ abi.exp
|
-@runtest $(AM_RUNTESTFLAGS) --tool libstdc++ $(RUNTESTFLAGS) abi.exp
|
||||||
check-compile: testsuite_files ${compile_script}
|
check-compile: testsuite_files ${compile_script}
|
||||||
-@(chmod + ${compile_script}; \
|
-@(chmod + ${compile_script}; \
|
||||||
${compile_script} ${glibcxx_srcdir} ${glibcxx_builddir})
|
${compile_script} ${glibcxx_srcdir} ${glibcxx_builddir})
|
||||||
|
|
|
@ -18,18 +18,32 @@
|
||||||
# this test. Or, hey, if we don't support this kind of symbol
|
# this test. Or, hey, if we don't support this kind of symbol
|
||||||
# versioning test: don't run it.
|
# versioning test: don't run it.
|
||||||
|
|
||||||
|
set lib $blddir/src/.libs/libstdc++.so
|
||||||
|
set baseline_subdir "[eval exec $cxx --print-multi-dir]"
|
||||||
|
|
||||||
# Build the support objects.
|
# Build the support objects.
|
||||||
v3-build_support
|
v3-build_support
|
||||||
|
|
||||||
if { (${v3-symver} == 0) || ![info exists baseline_file] \
|
if { (${v3-symver} == 0) || ![info exists baseline_dir] \
|
||||||
|| ![file exists $baseline_file] \
|
|| ![file exists $baseline_dir] \
|
||||||
|| ![file exists "../src/.libs/libstdc++.so"] } {
|
|| ![file exists $lib] } {
|
||||||
return
|
return
|
||||||
}
|
}
|
||||||
|
|
||||||
|
set baseline_file \
|
||||||
|
[file join $baseline_dir $baseline_subdir "baseline_symbols.txt"]
|
||||||
|
# If there is no ABI-specific reference file use that of the default ABI.
|
||||||
|
if ![file exists $baseline_file] {
|
||||||
|
set baseline_file [file join $baseline_dir "baseline_symbols.txt"]
|
||||||
|
}
|
||||||
|
if ![file exists $baseline_file] {
|
||||||
|
return
|
||||||
|
}
|
||||||
|
send_log "Checking $lib against $baseline_file\n"
|
||||||
|
|
||||||
# Figure out what symbols are defined by the active build of the library.
|
# Figure out what symbols are defined by the active build of the library.
|
||||||
remote_exec "build" "$srcdir/../scripts/extract_symvers" \
|
remote_exec "build" "$srcdir/../scripts/extract_symvers" \
|
||||||
[list "../src/.libs/libstdc++.so" "current_symbols.txt"]
|
[list $lib "current_symbols.txt"]
|
||||||
|
|
||||||
# Build the abi_check program.
|
# Build the abi_check program.
|
||||||
if { [v3_target_compile "$srcdir/util/testsuite_abi_check.cc" "abi_check" \
|
if { [v3_target_compile "$srcdir/util/testsuite_abi_check.cc" "abi_check" \
|
||||||
|
|
Loading…
Reference in New Issue