From patchwork Fri Jun 25 06:00:39 2010 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Ian Lance Taylor X-Patchwork-Id: 56891 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Received: from sourceware.org (server1.sourceware.org [209.132.180.131]) by ozlabs.org (Postfix) with SMTP id A4086B6F29 for ; Fri, 25 Jun 2010 16:00:55 +1000 (EST) Received: (qmail 29049 invoked by alias); 25 Jun 2010 06:00:52 -0000 Received: (qmail 29036 invoked by uid 22791); 25 Jun 2010 06:00:51 -0000 X-SWARE-Spam-Status: No, hits=-2.3 required=5.0 tests=AWL, BAYES_00, DKIM_SIGNED, DKIM_VALID, DKIM_VALID_AU, SPF_HELO_PASS, TW_CC, T_RP_MATCHES_RCVD, T_TVD_MIME_NO_HEADERS X-Spam-Check-By: sourceware.org Received: from smtp-out.google.com (HELO smtp-out.google.com) (74.125.121.35) by sourceware.org (qpsmtpd/0.43rc1) with ESMTP; Fri, 25 Jun 2010 06:00:46 +0000 Received: from kpbe19.cbf.corp.google.com (kpbe19.cbf.corp.google.com [172.25.105.83]) by smtp-out.google.com with ESMTP id o5P60h8m000947 for ; Thu, 24 Jun 2010 23:00:44 -0700 Received: from pzk36 (pzk36.prod.google.com [10.243.19.164]) by kpbe19.cbf.corp.google.com with ESMTP id o5P60gFR001208 for ; Thu, 24 Jun 2010 23:00:42 -0700 Received: by pzk36 with SMTP id 36so462929pzk.4 for ; Thu, 24 Jun 2010 23:00:42 -0700 (PDT) Received: by 10.115.39.34 with SMTP id r34mr202042waj.123.1277445642454; Thu, 24 Jun 2010 23:00:42 -0700 (PDT) Received: from coign.google.com ([216.239.45.130]) by mx.google.com with ESMTPS id n32sm64531832wae.10.2010.06.24.23.00.40 (version=TLSv1/SSLv3 cipher=RC4-MD5); Thu, 24 Jun 2010 23:00:41 -0700 (PDT) To: gcc-patches@gcc.gnu.org Subject: [gccgo] Create _test directory when running tests From: Ian Lance Taylor Date: Thu, 24 Jun 2010 23:00:39 -0700 Message-ID: User-Agent: Gnus/5.11 (Gnus v5.11) Emacs/22.1 (gnu/linux) MIME-Version: 1.0 X-System-Of-Record: true X-IsSubscribed: yes Mailing-List: contact gcc-patches-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Id: List-Unsubscribe: List-Archive: List-Post: List-Help: Sender: gcc-patches-owner@gcc.gnu.org Delivered-To: mailing list 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))