Skip to content

Commit

Permalink
2015-06-02 Steve Ellcey <sellcey@imgtec.com>
Browse files Browse the repository at this point in the history
	* test_installed (--target=): New option.


git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@224034 138bc75d-0d04-0410-961f-82ee72b054a4
  • Loading branch information
sje committed Jun 2, 2015
1 parent 5b9761f commit 8ad38f2
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 1 deletion.
4 changes: 4 additions & 0 deletions contrib/ChangeLog
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
2015-06-02 Steve Ellcey <sellcey@imgtec.com>

* test_installed (--target=): New option.

2015-05-30 Mikhail Maltsev <maltsevm@gmail.com>

* gimple.vim: New file.
Expand Down
9 changes: 8 additions & 1 deletion contrib/test_installed
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ while true; do
case "$1" in
--with-testsuite=*) testsuite=`echo "$1" | sed 's/[^=]*=//'`; shift;;
--srcdir=*) srcdir=`echo "$1" | sed 's/[^=]*=//'`; shift;;

--target=*) target=`echo "$1" | sed 's/[^=]*=//'`; shift;;
--prefix=*) prefix=`echo "$1" | sed 's/[^=]*=//'`; shift;;
--with-gcc=*) GCC_UNDER_TEST=`echo "$1" | sed 's/[^=]*=//'`; shift;;
--with-g++=*) GXX_UNDER_TEST=`echo "$1" | sed 's/[^=]*=//'`; shift;;
Expand All @@ -71,6 +71,9 @@ Supported arguments:
--srcdir=/some/dir same as --with-testsuite=/some/dir/gcc/testsuite
[deduced from shell-script pathname]
--target=triplet The target architecture of the compiler being
tested if different than the host.
--prefix=/some/dir use gcc, g++ and gfortran from /some/dir/bin [PATH]
--with-gcc=/some/dir/bin/gcc use specified gcc program [gcc]
--with-g++=/some/dir/bin/g++ use specified g++ program [g++]
Expand Down Expand Up @@ -112,6 +115,10 @@ set GXX_UNDER_TEST "${GXX_UNDER_TEST-${prefix}${prefix+/bin/}g++}"
set GFORTRAN_UNDER_TEST "${GFORTRAN_UNDER_TEST-${prefix}${prefix+/bin/}gfortran}"
set OBJC_UNDER_TEST "${OBJC_UNDER_TEST-${prefix}${prefix+/bin/}gcc}"
EOF
if test x${target} != x; then
echo "set target_triplet $target" >> site.exp
echo "set target_alias $target" >> site.exp
fi

test x"${GCC_UNDER_TEST}" = x"no" || runtest --tool gcc ${1+"$@"}
test x"${GXX_UNDER_TEST}" = x"no" || runtest --tool g++ ${1+"$@"}
Expand Down

0 comments on commit 8ad38f2

Please sign in to comment.