From patchwork Fri Jun 25 06:00:39 2010 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Subject: [gccgo] Create _test directory when running tests Date: Thu, 24 Jun 2010 20:00:39 -0000 From: Ian Taylor X-Patchwork-Id: 56891 Message-Id: To: gcc-patches@gcc.gnu.org The gc compiler creates a _test directory when running tests. The template test has started expecting that directory to exist. This patch changes gotest to create the directory, to provide an environment similar to that of the gc library. Committed to gccgo branch. Ian diff -r be7e820fc0ce libgo/testsuite/gotest --- a/libgo/testsuite/gotest Thu Jun 24 22:57:39 2010 -0700 +++ b/libgo/testsuite/gotest Thu Jun 24 22:58:45 2010 -0700 @@ -97,6 +97,9 @@ # Some tests expect the _obj directory created by the gc Makefiles. mkdir _obj +# Some tests expect the _test directory created by the gc Makefiles. +mkdir _test + case "x$gofiles" in x) gofiles=$(echo -n $(ls *_test.go *_test.pb.go 2>/dev/null))