From patchwork Sun Dec 29 20:29:12 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Titouan Christophe X-Patchwork-Id: 1216146 Return-Path: X-Original-To: incoming-buildroot@patchwork.ozlabs.org Delivered-To: patchwork-incoming-buildroot@bilbo.ozlabs.org Authentication-Results: ozlabs.org; spf=pass (sender SPF authorized) smtp.mailfrom=busybox.net (client-ip=140.211.166.136; helo=silver.osuosl.org; envelope-from=buildroot-bounces@busybox.net; receiver=) Authentication-Results: ozlabs.org; dmarc=fail (p=none dis=none) header.from=railnova.eu Authentication-Results: ozlabs.org; dkim=fail reason="signature verification failed" (2048-bit key; unprotected) header.d=railnova-eu.20150623.gappssmtp.com header.i=@railnova-eu.20150623.gappssmtp.com header.b="k0G6pFtG"; dkim-atps=neutral Received: from silver.osuosl.org (smtp3.osuosl.org [140.211.166.136]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ozlabs.org (Postfix) with ESMTPS id 47mBxg746tz9sPW for ; Mon, 30 Dec 2019 07:29:43 +1100 (AEDT) Received: from localhost (localhost [127.0.0.1]) by silver.osuosl.org (Postfix) with ESMTP id F3D69203C9; Sun, 29 Dec 2019 20:29:40 +0000 (UTC) X-Virus-Scanned: amavisd-new at osuosl.org Received: from silver.osuosl.org ([127.0.0.1]) by localhost (.osuosl.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id jf5P-NtZd0Jj; Sun, 29 Dec 2019 20:29:40 +0000 (UTC) Received: from ash.osuosl.org (ash.osuosl.org [140.211.166.34]) by silver.osuosl.org (Postfix) with ESMTP id 1698B2038D; Sun, 29 Dec 2019 20:29:40 +0000 (UTC) X-Original-To: buildroot@lists.busybox.net Delivered-To: buildroot@osuosl.org Received: from whitealder.osuosl.org (smtp1.osuosl.org [140.211.166.138]) by ash.osuosl.org (Postfix) with ESMTP id AA0121BF42E for ; Sun, 29 Dec 2019 20:29:38 +0000 (UTC) Received: from localhost (localhost [127.0.0.1]) by whitealder.osuosl.org (Postfix) with ESMTP id A6A4281F70 for ; Sun, 29 Dec 2019 20:29:38 +0000 (UTC) X-Virus-Scanned: amavisd-new at osuosl.org Received: from whitealder.osuosl.org ([127.0.0.1]) by localhost (.osuosl.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 2-l10sySUO3U for ; Sun, 29 Dec 2019 20:29:37 +0000 (UTC) X-Greylist: from auto-whitelisted by SQLgrey-1.7.6 Received: from mail-wr1-f45.google.com (mail-wr1-f45.google.com [209.85.221.45]) by whitealder.osuosl.org (Postfix) with ESMTPS id A90A381396 for ; Sun, 29 Dec 2019 20:29:36 +0000 (UTC) Received: by mail-wr1-f45.google.com with SMTP id z3so31098097wru.3 for ; Sun, 29 Dec 2019 12:29:36 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=railnova-eu.20150623.gappssmtp.com; s=20150623; h=from:to:cc:subject:date:message-id:mime-version :content-transfer-encoding; bh=Pfo9QKpCjuo1z5zwqRg01uPooBHs/KaeaLTBADFrt04=; b=k0G6pFtGRMBvgC+q/t6AgKXVbYsqNJzv3i0R5pPGGczeRUWXzzGnCQ0UFpXKYWuuNU /kehoLSjahENmujkAGfDC1dW2HLO+MK0GRlCqbItqyaPKzV23F8Yeik4kD6DY77FtF/n kykNyHBXyrZ5dC+pxrpvubAL1ZLqVEkPUc47k1KOHc2QSGF8HDuKq7De5ZPKThN7JEic A/3rVt3v7hlF6MJGInRxyl6c4EvVqVGAuHgM+XM0KdTFC+yK1ddvYDvzJoFKSesPrpwh 7wdGa6Z0eu8RhXYZRyWg5Bgwx/kEZLgddbASV9mvXxkq1hrEghm7E/LwFFcUnwGIFAgh 0NgA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:mime-version :content-transfer-encoding; bh=Pfo9QKpCjuo1z5zwqRg01uPooBHs/KaeaLTBADFrt04=; b=brjq2xZNGrsN7Rvkfg/ETAzT0lE5SLaDKMQ2rLlZMSJRN+aD7jVceTXiDtP8nr1nXk nz06RJhIyTRScO0x8eRi7Q6snXg6tXzoB/6zcsogqU6MZINxuxsQr7KAMd0/llwdGf/c 0Hpsq0TeO/MA3bpDXahf8q+VSw2IEdnvZ+YNWS/z1Yb6qp8ft0f0ghk8F0UHpEeyQTYF mha5x18EX0u46H3nXDqrO8Dz3PVfYZERzDLYqRsGvKdf6jRCWDrN4+2YriDTrUgm7vbN 9sd/WXReJEDqD+HUKF5XSksqeJAdhoU75ceqS6rXHZ9Sr+PgNGiVG1mkpdIkrd3ooMMa g+7A== X-Gm-Message-State: APjAAAU02TCE904ZJVblaItF6k2hy99AYl81CypNyFGKeS7xrkYHrQxZ 0SGfho9nXDUGvhL6lQ9IgcDU7k2waBw= X-Google-Smtp-Source: APXvYqxYYvUcYvXq6j9sUyJljObODF0djJbZwQPlRp8eOxCXZ37DfqoTGV98f/p41UBBvjAPj6fwTw== X-Received: by 2002:adf:e591:: with SMTP id l17mr58215720wrm.139.1577651374875; Sun, 29 Dec 2019 12:29:34 -0800 (PST) Received: from taurus.congress.ccc.de ([2001:67c:20a1:1192:f978:f572:4d55:22d4]) by smtp.gmail.com with ESMTPSA id s19sm18429644wmj.33.2019.12.29.12.29.31 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 29 Dec 2019 12:29:34 -0800 (PST) From: Titouan Christophe To: buildroot@buildroot.org Date: Sun, 29 Dec 2019 21:29:12 +0100 Message-Id: <20191229202912.23783-1-titouan.christophe@railnova.eu> X-Mailer: git-send-email 2.23.0 MIME-Version: 1.0 Subject: [Buildroot] [PATCH 1/1] support/testing: add test for python-avro X-BeenThere: buildroot@busybox.net X-Mailman-Version: 2.1.29 Precedence: list List-Id: Discussion and development of buildroot List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: "Yann E . MORIN" , Titouan Christophe Errors-To: buildroot-bounces@busybox.net Sender: "buildroot" This adds a test case for python-avro, with a script that performs a simple deserialization. Signed-off-by: Titouan Christophe --- .../tests/package/sample_python_avro.py | 23 +++++++++++++++++++ .../testing/tests/package/test_python_avro.py | 11 +++++++++ 2 files changed, 34 insertions(+) create mode 100644 support/testing/tests/package/sample_python_avro.py create mode 100644 support/testing/tests/package/test_python_avro.py diff --git a/support/testing/tests/package/sample_python_avro.py b/support/testing/tests/package/sample_python_avro.py new file mode 100644 index 0000000000..79d2dcdb22 --- /dev/null +++ b/support/testing/tests/package/sample_python_avro.py @@ -0,0 +1,23 @@ +from io import BytesIO +from avro.schema import Parse +from avro.io import DatumReader, BinaryDecoder + +schema = Parse("""{ +"namespace": "org.buildroot.package.python_avro", +"type": "record", +"name": "Developer", +"fields": [ + {"name": "email", "type": "string"}, + {"name": "maintainer_of", "type": "string"} +] +}""") + +example = b'