From patchwork Tue Jul 14 19:28:14 2015 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Mike Holmes X-Patchwork-Id: 51111 Return-Path: X-Original-To: linaro@patches.linaro.org Delivered-To: linaro@patches.linaro.org Received: from mail-wi0-f199.google.com (mail-wi0-f199.google.com [209.85.212.199]) by ip-10-151-82-157.ec2.internal (Postfix) with ESMTPS id 9936122A24 for ; Tue, 14 Jul 2015 19:28:36 +0000 (UTC) Received: by widic2 with SMTP id ic2sf7088610wid.1 for ; Tue, 14 Jul 2015 12:28:35 -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:delivered-to:from:to:date :message-id:subject:precedence:list-id:list-unsubscribe:list-archive :list-post:list-help:list-subscribe:mime-version:content-type :content-transfer-encoding:errors-to:sender:x-original-sender :x-original-authentication-results:mailing-list; bh=oToF1iA0N4vbziBMhMHs9aKibJFqRUtufCRYNVOey/I=; b=a6VokEQxNK2I+5iML/fJ5RSpIC1Ma8H7MBscksDasiXDPh3aMdw0CzN64p4+DP+hgz j9M+TI0NDov9zC7iea3sGbkqhCYVUIC6poeiO+KMC2pQMFleFYOudubSC0nwxvQFu1NB G0ECM9NL0NzHSLnSnOhcr7C8R/0Bd/VI5rhQri64rXj1FNklck1z7jfTx0JnrL6/lGnb 27DVjYqzg/sZiPRWDZtAv8zTwCipdzS0vTqQ31NYeY7kK78PGcLp88bUwk+sxmRJg3re oglJ4XOcfCqnByyk/l2dZrxsL4gDTQtQzxxG629BOuT2BBesvsxblKEp4Z29utjquMDa TFYw== X-Gm-Message-State: ALoCoQnc2QB+tejAKzkmKjVQUIF3kw7Tln3U4uCq8LCAAXqdmbuk2n9+St5e1K1p+JT1p7QN4MtB X-Received: by 10.112.118.194 with SMTP id ko2mr114958lbb.16.1436902115574; Tue, 14 Jul 2015 12:28:35 -0700 (PDT) X-BeenThere: patchwork-forward@linaro.org Received: by 10.152.37.196 with SMTP id a4ls85883lak.27.gmail; Tue, 14 Jul 2015 12:28:35 -0700 (PDT) X-Received: by 10.152.10.72 with SMTP id g8mr161892lab.97.1436902115419; Tue, 14 Jul 2015 12:28:35 -0700 (PDT) Received: from mail-la0-f45.google.com (mail-la0-f45.google.com. [209.85.215.45]) by mx.google.com with ESMTPS id bm5si1822136lbc.30.2015.07.14.12.28.35 for (version=TLSv1.2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Tue, 14 Jul 2015 12:28:35 -0700 (PDT) Received-SPF: pass (google.com: domain of patch+caf_=patchwork-forward=linaro.org@linaro.org designates 209.85.215.45 as permitted sender) client-ip=209.85.215.45; Received: by lagx9 with SMTP id x9so11986473lag.1 for ; Tue, 14 Jul 2015 12:28:35 -0700 (PDT) X-Received: by 10.152.37.228 with SMTP id b4mr154380lak.117.1436902115242; Tue, 14 Jul 2015 12:28:35 -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.108.230 with SMTP id hn6csp2602875lbb; Tue, 14 Jul 2015 12:28:34 -0700 (PDT) X-Received: by 10.140.106.101 with SMTP id d92mr487813qgf.70.1436902113854; Tue, 14 Jul 2015 12:28:33 -0700 (PDT) Received: from lists.linaro.org (lists.linaro.org. [54.225.227.206]) by mx.google.com with ESMTP id e207si2357103qhc.3.2015.07.14.12.28.32; Tue, 14 Jul 2015 12:28:33 -0700 (PDT) Received-SPF: pass (google.com: domain of lng-odp-bounces@lists.linaro.org designates 54.225.227.206 as permitted sender) client-ip=54.225.227.206; Received: by lists.linaro.org (Postfix, from userid 109) id 917B161F05; Tue, 14 Jul 2015 19:28:32 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on ip-10-142-244-252.ec2.internal X-Spam-Level: X-Spam-Status: No, score=-2.6 required=5.0 tests=BAYES_00, RCVD_IN_DNSWL_LOW, RCVD_IN_MSPIKE_H3, RCVD_IN_MSPIKE_WL, URIBL_BLOCKED autolearn=disabled version=3.4.0 Received: from ip-10-142-244-252.ec2.internal (localhost [127.0.0.1]) by lists.linaro.org (Postfix) with ESMTP id EDDA261E2B; Tue, 14 Jul 2015 19:28:27 +0000 (UTC) X-Original-To: lng-odp@lists.linaro.org Delivered-To: lng-odp@lists.linaro.org Received: by lists.linaro.org (Postfix, from userid 109) id B866761E65; Tue, 14 Jul 2015 19:28:20 +0000 (UTC) Received: from mail-qk0-f169.google.com (mail-qk0-f169.google.com [209.85.220.169]) by lists.linaro.org (Postfix) with ESMTPS id D725B61D4E for ; Tue, 14 Jul 2015 19:28:19 +0000 (UTC) Received: by qkdl129 with SMTP id l129so13541277qkd.0 for ; Tue, 14 Jul 2015 12:28:19 -0700 (PDT) X-Received: by 10.140.44.73 with SMTP id f67mr458176qga.88.1436902099661; Tue, 14 Jul 2015 12:28:19 -0700 (PDT) Received: from localhost.localdomain (c-98-221-136-245.hsd1.nj.comcast.net. [98.221.136.245]) by smtp.gmail.com with ESMTPSA id k135sm941830qhc.31.2015.07.14.12.28.19 (version=TLSv1.2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Tue, 14 Jul 2015 12:28:19 -0700 (PDT) From: Mike Holmes To: lng-odp@lists.linaro.org Date: Tue, 14 Jul 2015 15:28:14 -0400 Message-Id: <1436902094-11361-1-git-send-email-mike.holmes@linaro.org> X-Mailer: git-send-email 2.1.4 X-Topics: patch Subject: [lng-odp] [PATCH] helper: test: add test for odph_pause X-BeenThere: lng-odp@lists.linaro.org X-Mailman-Version: 2.1.16 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" X-Removed-Original-Auth: Dkim didn't pass. X-Original-Sender: mike.holmes@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.215.45 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: Mike Holmes --- helper/test/.gitignore | 1 + helper/test/Makefile.am | 4 +++- helper/test/odph_pause.c | 14 ++++++++++++++ 3 files changed, 18 insertions(+), 1 deletion(-) create mode 100644 helper/test/odph_pause.c diff --git a/helper/test/.gitignore b/helper/test/.gitignore index 3542630..213bc5e 100644 --- a/helper/test/.gitignore +++ b/helper/test/.gitignore @@ -3,3 +3,4 @@ odp_chksum odp_process odp_thread +odph_pause diff --git a/helper/test/Makefile.am b/helper/test/Makefile.am index 7b73602..fbf5a9b 100644 --- a/helper/test/Makefile.am +++ b/helper/test/Makefile.am @@ -7,7 +7,8 @@ TESTS_ENVIRONMENT += TEST_DIR=${builddir} EXECUTABLES = odp_chksum$(EXEEXT) \ odp_thread$(EXEEXT) \ - odp_process$(EXEEXT) + odp_process$(EXEEXT)\ + odph_pause$(EXEEXT) COMPILE_ONLY = @@ -27,3 +28,4 @@ dist_odp_thread_SOURCES = odp_thread.c odp_thread_LDADD = $(LIB)/libodphelper.la $(LIB)/libodp.la dist_odp_process_SOURCES = odp_process.c odp_process_LDADD = $(LIB)/libodphelper.la $(LIB)/libodp.la +odph_pause_SOURCES = odph_pause.c diff --git a/helper/test/odph_pause.c b/helper/test/odph_pause.c new file mode 100644 index 0000000..f5f5da3 --- /dev/null +++ b/helper/test/odph_pause.c @@ -0,0 +1,14 @@ +/* Copyright (c) 2015, Linaro Limited + * All rights reserved. + * + * SPDX-License-Identifier: BSD-3-Clause + */ + +#include +#include "../odph_pause.h" + +int main(int argc TEST_UNUSED, char *argv[] TEST_UNUSED) +{ + odph_pause(); + return 0; +}