This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
[gccgo] Create _test directory when running tests
- From: Ian Lance Taylor <iant at google dot com>
- To: gcc-patches at gcc dot gnu dot org
- Date: Thu, 24 Jun 2010 23:00:39 -0700
- Subject: [gccgo] Create _test directory when running tests
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))