From patchwork Mon Apr 28 19:44:35 2014 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Erik Faye-Lund X-Patchwork-Id: 4081651 Return-Path: X-Original-To: patchwork-dri-devel@patchwork.kernel.org Delivered-To: patchwork-parsemail@patchwork1.web.kernel.org Received: from mail.kernel.org (mail.kernel.org [198.145.19.201]) by patchwork1.web.kernel.org (Postfix) with ESMTP id 239299F169 for ; Mon, 28 Apr 2014 19:45:21 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id 5AA1E20179 for ; Mon, 28 Apr 2014 19:45:20 +0000 (UTC) Received: from gabe.freedesktop.org (gabe.freedesktop.org [131.252.210.177]) by mail.kernel.org (Postfix) with ESMTP id 1B2DE2015D for ; Mon, 28 Apr 2014 19:45:19 +0000 (UTC) Received: from gabe.freedesktop.org (localhost [127.0.0.1]) by gabe.freedesktop.org (Postfix) with ESMTP id 8E4816E2D0; Mon, 28 Apr 2014 12:45:17 -0700 (PDT) X-Original-To: dri-devel@lists.freedesktop.org Delivered-To: dri-devel@lists.freedesktop.org Received: from mail-ie0-f176.google.com (mail-ie0-f176.google.com [209.85.223.176]) by gabe.freedesktop.org (Postfix) with ESMTP id 8A3DB6E2D0 for ; Mon, 28 Apr 2014 12:45:16 -0700 (PDT) Received: by mail-ie0-f176.google.com with SMTP id rd18so6862125iec.7 for ; Mon, 28 Apr 2014 12:45:16 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:reply-to:in-reply-to:references:from:date:message-id :subject:to:cc:content-type; bh=SmqtUgYDlVfhuAwyQRYma6BV5H5xLmTLEIOXaqIZphE=; b=YsPVnJvNOlzYhwq2AmN2cVs7aKjC1820R6CPJR6NsdUR/OFPfzxmYFdI0GYw1k6ubQ 51S++RP7Mj6j245ZPTv4jmR/e/c0FQxiznTtpR0k5LCbmHu9BTfA72RSLBS/XQgLZ0Ph b8eQfLdslhArKE9QeQB6DN1qHjNVYs9I9t28SlePvUR973+qDyM1gy6+x54oejXQzOBA 4SkanfrZVHDJU7J+oyaX6k3Nr0t8I2e9cf91KgbtUkCZ42yNuEO6k9NYFymGTk0USLhr zMKNMvioNsrESsY4BoHa95VfLd1m9mvXtsaUh1LfUvIlXNmwyoN2SdGUt7dGlYqlbwTY Hu8w== X-Received: by 10.42.204.197 with SMTP id fn5mr2775223icb.95.1398714315783; Mon, 28 Apr 2014 12:45:15 -0700 (PDT) MIME-Version: 1.0 Received: by 10.64.166.135 with HTTP; Mon, 28 Apr 2014 12:44:35 -0700 (PDT) In-Reply-To: <1397043630-13972-6-git-send-email-thierry.reding@gmail.com> References: <1397043630-13972-1-git-send-email-thierry.reding@gmail.com> <1397043630-13972-6-git-send-email-thierry.reding@gmail.com> From: Erik Faye-Lund Date: Mon, 28 Apr 2014 21:44:35 +0200 Message-ID: Subject: Re: [PATCH v2 libdrm 5/7] tegra: Add helper library for tests To: Thierry Reding Cc: "dri-devel@lists.freedesktop.org" X-BeenThere: dri-devel@lists.freedesktop.org X-Mailman-Version: 2.1.15 Precedence: list Reply-To: kusmabite@gmail.com List-Id: Direct Rendering Infrastructure - Development List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: dri-devel-bounces@lists.freedesktop.org Sender: "dri-devel" X-Spam-Status: No, score=-4.7 required=5.0 tests=BAYES_00, DKIM_ADSP_CUSTOM_MED, DKIM_SIGNED, FREEMAIL_FROM, RCVD_IN_DNSWL_MED, RP_MATCHES_RCVD, T_DKIM_INVALID, UNPARSEABLE_RELAY autolearn=unavailable version=3.3.1 X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on mail.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP On Wed, Apr 9, 2014 at 1:40 PM, Thierry Reding wrote: > From: Thierry Reding > > This library provides helpers for common functionality needed by test > programs. > > Signed-off-by: Thierry Reding > --- > Changes in v2: > - fix a couple of memory leaks and get rid of some unneeded code > > tests/tegra/Makefile.am | 10 +- > tests/tegra/drm-test-tegra.c | 137 ++++++++++++++++++++++++ > tests/tegra/drm-test-tegra.h | 55 ++++++++++ > tests/tegra/drm-test.c | 248 +++++++++++++++++++++++++++++++++++++++++++ > tests/tegra/drm-test.h | 72 +++++++++++++ > 5 files changed, 521 insertions(+), 1 deletion(-) > create mode 100644 tests/tegra/drm-test-tegra.c > create mode 100644 tests/tegra/drm-test-tegra.h > create mode 100644 tests/tegra/drm-test.c > create mode 100644 tests/tegra/drm-test.h > > diff --git a/tests/tegra/Makefile.am b/tests/tegra/Makefile.am > index 8b481bde4f11..e468029d152e 100644 > --- a/tests/tegra/Makefile.am > +++ b/tests/tegra/Makefile.am > @@ -5,9 +5,17 @@ AM_CPPFLAGS = \ > > AM_CFLAGS = -Wall -Werror > > +noinst_LTLIBRARIES = libdrm-test.la > +libdrm_test_la_SOURCES = \ > + drm-test.c \ > + drm-test.h \ > + drm-test-tegra.c \ > + drm-test-tegra.h > + > LDADD = \ > ../../tegra/libdrm_tegra.la \ > - ../../libdrm.la > + ../../libdrm.la \ > + libdrm-test.la > Hmm, I need the following on top to please the linker: diff --git a/tests/tegra/Makefile.am b/tests/tegra/Makefile.am index 286af4b..88230c0 100644 --- a/tests/tegra/Makefile.am +++ b/tests/tegra/Makefile.am @@ -14,8 +14,8 @@ libdrm_test_la_SOURCES = \ LDADD = \ ../../tegra/libdrm_tegra.la \ - ../../libdrm.la \ - libdrm-test.la + libdrm-test.la \ + ../../libdrm.la TESTS = \ openclose \