From patchwork Mon May 19 11:15:40 2014 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Maxim Uvarov X-Patchwork-Id: 30376 Return-Path: X-Original-To: linaro@patches.linaro.org Delivered-To: linaro@patches.linaro.org Received: from mail-ie0-f197.google.com (mail-ie0-f197.google.com [209.85.223.197]) by ip-10-151-82-157.ec2.internal (Postfix) with ESMTPS id B5FDC202FE for ; Mon, 19 May 2014 11:16:01 +0000 (UTC) Received: by mail-ie0-f197.google.com with SMTP id rd18sf13832854iec.8 for ; Mon, 19 May 2014 04:16:01 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:delivered-to:from:to:date:message-id:subject :precedence:list-id:list-unsubscribe:list-archive:list-post :list-help:list-subscribe:mime-version:errors-to:sender :x-original-sender:x-original-authentication-results:mailing-list :content-type:content-transfer-encoding; bh=LTBZnzcqfhm7j8u1xFjgjIIIfzvtLCXy/Kqw0CUQgfI=; b=DwYgxr05bEYABShIlJWExv/hXsfj34oFwtGw0hAgpgmfQi1FP+9hTO61MDgvCi56Wy osbhsJJB0J8ZyVr0qOgSYsBE8ezQ1R0c/xyv/hgHDf9tRpXRYJYIpD4hzeOxfqkcDtWs pubeoKR2iO2YqJ0h5RDomuO2sK8WWfSjB4avBZKUODzHCg+fb/HF7z+qibDoU3G87aHC dHHWW1qnYhFNY3QqYznk8ipu5KfGfQqOO22u/7rgWZEFdgW1QcWWXRC7ykRkH02O0TES R+PqnkjEVbcMlG8l7p1MhWxC/nMMNYXpy99KwXrro/qmOS1iul7oXSjpVs3RF7rbGHLK 8nlg== X-Gm-Message-State: ALoCoQm2hNGP3a2PnJkY6ZxymdBEho06UY1umg/nCr/GT4Ygi5Ce9Y0oPuK1BtGypm83ZmgDvghi X-Received: by 10.182.125.4 with SMTP id mm4mr2405673obb.49.1400498161102; Mon, 19 May 2014 04:16:01 -0700 (PDT) X-BeenThere: patchwork-forward@linaro.org Received: by 10.140.31.195 with SMTP id f61ls1469770qgf.59.gmail; Mon, 19 May 2014 04:16:01 -0700 (PDT) X-Received: by 10.224.60.137 with SMTP id p9mr45283066qah.92.1400498161008; Mon, 19 May 2014 04:16:01 -0700 (PDT) Received: from mail-qg0-f53.google.com (mail-qg0-f53.google.com [209.85.192.53]) by mx.google.com with ESMTPS id ff1si6129277qcb.69.2014.05.19.04.16.00 for (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Mon, 19 May 2014 04:16:00 -0700 (PDT) Received-SPF: pass (google.com: domain of patch+caf_=patchwork-forward=linaro.org@linaro.org designates 209.85.192.53 as permitted sender) client-ip=209.85.192.53; Received: by mail-qg0-f53.google.com with SMTP id f51so8310501qge.40 for ; Mon, 19 May 2014 04:16:00 -0700 (PDT) X-Received: by 10.224.129.135 with SMTP id o7mr45729433qas.18.1400498160924; Mon, 19 May 2014 04:16:00 -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.96.8.167 with SMTP id s7csp219328qda; Mon, 19 May 2014 04:16:00 -0700 (PDT) X-Received: by 10.224.50.81 with SMTP id y17mr45534592qaf.22.1400498160356; Mon, 19 May 2014 04:16:00 -0700 (PDT) Received: from ip-10-141-164-156.ec2.internal (lists.linaro.org. [54.225.227.206]) by mx.google.com with ESMTPS id p8si8430081qag.237.2014.05.19.04.15.59 for (version=TLSv1 cipher=RC4-SHA bits=128/128); Mon, 19 May 2014 04:16:00 -0700 (PDT) Received-SPF: none (google.com: lng-odp-bounces@lists.linaro.org does not designate permitted sender hosts) client-ip=54.225.227.206; Received: from localhost ([127.0.0.1] helo=ip-10-141-164-156.ec2.internal) by ip-10-141-164-156.ec2.internal with esmtp (Exim 4.76) (envelope-from ) id 1WmLX2-0008K7-8Q; Mon, 19 May 2014 11:15:00 +0000 Received: from mail-lb0-f181.google.com ([209.85.217.181]) by ip-10-141-164-156.ec2.internal with esmtp (Exim 4.76) (envelope-from ) id 1WmLWv-0008Jn-Da for lng-odp@lists.linaro.org; Mon, 19 May 2014 11:14:53 +0000 Received: by mail-lb0-f181.google.com with SMTP id u10so237639lbd.40 for ; Mon, 19 May 2014 04:15:46 -0700 (PDT) X-Received: by 10.112.67.35 with SMTP id k3mr24525716lbt.17.1400498146358; Mon, 19 May 2014 04:15:46 -0700 (PDT) Received: from maxim-lap.localhost.onion ([92.39.133.154]) by mx.google.com with ESMTPSA id to10sm17482001lbb.11.2014.05.19.04.15.44 for (version=TLSv1.1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Mon, 19 May 2014 04:15:45 -0700 (PDT) From: Maxim Uvarov To: lng-odp@lists.linaro.org Date: Mon, 19 May 2014 15:15:40 +0400 Message-Id: <1400498140-8341-1-git-send-email-maxim.uvarov@linaro.org> X-Mailer: git-send-email 1.8.5.1.163.gd7aced9 X-Topics: patch Subject: [lng-odp] [PATCHv2] simple compile all tests in ./test dir X-BeenThere: lng-odp@lists.linaro.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: , List-Help: , List-Subscribe: , MIME-Version: 1.0 Errors-To: lng-odp-bounces@lists.linaro.org Sender: lng-odp-bounces@lists.linaro.org X-Removed-Original-Auth: Dkim didn't pass. X-Original-Sender: maxim.uvarov@linaro.org X-Original-Authentication-Results: mx.google.com; spf=pass (google.com: domain of patch+caf_=patchwork-forward=linaro.org@linaro.org designates 209.85.192.53 as permitted sender) smtp.mail=patch+caf_=patchwork-forward=linaro.org@linaro.org Mailing-list: list patchwork-forward@linaro.org; contact patchwork-forward+owners@linaro.org X-Google-Group-Id: 836684582541 Signed-off-by: Maxim Uvarov Reviewed-by: Anders Roxell --- v2: break if compilation of submakefile fails. test/Makefile | 30 ++++++++---------------------- 1 file changed, 8 insertions(+), 22 deletions(-) diff --git a/test/Makefile b/test/Makefile index cc3f4e9..500fd13 100644 --- a/test/Makefile +++ b/test/Makefile @@ -3,29 +3,15 @@ # # SPDX-License-Identifier: BSD-3-Clause -.PHONY: all -all: - $(MAKE) -C api_test - $(MAKE) -C example - $(MAKE) -C packet - $(MAKE) -C packet_netmap - $(MAKE) -C timer - $(MAKE) -C generator +TESTS=$(filter %, $(wildcard */)) + +.PHONY: all clean install + +all: $(TESTS) + for T in $(TESTS); do $(MAKE) -C $$T || exit 1; done -.PHONY: clean clean: - $(MAKE) -C api_test clean - $(MAKE) -C example clean - $(MAKE) -C packet clean - $(MAKE) -C packet_netmap clean - $(MAKE) -C timer clean - $(MAKE) -C generator clean + for T in $(TESTS); do $(MAKE) -C $$T clean || true; done -.PHONY: install install: - $(MAKE) -C api_test install - $(MAKE) -C example install - $(MAKE) -C packet install - $(MAKE) -C packet_netmap install - $(MAKE) -C timer install - $(MAKE) -C generator install + for T in $(TESTS); do $(MAKE) -C $$T install ||exit 1; done