mirror of git://gcc.gnu.org/git/gcc.git
gotest: fix handling of --goarch option
I managed to add a new --goarch option to gotest without noticing that
the script already had one. Worse, they set different variables.
Remove the old option in favor of the new one.
Reviewed-on: https://go-review.googlesource.com/16613
From-SVN: r229734
This commit is contained in:
parent
bfd4a4de7d
commit
aa3ba34fba
|
|
@ -1,4 +1,4 @@
|
||||||
10e0f935ac369f8403c198b05c909e42e565c1e5
|
47f256e1ed527b2eb4041acf90d33e6abc5e1685
|
||||||
|
|
||||||
The first line of this file holds the git revision number of the last
|
The first line of this file holds the git revision number of the last
|
||||||
merge done from the gofrontend repository.
|
merge done from the gofrontend repository.
|
||||||
|
|
|
||||||
|
|
@ -2344,11 +2344,11 @@ CHECK = \
|
||||||
$(MKDIR_P) $(@D); \
|
$(MKDIR_P) $(@D); \
|
||||||
rm -f $@-testsum $@-testlog; \
|
rm -f $@-testsum $@-testlog; \
|
||||||
if test "$(USE_DEJAGNU)" = "yes"; then \
|
if test "$(USE_DEJAGNU)" = "yes"; then \
|
||||||
$(SHELL) $(srcdir)/testsuite/gotest --goarch=$(GOARCH) --goos=$(GOOS) --dejagnu=yes --basedir=$(srcdir) --srcdir=$(srcdir)/go/$(@D) --pkgpath="$(@D)" --pkgfiles="$(go_$(subst /,_,$(@D))_files)" --testname="$(@D)" --goarch="$(GOARCH)" $(GOTESTFLAGS) $(go_$(subst /,_,$(@D))_test_files); \
|
$(SHELL) $(srcdir)/testsuite/gotest --goarch=$(GOARCH) --goos=$(GOOS) --dejagnu=yes --basedir=$(srcdir) --srcdir=$(srcdir)/go/$(@D) --pkgpath="$(@D)" --pkgfiles="$(go_$(subst /,_,$(@D))_files)" --testname="$(@D)" $(GOTESTFLAGS) $(go_$(subst /,_,$(@D))_test_files); \
|
||||||
elif test "$(GOBENCH)" != ""; then \
|
elif test "$(GOBENCH)" != ""; then \
|
||||||
$(SHELL) $(srcdir)/testsuite/gotest --goarch=$(GOARCH) --goos=$(GOOS) --basedir=$(srcdir) --srcdir=$(srcdir)/go/$(@D) --pkgpath="$(@D)" --pkgfiles="$(go_$(subst /,_,$(@D))_files)" --goarch="$(GOARCH)" --bench="$(GOBENCH)" $(GOTESTFLAGS) $(go_$(subst /,_,$(@D))_test_files); \
|
$(SHELL) $(srcdir)/testsuite/gotest --goarch=$(GOARCH) --goos=$(GOOS) --basedir=$(srcdir) --srcdir=$(srcdir)/go/$(@D) --pkgpath="$(@D)" --pkgfiles="$(go_$(subst /,_,$(@D))_files)" --bench="$(GOBENCH)" $(GOTESTFLAGS) $(go_$(subst /,_,$(@D))_test_files); \
|
||||||
else \
|
else \
|
||||||
if $(SHELL) $(srcdir)/testsuite/gotest --goarch=$(GOARCH) --goos=$(GOOS) --basedir=$(srcdir) --srcdir=$(srcdir)/go/$(@D) --pkgpath="$(@D)" --pkgfiles="$(go_$(subst /,_,$(@D))_files)" --goarch="$(GOARCH)" $(GOTESTFLAGS) $(go_$(subst /,_,$(@D))_test_files) >>$@-testlog 2>&1; then \
|
if $(SHELL) $(srcdir)/testsuite/gotest --goarch=$(GOARCH) --goos=$(GOOS) --basedir=$(srcdir) --srcdir=$(srcdir)/go/$(@D) --pkgpath="$(@D)" --pkgfiles="$(go_$(subst /,_,$(@D))_files)" $(GOTESTFLAGS) $(go_$(subst /,_,$(@D))_test_files) >>$@-testlog 2>&1; then \
|
||||||
echo "PASS: $(@D)" >> $@-testlog; \
|
echo "PASS: $(@D)" >> $@-testlog; \
|
||||||
echo "PASS: $(@D)"; \
|
echo "PASS: $(@D)"; \
|
||||||
echo "PASS: $(@D)" > $@-testsum; \
|
echo "PASS: $(@D)" > $@-testsum; \
|
||||||
|
|
|
||||||
|
|
@ -2371,11 +2371,11 @@ CHECK = \
|
||||||
$(MKDIR_P) $(@D); \
|
$(MKDIR_P) $(@D); \
|
||||||
rm -f $@-testsum $@-testlog; \
|
rm -f $@-testsum $@-testlog; \
|
||||||
if test "$(USE_DEJAGNU)" = "yes"; then \
|
if test "$(USE_DEJAGNU)" = "yes"; then \
|
||||||
$(SHELL) $(srcdir)/testsuite/gotest --goarch=$(GOARCH) --goos=$(GOOS) --dejagnu=yes --basedir=$(srcdir) --srcdir=$(srcdir)/go/$(@D) --pkgpath="$(@D)" --pkgfiles="$(go_$(subst /,_,$(@D))_files)" --testname="$(@D)" --goarch="$(GOARCH)" $(GOTESTFLAGS) $(go_$(subst /,_,$(@D))_test_files); \
|
$(SHELL) $(srcdir)/testsuite/gotest --goarch=$(GOARCH) --goos=$(GOOS) --dejagnu=yes --basedir=$(srcdir) --srcdir=$(srcdir)/go/$(@D) --pkgpath="$(@D)" --pkgfiles="$(go_$(subst /,_,$(@D))_files)" --testname="$(@D)" $(GOTESTFLAGS) $(go_$(subst /,_,$(@D))_test_files); \
|
||||||
elif test "$(GOBENCH)" != ""; then \
|
elif test "$(GOBENCH)" != ""; then \
|
||||||
$(SHELL) $(srcdir)/testsuite/gotest --goarch=$(GOARCH) --goos=$(GOOS) --basedir=$(srcdir) --srcdir=$(srcdir)/go/$(@D) --pkgpath="$(@D)" --pkgfiles="$(go_$(subst /,_,$(@D))_files)" --goarch="$(GOARCH)" --bench="$(GOBENCH)" $(GOTESTFLAGS) $(go_$(subst /,_,$(@D))_test_files); \
|
$(SHELL) $(srcdir)/testsuite/gotest --goarch=$(GOARCH) --goos=$(GOOS) --basedir=$(srcdir) --srcdir=$(srcdir)/go/$(@D) --pkgpath="$(@D)" --pkgfiles="$(go_$(subst /,_,$(@D))_files)" --bench="$(GOBENCH)" $(GOTESTFLAGS) $(go_$(subst /,_,$(@D))_test_files); \
|
||||||
else \
|
else \
|
||||||
if $(SHELL) $(srcdir)/testsuite/gotest --goarch=$(GOARCH) --goos=$(GOOS) --basedir=$(srcdir) --srcdir=$(srcdir)/go/$(@D) --pkgpath="$(@D)" --pkgfiles="$(go_$(subst /,_,$(@D))_files)" --goarch="$(GOARCH)" $(GOTESTFLAGS) $(go_$(subst /,_,$(@D))_test_files) >>$@-testlog 2>&1; then \
|
if $(SHELL) $(srcdir)/testsuite/gotest --goarch=$(GOARCH) --goos=$(GOOS) --basedir=$(srcdir) --srcdir=$(srcdir)/go/$(@D) --pkgpath="$(@D)" --pkgfiles="$(go_$(subst /,_,$(@D))_files)" $(GOTESTFLAGS) $(go_$(subst /,_,$(@D))_test_files) >>$@-testlog 2>&1; then \
|
||||||
echo "PASS: $(@D)" >> $@-testlog; \
|
echo "PASS: $(@D)" >> $@-testlog; \
|
||||||
echo "PASS: $(@D)"; \
|
echo "PASS: $(@D)"; \
|
||||||
echo "PASS: $(@D)" > $@-testsum; \
|
echo "PASS: $(@D)" > $@-testsum; \
|
||||||
|
|
|
||||||
|
|
@ -35,7 +35,6 @@ keep=false
|
||||||
pkgpath=
|
pkgpath=
|
||||||
prefix=
|
prefix=
|
||||||
dejagnu=no
|
dejagnu=no
|
||||||
GOARCH=""
|
|
||||||
timeout=240
|
timeout=240
|
||||||
testname=""
|
testname=""
|
||||||
bench=""
|
bench=""
|
||||||
|
|
@ -118,15 +117,6 @@ while $loop; do
|
||||||
dejagnu=`echo $1 | sed -e 's/^--dejagnu=//'`
|
dejagnu=`echo $1 | sed -e 's/^--dejagnu=//'`
|
||||||
shift
|
shift
|
||||||
;;
|
;;
|
||||||
x--goarch)
|
|
||||||
GOARCH=$2
|
|
||||||
shift
|
|
||||||
shift
|
|
||||||
;;
|
|
||||||
x--goarch=*)
|
|
||||||
GOARCH=`echo $1 | sed -e 's/^--goarch=//'`
|
|
||||||
shift
|
|
||||||
;;
|
|
||||||
x--timeout)
|
x--timeout)
|
||||||
timeout=$2
|
timeout=$2
|
||||||
shift
|
shift
|
||||||
|
|
@ -496,7 +486,7 @@ localname() {
|
||||||
|
|
||||||
{
|
{
|
||||||
text="T"
|
text="T"
|
||||||
case "$GOARCH" in
|
case "$goarch" in
|
||||||
ppc64*) text="[TD]" ;;
|
ppc64*) text="[TD]" ;;
|
||||||
esac
|
esac
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue