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: 37467 Return-Path: X-Original-To: linaro@patches.linaro.org Delivered-To: linaro@patches.linaro.org Received: from mail-la0-f70.google.com (mail-la0-f70.google.com [209.85.215.70]) by ip-10-151-82-157.ec2.internal (Postfix) with ESMTPS id 9BD5E2057E for ; Tue, 16 Sep 2014 21:33:15 +0000 (UTC) Received: by mail-la0-f70.google.com with SMTP id s18sf268961lam.5 for ; Tue, 16 Sep 2014 14:33:14 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:mime-version:delivered-to:mailing-list :precedence:list-id:list-unsubscribe:list-subscribe:list-archive :list-post:list-help:sender:delivered-to:from:to:subject:date :message-id:x-original-sender:x-original-authentication-results; bh=Ld4AZBoMPjpvTuB40z/qZq8DSvXmlGeWiTQoIJLS/BU=; b=iHSP6YgOnevWwQdgKKBr4qZMGw3smTDC1vbp5xqGL/oBSDdlQGZ5G1u2rvsDl2AIQX 6ldStR0JP65Ctp4aA3xeKDqRKlKT9nSu/CJsd6Zd/tv4kh/0pAmwPkSqhfyH39VS4xZJ szqGVl/yxfbI0zNgcjxuZCkWXrsWI4hLLR38WqwkioUfIk77QcKxxxztEzP5BruZRL4r Fxnsb4u6ZCzjFhmTG3bJ/Uzlo/p3ntbpy9BjNB+TIRa1Sn0/u2AlDml55WdkmwoMyzyp 6/T6Xjd657ATX9HmJhDEad/YmN6epWsWlBCZn7n2cXGJXBWPwJuk5rTtngEa7nUlTDDo 3TJA== X-Gm-Message-State: ALoCoQnMb3ieNO5VMX3VV4A/uB55E3kY+JoAk4FHcDFWn+vqkGcAOyCnWnuyy5MG+heczy6i7JiJ X-Received: by 10.181.28.169 with SMTP id jp9mr168036wid.6.1410903194433; Tue, 16 Sep 2014 14:33:14 -0700 (PDT) MIME-Version: 1.0 X-BeenThere: patchwork-forward@linaro.org Received: by 10.152.30.3 with SMTP id o3ls48394lah.14.gmail; Tue, 16 Sep 2014 14:33:14 -0700 (PDT) X-Received: by 10.152.37.169 with SMTP id z9mr20760330laj.66.1410903194190; Tue, 16 Sep 2014 14:33:14 -0700 (PDT) Received: from mail-la0-x22c.google.com (mail-la0-x22c.google.com [2a00:1450:4010:c03::22c]) by mx.google.com with ESMTPS id m10si26007933lam.90.2014.09.16.14.33.14 for (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Tue, 16 Sep 2014 14:33:14 -0700 (PDT) Received-SPF: pass (google.com: domain of patch+caf_=patchwork-forward=linaro.org@linaro.org designates 2a00:1450:4010:c03::22c as permitted sender) client-ip=2a00:1450:4010:c03::22c; Received: by mail-la0-f44.google.com with SMTP id mc6so655742lab.31 for ; Tue, 16 Sep 2014 14:33:14 -0700 (PDT) X-Received: by 10.112.75.233 with SMTP id f9mr13687627lbw.102.1410903194098; Tue, 16 Sep 2014 14:33:14 -0700 (PDT) X-Forwarded-To: patchwork-forward@linaro.org X-Forwarded-For: patch@linaro.org patchwork-forward@linaro.org Delivered-To: patch@linaro.org Received: by 10.112.130.169 with SMTP id of9csp476738lbb; Tue, 16 Sep 2014 14:33:13 -0700 (PDT) X-Received: by 10.69.25.35 with SMTP id in3mr54777446pbd.63.1410903192622; Tue, 16 Sep 2014 14:33:12 -0700 (PDT) Received: from sourceware.org (server1.sourceware.org. [209.132.180.131]) by mx.google.com with ESMTPS id az2si31694664pdb.203.2014.09.16.14.33.11 for (version=TLSv1.2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Tue, 16 Sep 2014 14:33:12 -0700 (PDT) Received-SPF: pass (google.com: domain of libc-alpha-return-52906-patch=linaro.org@sourceware.org designates 209.132.180.131 as permitted sender) client-ip=209.132.180.131; Received: (qmail 32645 invoked by alias); 16 Sep 2014 21:33:02 -0000 Mailing-List: list patchwork-forward@linaro.org; contact patchwork-forward+owners@linaro.org Precedence: list 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 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-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> X-Original-Sender: will.newton@linaro.org X-Original-Authentication-Results: mx.google.com; spf=pass (google.com: domain of patch+caf_=patchwork-forward=linaro.org@linaro.org designates 2a00:1450:4010:c03::22c as permitted sender) smtp.mail=patch+caf_=patchwork-forward=linaro.org@linaro.org; dkim=pass header.i=@sourceware.org X-Google-Group-Id: 836684582541 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