aboutsummaryrefslogtreecommitdiff
path: root/gcc/testsuite/go.test
AgeCommit message (Collapse)AuthorFilesLines
2016-03-04S/390: Set GOARCH to the current target when testing multiarch.Dominik Vogt1-5/+6
The attached patch fixes a test failure of go.test/test/env.go on s390x biarch. Bootstrapped and regression tested on s390x biarch and s390. gcc/testsuite/ChangeLog 2016-03-04 Dominik Vogt <vogt@linux.vnet.ibm.com> PR testsuite/69766 * go.test/go-test.exp: S/390: Set GOARCH to the current target when testing multiarch. From-SVN: r233959
2016-01-04Update copyright years.Jakub Jelinek1-1/+1
From-SVN: r232055
2015-11-21re PR go/66406 (go.test/test/nilptr.go FAILs with PIE)Ian Lance Taylor1-0/+5
PR go/66406 * go.test/go-test.exp (go-gc-tests): Skip nilptr.go if PIE. From-SVN: r230697
2015-10-06compiler: Record each import as a distinct alias.Ian Lance Taylor2-3/+3
This patch introduces the Package_alias class which is a finer representation of the different between a package and the aliases it is imported under. Each alias keeps track of the location of its import statement and how many times that alias has been used. This allows the gofrontend to report when a specific import has not been used even if a symbol from the package has been used by another import. Fixes golang/go#12326. Reviewed-on: https://go-review.googlesource.com/14259 From-SVN: r228550
2015-03-04* go.test/go-test.exp (go-gc-tests): Skip nilptr test on s390*.Ian Lance Taylor1-1/+1
From-SVN: r221186
2015-02-26Add missing cleanup in go-gc-tests for cmpoutTom de Vries1-0/+1
2015-02-26 Tom de Vries <tom@codesourcery.com> * go.test/go-test.exp (go-gc-tests): Add missing cleanup for cmpout. From-SVN: r221032
2015-01-23re PR go/64510 (FAIL: go.test/test/nilptr2.go execution on non-split-stack ↵Ian Lance Taylor1-1/+2
targets) PR go/64510 * go.test/go-test.exp (go-gc-tests): Skip nilptr2.go test on targets without split stack support. From-SVN: r220069
2015-01-05Update copyright years.Jakub Jelinek1-1/+1
From-SVN: r219188
2014-11-21go-test.exp (go-set-goarch): Add case for ppc64le goarch value for go testing.Lynn Boger1-1/+5
* go.test/go-test.exp (go-set-goarch): Add case for ppc64le goarch value for go testing. From-SVN: r217942
2014-11-05* go.test/go-test.exp (go-set-goarch): Enable tests on s390[x].Dominik Vogt1-0/+6
From-SVN: r217112
2014-11-05go-test.exp: In +build lines, require whitespace around expected strings, ↵Ian Lance Taylor1-6/+15
fix check for negation. * go.test/go-test.exp: In +build lines, require whitespace around expected strings, fix check for negation. From-SVN: r217111
2014-11-04compiler: Logical operators should yield untyped bool for untyped operands.Ian Lance Taylor1-3/+3
Fixes issue 6671 for gccgo. From-SVN: r217094
2014-10-16compiler: Method names must be non-blank.Ian Lance Taylor2-16/+2
Fixes issue 8078. From-SVN: r216347
2014-10-16Test change for treating a function receiver as any other parameter list.Ian Lance Taylor1-4/+6
From-SVN: r216345
2014-09-15Makefile.in (dg_target_exps): Remove.Jakub Jelinek1-0/+7
gcc/ * Makefile.in (dg_target_exps): Remove. (check_gcc_parallelize): Change to just an upper bound number. (check-%-subtargets): Always print the non-parallelized goals. (check_p_vars, check_p_comma, check_p_subwork): Remove. (check_p_count, check_p_numbers0, check_p_numbers1, check_p_numbers2, check_p_numbers3, check_p_numbers4, check_p_numbers5, check_p_numbers6): New variables. (check_p_numbers): Set to sequence from 1 to 9999. (check_p_subdirs): Set to sequence from 1 to minimum of $(check_p_count) and either GCC_TEST_PARALLEL_SLOTS env var if set, or 128. (check-%, check-parallel-%): Rewritten so that for parallelized testing each job runs all the *.exp files, with GCC_RUNTEST_PARALLELIZE_DIR set in environment. gcc/go/ * Make-lang.in (check_go_parallelize): Change to just an upper bound number. gcc/fortran/ * Make-lang.in (check_gfortran_parallelize): Change to just an upper bound number. gcc/cp/ * Make-lang.in (check_g++_parallelize): Change to just an upper bound number. gcc/objc/ * Make-lang.in (check_objc_parallelize): Change to just an upper bound number. gcc/ada/ * gcc-interface/Make-lang.in (check_acats_numbers0, check_acats_numbers1, check_acats_numbers2, check_acats_numbers3, check_acats_numbers4, check_acats_numbers5, check_acats_numbers6, check_acats_numbers, check_acats_subdirs): New variables. (check_acats_targets): Use $(check_acats_subdirs). (check-acats, check-acats%): Rewritten so that for parallelized testing each job runs all the chapters files, with GCC_RUNTEST_PARALLELIZE_DIR set in environment. Prepare the support directory sequentially and share it. (check-acats-subtargets): Always print just check-acats. gcc/testsuite/ * lib/gcc-defs.exp (gcc_parallel_test_run_p, gcc_parallel_test_enable): New procedures. If GCC_RUNTEST_PARALLELIZE_DIR is set in environment, override runtest_file_p to invoke also gcc_parallel_test_run_p. * g++.dg/guality/guality.exp (check_guality): Save/restore test_counts array around the body of the procedure. * gcc.dg/guality/guality.exp (check_guality): Likewise. * g++.dg/plugin/plugin.exp: Run all the tests serially by the first parallel runtest encountering it. * gcc.dg/plugin/plugin.exp: Likewise. * gcc.misc-tests/matrix1.exp: Likewise. * gcc.misc-tests/dhry.exp: Likewise. * gcc.misc-tests/acker1.exp: Likewise. * gcc.misc-tests/linkage.exp: Likewise. * gcc.misc-tests/mg.exp: Likewise. * gcc.misc-tests/mg-2.exp: Likewise. * gcc.misc-tests/sort2.exp: Likewise. * gcc.misc-tests/sieve.exp: Likewise. * gcc.misc-tests/options.exp: Likewise. * gcc.misc-tests/help.exp: Likewise. * go.test/go-test.exp (go-gc-tests): Use gcc_parallel_test_enable {0, 1} around all handling of each test. * objc.dg/gnu-encoding/gnu-encoding.exp: Likewise. * ada/acats/run_all.sh: Parallelize using mkdir inside of a shared directory. Avoid forking and expr uses if shell supports $(()). libstdc++-v3/ * testsuite/Makefile.am (check_p_numbers0, check_p_numbers1, check_p_numbers2, check_p_numbers3, check_p_numbers4, check_p_numbers5, check_p_numbers6, check_p_numbers, check_p_subdirs): New variables. (check_DEJAGNU_normal_targets): Use check_p_subdirs. (check-DEJAGNU): Rewritten so that for parallelized testing each job runs all the *.exp files, with GCC_RUNTEST_PARALLELIZE_DIR set in environment. * testsuite/Makefile.in: Regenerated. * testsuite/lib/libstdc++.exp (gcc_parallel_test_run_p, gcc_parallel_test_enable): New procedures. If GCC_RUNTEST_PARALLELIZE_DIR is set in environment, override runtest_file_p to invoke also gcc_parallel_test_run_p. * testsuite/libstdc++-abi/abi.exp: Run all the tests serially by the first parallel runtest encountering it. Fix up path of the extract_symvers script. * testsuite/libstdc++-xmethods/xmethods.exp: Run all the tests serially by the first parallel runtest encountering it. Run dg-finish even in case of error. From-SVN: r215273
2014-08-27compiler: Disallow call of *T method using **T variable.Ian Lance Taylor1-3/+3
Fixes https://code.google.com/p/go/issues/detail?id=8583. From-SVN: r214560
2014-08-11compiler: Change return type comma-ok assignments to untyped bools.Ian Lance Taylor1-4/+4
Fixes https://code.google.com/p/go/issues/detail?id=8476. The test will be submitted once this is fixed in gc and go/types. From-SVN: r213833
2014-07-20compiler: If a variable that is only set, give not used error.Ian Lance Taylor1-0/+2
From-SVN: r212876
2014-07-20go-test.exp (go-gc-tests): Support multiple files in one package for ↵Ian Lance Taylor1-7/+11
compiledir tests. * go.test/go-test.exp (go-gc-tests): Support multiple files in one package for compiledir tests. From-SVN: r212872
2014-07-04Normalize interface for all *-dg-runtest.Thomas Schwinge1-4/+4
gcc/testsuite/ * lib/g++-dg.exp (g++-dg-runtest): Change interface to match dg-runtest's. Adapt all callers. * lib/gcc-dg.exp (gcc-dg-runtest): Likewise. * lib/gfortran-dg.exp (gfortran-dg-runtest): Likewise. * lib/go-dg.exp (go-dg-runtest): Likewise. * lib/obj-c++-dg.exp (obj-c++-dg-runtest): Likewise. * lib/objc-dg.exp (objc-dg-runtest): Likewise. libffi/ * testsuite/lib/libffi.exp (libffi-dg-runtest): Change interface match to dg-runtest's. From-SVN: r212278
2014-06-06libgo: Merge to master revision 19184.Ian Lance Taylor3-7/+7
The next revision, 19185, renames several runtime files, and will be handled in a separate change. From-SVN: r211328
2014-04-30go-test.exp (go-gc-tests): For rundir...Ian Lance Taylor1-2/+4
* go.test/go-test.exp (go-gc-tests): For rundir, pass extra files in go_compile_args rather than in argument to go-torture-execute. From-SVN: r209959
2014-01-15go-test.exp: Set goarch for aarch64*-*-*.Matthias Klose1-0/+3
2014-01-15 Matthias Klose <doko@ubuntu.com> * go.test/go-test.exp: Set goarch for aarch64*-*-*. From-SVN: r206631
2014-01-09go-test.exp (go-gc-tests): Skip nilptr tests that test the other Go compiler.Ian Lance Taylor1-0/+4
* go.test/go-test.exp (go-gc-tests): Skip nilptr tests that test the other Go compiler. From-SVN: r206474
2014-01-09go-test.exp (go-gc-tests): Don't run peano.go on systems which don't support ↵Uros Bizjak1-6/+5
-fsplit-stack. * go.test/go-test.exp (go-gc-tests): Don't run peano.go on systems which don't support -fsplit-stack. Skip rotate[0123].go tests. From-SVN: r206470
2014-01-02Update copyright years in gcc/Richard Sandiford1-1/+1
From-SVN: r206289
2013-12-13Update to copy of current master Go testsuite.Ian Lance Taylor95-135/+3096
From-SVN: r205955
2013-12-12compiler: Don't compare structs with blank non-comparable fields.Ian Lance Taylor2-4/+4
From-SVN: r205937
2013-10-24go-test.exp (errchk): Combine quoted strings in comments.Ian Lance Taylor1-0/+15
* go.test/go-test.exp (errchk): Combine quoted strings in comments. From-SVN: r204033
2013-10-14Update Go testsuite to a copy of the Go 1.1.2 testsuite.Ian Lance Taylor320-2873/+12744
* go.test/go-test.exp (go-find-packages): New proc. (go-gc-tests): Skip stress and safe tests. Skip *.dir subdirectories. Do simple +build line matching. Handle run with arguments. Handle errorcheckdir and rundircmpout. Use packages for rundir. Remove special handling for bug191 and dwarf. From-SVN: r203578
2013-08-07compiler: Fix "missing return" error for case T1, T2 in type switches.Ian Lance Taylor1-2/+2
Also change the "missing return" text and report it at the end of the function, rather than the start, to match the gc compiler. From-SVN: r201579
2013-06-26compiler: reject integer division by zero constant.Ian Lance Taylor2-3/+24
From-SVN: r200436
2013-06-25Update shift1.go test for recent changes.Ian Lance Taylor1-1/+204
From-SVN: r200400
2013-01-10Update copyright years in gcc/Richard Sandiford1-1/+1
From-SVN: r195098
2012-12-13compiler: Accept trailing comma after varargs parameter.Ian Lance Taylor1-1/+1
Also fix handling of interfaces seen only in a function or method declaration. From-SVN: r194492
2012-12-12runtime: Delete from a nil map is now a no-op.Ian Lance Taylor1-3/+2
From-SVN: r194462
2012-12-05compiler: Check for negative or inverted arguments to make.Ian Lance Taylor1-1/+2
From-SVN: r194173
2012-11-09go-test.exp (go-gc-tests): Handle runoutput test type with arguments.Ian Lance Taylor5-25/+104
* go.test/go-test.exp (go-gc-tests): Handle runoutput test type with arguments. Handle errorcheckoutput and rundir test types. From-SVN: r193344
2012-11-06Update index.go from master testsuite.Ian Lance Taylor1-0/+5
From-SVN: r193258
2012-10-23libgo: Update to current sources.Ian Lance Taylor2-3/+3
From-SVN: r192704
2012-09-29Update to current version of Go testsuite.Ian Lance Taylor748-2283/+7103
* go.test/go-test.exp: Update for latest version of Go testsuite. From-SVN: r191858
2012-08-23compiler: Comparisons return untyped boolean value.Ian Lance Taylor1-2/+2
From-SVN: r190612
2012-04-20go-test.exp (go-set-goarch): Recognize powerpc*-*-*.Ian Lance Taylor1-1/+8
* go.test/go-test.exp (go-set-goarch): Recognize powerpc*-*-*. (go-gc-tests): Skip nilptr.go on powerpc*-*-*. From-SVN: r186642
2012-03-02libgo: Update to weekly.2012-02-22 release.Ian Lance Taylor6-344/+9
From-SVN: r184819
2012-03-02libgo: Update to weekly.2012-02-14 release.Ian Lance Taylor1-4/+4
From-SVN: r184798
2012-02-14re PR go/48501 (64bit-out.go, select5-out.go, tmp.go compilation times out)Ian Lance Taylor1-0/+10
PR go/48501 * go.test/go-test.exp (go-gc-tests): Disable optimizations when compiling generated file for 64bit and index tests. From-SVN: r184219
2012-02-12re PR go/51874 (Many libgo testsuite failures on IRIX)Ian Lance Taylor1-2/+2
PR go/51874 * go.test/go-test.exp (go-gc-tests): Don't run nilptr test on SPARC Solaris. Don't run the test at all on systems where it may not work, rather than xfailing it. From-SVN: r184137
2012-02-09go-test.exp (go-gc-tests): Don't run stack.go on systems which don't support ↵Ian Lance Taylor1-5/+8
-fsplit-stack. * go.test/go-test.exp (go-gc-tests): Don't run stack.go on systems which don't support -fsplit-stack. Turn off optimization when compiling select5-out.go. From-SVN: r184035
2012-02-09libgo: Update to weekly.2012-02-07.Ian Lance Taylor6-28/+37
From-SVN: r184034
2012-02-09go-test.exp (go-gc-tests): Don't run chan/select2.go on systems which don't ↵Ian Lance Taylor1-0/+10
support -fsplit-stack. * go.test/go-test.exp (go-gc-tests): Don't run chan/select2.go on systems which don't support -fsplit-stack. From-SVN: r184033