From patchwork Fri Jun 17 16:39:18 2011 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Jesse Barker X-Patchwork-Id: 2035 Return-Path: X-Original-To: patchwork@peony.canonical.com Delivered-To: patchwork@peony.canonical.com Received: from fiordland.canonical.com (fiordland.canonical.com [91.189.94.145]) by peony.canonical.com (Postfix) with ESMTP id 3B11A23E02 for ; Fri, 17 Jun 2011 16:54:42 +0000 (UTC) Received: from mail-vx0-f180.google.com (mail-vx0-f180.google.com [209.85.220.180]) by fiordland.canonical.com (Postfix) with ESMTP id 0B953A1836F for ; Fri, 17 Jun 2011 16:39:20 +0000 (UTC) Received: by vxd7 with SMTP id 7so574406vxd.11 for ; Fri, 17 Jun 2011 09:39:20 -0700 (PDT) Received: by 10.52.112.106 with SMTP id ip10mr3354027vdb.127.1308328760342; Fri, 17 Jun 2011 09:39:20 -0700 (PDT) X-Forwarded-To: linaro-patchwork@canonical.com X-Forwarded-For: patch@linaro.org linaro-patchwork@canonical.com Delivered-To: patches@linaro.org Received: by 10.52.183.130 with SMTP id em2cs260782vdc; Fri, 17 Jun 2011 09:39:20 -0700 (PDT) Received: by 10.227.195.197 with SMTP id ed5mr2341779wbb.104.1308328759068; Fri, 17 Jun 2011 09:39:19 -0700 (PDT) Received: from adelie.canonical.com (adelie.canonical.com [91.189.90.139]) by mx.google.com with ESMTP id et14si3384277wbb.108.2011.06.17.09.39.18; Fri, 17 Jun 2011 09:39:19 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of bounces@canonical.com designates 91.189.90.139 as permitted sender) client-ip=91.189.90.139; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of bounces@canonical.com designates 91.189.90.139 as permitted sender) smtp.mail=bounces@canonical.com Received: from loganberry.canonical.com ([91.189.90.37]) by adelie.canonical.com with esmtp (Exim 4.71 #1 (Debian)) id 1QXc4k-00009A-DN for ; Fri, 17 Jun 2011 16:39:18 +0000 Received: from loganberry.canonical.com (localhost [127.0.0.1]) by loganberry.canonical.com (Postfix) with ESMTP id 601AF2E800B for ; Fri, 17 Jun 2011 16:39:18 +0000 (UTC) MIME-Version: 1.0 X-Launchpad-Project: libmatrix X-Launchpad-Branch: ~jesse-barker/libmatrix/trunk X-Launchpad-Message-Rationale: Subscriber X-Launchpad-Branch-Revision-Number: 19 X-Launchpad-Notification-Type: branch-revision To: Linaro Patch Tracker From: noreply@launchpad.net Subject: [Branch ~jesse-barker/libmatrix/trunk] Rev 19: In addition to building the tests (just the one for now), make sure to run Message-Id: <20110617163918.10060.45269.launchpad@loganberry.canonical.com> Date: Fri, 17 Jun 2011 16:39:18 -0000 Reply-To: noreply@launchpad.net Sender: bounces@canonical.com Errors-To: bounces@canonical.com Precedence: bulk X-Generated-By: Launchpad (canonical.com); Revision="13242"; Instance="initZopeless config overlay" X-Launchpad-Hash: 90492961b58362d0cc64ae694b3864a24591c2ff ------------------------------------------------------------ revno: 19 committer: Jesse Barker branch nick: trunk timestamp: Fri 2011-06-17 09:37:04 -0700 message: In addition to building the tests (just the one for now), make sure to run them and mark the build as failing/error if they don't pass. modified: Makefile --- lp:libmatrix https://code.launchpad.net/~jesse-barker/libmatrix/trunk You are subscribed to branch lp:libmatrix. To unsubscribe from this branch go to https://code.launchpad.net/~jesse-barker/libmatrix/trunk/+edit-subscription === modified file 'Makefile' --- Makefile 2011-06-16 21:35:35 +0000 +++ Makefile 2011-06-17 16:37:04 +0000 @@ -1,17 +1,24 @@ -TARGETS = libmatrix.a matrix_inverse_test +TARGETS = libmatrix.a +TESTS = matrix_inverse_test SRCS = mat.cc program.cc matrix_inverse_test.cc OBJS = $(SRCS:.cc=.o) CXXFLAGS = -Wall -Werror -pedantic -O3 -default: $(TARGETS) +# Make sure to build both the library targets and the tests, and generate +# a make failure if the tests don't pass. +default: $(TARGETS) $(TESTS) run_tests +# Main library targets here. mat.o : mat.cc mat.h program.o: program.cc program.h +libmatrix.a : mat.o mat.h stack.h vec.h program.o program.h + $(AR) -r $@ $(OBJS) + +# Tests and execution targets here. matrix_inverse_test.o: matrix_inverse_test.cc mat.h matrix_inverse_test: matrix_inverse_test.o libmatrix.a $(CXX) -o $@ $? -libmatrix.a : mat.o mat.h stack.h vec.h program.o program.h - $(AR) -r $@ $(OBJS) - +run_tests: $(TESTS) + ./matrix_inverse_test clean : $(RM) $(OBJS) $(TARGETS)