From patchwork Tue Sep 16 21:32:49 2014 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Will Newton X-Patchwork-Id: 390198 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]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ozlabs.org (Postfix) with ESMTPS id 2C94F1400D5 for ; Wed, 17 Sep 2014 07:33:08 +1000 (EST) DomainKey-Signature: a=rsa-sha1; c=nofws; d=sourceware.org; h=list-id :list-unsubscribe:list-subscribe:list-archive:list-post :list-help:sender:from:to:subject:date:message-id; q=dns; s= default; b=qshnK97TljStbslDt6+E2ipAIxXJXNz2yLZq8/zRh4vLKJBhjpof3 XHAHSinD0QzcE4e5C7D99zGhI/HwIOjA8sgZYBxSZC/XP9rCLMZ+yjO4n3O+Srjz pSIe9aK5bP7XAodB2Lr12eFoCs9AV7ATDDA7isiIeQYK+h5nBL2Xxk= DKIM-Signature: v=1; a=rsa-sha1; c=relaxed; d=sourceware.org; h=list-id :list-unsubscribe:list-subscribe:list-archive:list-post :list-help:sender:from:to:subject:date:message-id; s=default; bh=yxC238kA6TJXG3S5G300Tb78pyQ=; b=DrcaBReGiMQxzTde/cVNC9gd7ZLG yq9ofq7F7VwGyZ56XklCQgZKbK4oQUMGofm0biebYzQRWnnRKcKj0qnDRIlfkp5a w7ywZcI5nrt0tOxrHwkBQOmKc7TNzi+CvKAuoP3HPlTHKmtzkVO572oAVRYtCl70 Y9NLNhutQkhhx2U= Received: (qmail 32645 invoked by alias); 16 Sep 2014 21:33:02 -0000 Mailing-List: contact libc-alpha-help@sourceware.org; run by ezmlm Precedence: bulk List-Id: List-Unsubscribe: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: libc-alpha-owner@sourceware.org Delivered-To: mailing list libc-alpha@sourceware.org Received: (qmail 32537 invoked by uid 89); 16 Sep 2014 21:33:01 -0000 Authentication-Results: sourceware.org; auth=none X-Virus-Found: No X-Spam-SWARE-Status: No, score=-2.6 required=5.0 tests=BAYES_00, RCVD_IN_DNSWL_LOW, SPF_PASS autolearn=ham version=3.3.2 X-HELO: mail-pd0-f170.google.com X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:from:to:subject:date:message-id; bh=Ld4AZBoMPjpvTuB40z/qZq8DSvXmlGeWiTQoIJLS/BU=; b=buwFy5Yj3ZEvMoBNRY02lp5Sh3HFPfxdWX2J9gZl5FfSRPn3ZdudcQtd+zq8wBuSb/ DubRBVIftznwz1s2xyqNoOFZxDzTrVO1dS9zu4aA47yckjEbFDauGstg/HnmLG9zVbd5 kc83YAtCWYtFd2TEOXb5ciASJlugFIY0LhcsHc17rhFHhxapkXHNcftOpeCMafDYNoJ3 OgnVIbxVbtFbdGs11nH43NfhUCqi1PGxGxfPPzB0dZ66b6Uyz3ac3Z2YLfv9SAzd/8kw l6ecvnr9Q+BrAKTT9/GxlxgInzap2xIDv9f9DQUFuVTQCBazynd/ddBtBnzvHEQlKLON T/dw== X-Gm-Message-State: ALoCoQn7+Ms9vBgtlbE6/sFSgeWepWk64CAlkgfrbZ2FJAnw1Mmdvh7TfQVje+zLRBV1lH1+gTUz X-Received: by 10.67.24.70 with SMTP id ig6mr52821130pad.99.1410903178524; Tue, 16 Sep 2014 14:32:58 -0700 (PDT) From: Will Newton To: libc-alpha@sourceware.org Subject: [PATCH] Allow cross-building of tests Date: Tue, 16 Sep 2014 14:32:49 -0700 Message-Id: <1410903170-31206-1-git-send-email-will.newton@linaro.org> Allow building tests in a cross configuration without a test wrapper defined. This is helpful for doing simple build testing of tests. ChangeLog: 2014-09-16 Will Newton * localedata/Makefile: Move assignment to tests-special into an ifdef testing run-built-tests. * timezone/Makefile: Likewise. --- localedata/Makefile | 6 +++--- timezone/Makefile | 2 ++ 2 files changed, 5 insertions(+), 3 deletions(-) diff --git a/localedata/Makefile b/localedata/Makefile index b6235f2..c2c62a2 100644 --- a/localedata/Makefile +++ b/localedata/Makefile @@ -92,14 +92,14 @@ install-others := $(addprefix $(inst_i18ndir)/, \ tests: $(objdir)/iconvdata/gconv-modules +tests-static += tst-langinfo-static + +ifeq ($(run-built-tests),yes) tests-special += $(objpfx)sort-test.out $(objpfx)tst-fmon.out \ $(objpfx)tst-locale.out $(objpfx)tst-rpmatch.out \ $(objpfx)tst-trans.out $(objpfx)tst-ctype.out \ $(objpfx)tst-langinfo.out $(objpfx)tst-langinfo-static.out \ $(objpfx)tst-numeric.out -tests-static += tst-langinfo-static - -ifeq ($(run-built-tests),yes) # We have to generate locales LOCALES := de_DE.ISO-8859-1 de_DE.UTF-8 en_US.ANSI_X3.4-1968 \ en_US.ISO-8859-1 en_US.UTF-8 ja_JP.EUC-JP da_DK.ISO-8859-1 \ diff --git a/timezone/Makefile b/timezone/Makefile index 66b59ce..ad76e48 100644 --- a/timezone/Makefile +++ b/timezone/Makefile @@ -45,11 +45,13 @@ generated += tzselect testdata = $(objpfx)testdata +ifeq ($(run-built-tests),yes) # List zones generated by separate commands running zic on the host. # Each such zic run counts as a separate test. test-zones := America/New_York Etc/UTC UTC Europe/Berlin \ Australia/Melbourne America/Sao_Paulo Asia/Tokyo tests-special += $(addprefix $(testdata)/, $(test-zones)) +endif include ../Rules