From patchwork Wed Feb 5 14:11:47 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Titouan Christophe X-Patchwork-Id: 1233855 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.a=rsa-sha256 header.s=20150623 header.b=zYaBrb8d; 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 48CNmg2FVNz9sSN for ; Thu, 6 Feb 2020 01:12:19 +1100 (AEDT) Received: from localhost (localhost [127.0.0.1]) by silver.osuosl.org (Postfix) with ESMTP id C93B1203AA; Wed, 5 Feb 2020 14:12:17 +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 eUTeaZbLQ07d; Wed, 5 Feb 2020 14:12:12 +0000 (UTC) Received: from ash.osuosl.org (ash.osuosl.org [140.211.166.34]) by silver.osuosl.org (Postfix) with ESMTP id E2D062041B; Wed, 5 Feb 2020 14:12:10 +0000 (UTC) X-Original-To: buildroot@lists.busybox.net Delivered-To: buildroot@osuosl.org Received: from silver.osuosl.org (smtp3.osuosl.org [140.211.166.136]) by ash.osuosl.org (Postfix) with ESMTP id 580341BF5A7 for ; Wed, 5 Feb 2020 14:12:09 +0000 (UTC) Received: from localhost (localhost [127.0.0.1]) by silver.osuosl.org (Postfix) with ESMTP id 54239203FC for ; Wed, 5 Feb 2020 14:12:09 +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 x-8Xwvrhx6LJ for ; Wed, 5 Feb 2020 14:12:06 +0000 (UTC) X-Greylist: from auto-whitelisted by SQLgrey-1.7.6 Received: from mail-wm1-f46.google.com (mail-wm1-f46.google.com [209.85.128.46]) by silver.osuosl.org (Postfix) with ESMTPS id B77FD2044D for ; Wed, 5 Feb 2020 14:12:05 +0000 (UTC) Received: by mail-wm1-f46.google.com with SMTP id a5so2655737wmb.0 for ; Wed, 05 Feb 2020 06:12:05 -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:in-reply-to:references :mime-version:content-transfer-encoding; bh=CtO3eKtT4VDbFsFlraYEnoB/WZPl28JbI7nIRRZxFus=; b=zYaBrb8dD1IPRsGObsBJs1WImGkcJ7V+fXtc+dPvniHwV0aEf1eQsbFf1X9AxiROje Axfk1Y13oMR3FClW7HDk0FTO2CJX9GxwQyHQX5g7tDodKyt20VX33icHF4d8abmk4kzU 71Tr15hk596vGgF0nmqFu+ms3eLpZ3T16/ES6ft/sKFd2BZ7usrrBWDTgXFlNgwWfDEW 8cVU8pr46radGDVjLCJQJyq7iL7MrteLaKckkO34LrAgQJBhBBcWGoXgPwHVrDGAyZUF qnlKCYfJgMxdxkgPq35wAfqThHtLCtzCfQmzeJNb1nlcjWW/Dyb1uvuTVp1jwzXhX4UJ OOPg== 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:in-reply-to :references:mime-version:content-transfer-encoding; bh=CtO3eKtT4VDbFsFlraYEnoB/WZPl28JbI7nIRRZxFus=; b=YJ0ot6C6jSLUWczWm6TRSZbeVAIVI/qotkHDBOuE0+kviHctfSHlhLeCm8OAVsa0kP HyLWEQgXrdzHXcOJsn0fK/bjgwmJnK7NAuyZshYBss8wMbzH4CABde+xMl9fZCaf8LR5 VgOBkrTPD0o8JPluXV3t4EeCzB1+VQRDPHzK8uUMRKh/7BFOjujZMiEcJBmuRrpJ8CZ8 VyzhQnrmSOvRS+FJ6sLKq8LwEh2bjImj4Atm+tcCBVYuO6E8TasXOIAMmhWhXSKgJkz+ OOvrrbvMBxpexH4keOYIBAyhMniFEhNvjDOo/kth3g4tArpXGJOar7RjXJboJ1Uxl4ee m/6g== X-Gm-Message-State: APjAAAUXooQDPQJxUS8gehWigRw+tjEJAI9ZRG0vUu4v0TcVJVqKtfi8 V/cpXbXDXPYhq9KajraWR3sM+dmKm8M1KQ== X-Google-Smtp-Source: APXvYqwwj02vRgzDii+qpkk9Wc6AfPCRF7wlW8dY+tOtK/SqDRbiZpG+lcPhzlf47r+OYoEHqg38UA== X-Received: by 2002:a7b:ce10:: with SMTP id m16mr5649843wmc.115.1580911923618; Wed, 05 Feb 2020 06:12:03 -0800 (PST) Received: from localhost.localdomain ([2620:0:1055:fd00:463c:fbe1:fd20:7f18]) by smtp.gmail.com with ESMTPSA id w22sm7844431wmk.34.2020.02.05.06.12.02 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 05 Feb 2020 06:12:03 -0800 (PST) From: Titouan Christophe To: buildroot@buildroot.org Date: Wed, 5 Feb 2020 15:11:47 +0100 Message-Id: <20200205141149.20749-2-titouan.christophe@railnova.eu> X-Mailer: git-send-email 2.24.1 In-Reply-To: <20200205141149.20749-1-titouan.christophe@railnova.eu> References: <20200205141149.20749-1-titouan.christophe@railnova.eu> MIME-Version: 1.0 Subject: [Buildroot] [PATCH 1/3] package/python-iniparse: bump to version 0.5 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: Zoltan Gyarmati , Titouan Christophe , Asaf Kahlon Errors-To: buildroot-bounces@busybox.net Sender: "buildroot" Also, iniparse now requires six. This has been detected thanks to the runtime tests. Signed-off-by: Titouan Christophe --- package/python-iniparse/Config.in | 3 ++- package/python-iniparse/python-iniparse.hash | 6 +++--- package/python-iniparse/python-iniparse.mk | 4 ++-- 3 files changed, 7 insertions(+), 6 deletions(-) diff --git a/package/python-iniparse/Config.in b/package/python-iniparse/Config.in index 65c1064927..8a9c5954c8 100644 --- a/package/python-iniparse/Config.in +++ b/package/python-iniparse/Config.in @@ -1,6 +1,7 @@ config BR2_PACKAGE_PYTHON_INIPARSE bool "python-iniparse" - depends on BR2_PACKAGE_PYTHON + depends on BR2_PACKAGE_PYTHON || BR2_PACKAGE_PYTHON3 + select BR2_PACKAGE_PYTHON_SIX # runtime help iniparse is an INI parser for Python which is API compatible with the standard library's ConfigParser, preserves diff --git a/package/python-iniparse/python-iniparse.hash b/package/python-iniparse/python-iniparse.hash index b843025521..238d41e06d 100644 --- a/package/python-iniparse/python-iniparse.hash +++ b/package/python-iniparse/python-iniparse.hash @@ -1,7 +1,7 @@ -# md5 from https://pypi.python.org/pypi?:action=show_md5&digest=5e573e9e9733d97623881ce9bbe5eca6 -md5 5e573e9e9733d97623881ce9bbe5eca6 iniparse-0.4.tar.gz +# From https://pypi.org/project/iniparse/#copy-hash-modal-5fdd923b-0592-4d2d-8b49-03472f948290 +md5 2054bab923df21107652d009f2373789 iniparse-0.5.tar.gz +sha256 932e5239d526e7acb504017bb707be67019ac428a6932368e6851691093aa842 iniparse-0.5.tar.gz # sha256 locally computed -sha256 abc1ee12d2cfb2506109072d6c21e40b6c75a3fe90a9c924327d80bc0d99c054 iniparse-0.4.tar.gz sha256 ff45637d8a96adc414179e502fbed40160e57205bf2e302140e79a0c71eceaa7 LICENSE sha256 9b02e3dfe433ccd2bd94636ef6eb08638b5a54deafe5f87a3d9d9104356c48e0 LICENSE-PSF diff --git a/package/python-iniparse/python-iniparse.mk b/package/python-iniparse/python-iniparse.mk index 5c4e03c88c..d31a490bd8 100644 --- a/package/python-iniparse/python-iniparse.mk +++ b/package/python-iniparse/python-iniparse.mk @@ -4,11 +4,11 @@ # ################################################################################ -PYTHON_INIPARSE_VERSION = 0.4 +PYTHON_INIPARSE_VERSION = 0.5 PYTHON_INIPARSE_SOURCE = iniparse-$(PYTHON_INIPARSE_VERSION).tar.gz PYTHON_INIPARSE_SITE = https://pypi.python.org/packages/source/i/iniparse PYTHON_INIPARSE_LICENSE = Python-2.0, MIT PYTHON_INIPARSE_LICENSE_FILES = LICENSE-PSF LICENSE -PYTHON_INIPARSE_SETUP_TYPE = distutils +PYTHON_INIPARSE_SETUP_TYPE = setuptools $(eval $(python-package)) From patchwork Wed Feb 5 14:11:48 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Titouan Christophe X-Patchwork-Id: 1233854 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.a=rsa-sha256 header.s=20150623 header.b=bnZKw3A4; 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 48CNmZ3xxKz9sSN for ; Thu, 6 Feb 2020 01:12:14 +1100 (AEDT) Received: from localhost (localhost [127.0.0.1]) by silver.osuosl.org (Postfix) with ESMTP id 537462083F; Wed, 5 Feb 2020 14:12:12 +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 kp6Z0THTTpxc; Wed, 5 Feb 2020 14:12:09 +0000 (UTC) Received: from ash.osuosl.org (ash.osuosl.org [140.211.166.34]) by silver.osuosl.org (Postfix) with ESMTP id CD33320450; Wed, 5 Feb 2020 14:12:09 +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 7C55F1BF5A7 for ; Wed, 5 Feb 2020 14:12:08 +0000 (UTC) Received: from localhost (localhost [127.0.0.1]) by whitealder.osuosl.org (Postfix) with ESMTP id 766A1863BE for ; Wed, 5 Feb 2020 14:12:08 +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 92kwuwJhdMdt for ; Wed, 5 Feb 2020 14:12:07 +0000 (UTC) X-Greylist: from auto-whitelisted by SQLgrey-1.7.6 Received: from mail-wr1-f68.google.com (mail-wr1-f68.google.com [209.85.221.68]) by whitealder.osuosl.org (Postfix) with ESMTPS id 12519864B8 for ; Wed, 5 Feb 2020 14:12:07 +0000 (UTC) Received: by mail-wr1-f68.google.com with SMTP id y11so2914163wrt.6 for ; Wed, 05 Feb 2020 06:12:06 -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:in-reply-to:references :mime-version:content-transfer-encoding; bh=eLQYUs+wV1OB3Ge9SbWTeSvQHQ9KWMLGhkUBAPEo9YI=; b=bnZKw3A4ta0zuuRQIkcimbdZD5ZzG/cS/AShf8r2huoRfwuMrgqhbca9ughQBatG4q g0TGRK4YmkWo1bzAJsG89b4dTOYL3mVgH7X6iYjW1FAu7PYg3ioVHl6Y2R8TFNyoa5sk ke9RqUowqEAAwBQHK3Uv1u46iZH5gWw8L7iu1qoW7t+CpTvt+L2isE8U+ozRZb3xE5EA c9FBvKDyhttnroPw9B/axFt3osDJqlYZQLMe5MZh9MVXf2dhop+yTQfPLzFNe80rLpyz cl+9vlBnR9KRU6Vi/uaZq8bEvWc478EWE0LSn5DMZeIGV6CPWozT0KTmfH2WJJALjtox cUTQ== 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:in-reply-to :references:mime-version:content-transfer-encoding; bh=eLQYUs+wV1OB3Ge9SbWTeSvQHQ9KWMLGhkUBAPEo9YI=; b=jM50GYPscr8qUIlh8Bw8DrQx/KzsBueoj93gBtpgQ0MEtmwloIaXAA5zo8/wnfYuR1 euCq5E9zDrmw9Wf0L41aunyJ8TlGCN7HJEtTHVz2ZmFynO42MKT/t27Z0Eg5zf4vmNTf OSqps2rxE492a8SSMYy51LA84/z8GAyK7booU3ZhRq8nKYb6kzFjJyc/jxAhvHy6DNI9 DmSmYvpVJRPS/yepO8jYiDeih+u7tjx1QFVljzRlb1Qk+4sUkxsKsMkoCcNpe4JJS8EH 4UikRe3f4hP8tchGBcwazgxCgRD2XWNownUj/olDsgGIN0JuqICtz9A8G3tLsN7mqnWl aQrQ== X-Gm-Message-State: APjAAAUMohXq1etyAqiiHSL7IfrY9qUhcEAJn4ueNp9yP38CiypNX22L /ao2ygiwqZC5+AEXMf5e9h/uqLsh5nzfsw== X-Google-Smtp-Source: APXvYqwVHQsfbgBoiRMyii2r+D8CIT+2qoa6P06NVL0EaWYbey2OTQfrj4LJyXAWn4KdgrrngZHX2Q== X-Received: by 2002:a5d:6b03:: with SMTP id v3mr27421117wrw.289.1580911925119; Wed, 05 Feb 2020 06:12:05 -0800 (PST) Received: from localhost.localdomain ([2620:0:1055:fd00:463c:fbe1:fd20:7f18]) by smtp.gmail.com with ESMTPSA id w22sm7844431wmk.34.2020.02.05.06.12.04 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 05 Feb 2020 06:12:04 -0800 (PST) From: Titouan Christophe To: buildroot@buildroot.org Date: Wed, 5 Feb 2020 15:11:48 +0100 Message-Id: <20200205141149.20749-3-titouan.christophe@railnova.eu> X-Mailer: git-send-email 2.24.1 In-Reply-To: <20200205141149.20749-1-titouan.christophe@railnova.eu> References: <20200205141149.20749-1-titouan.christophe@railnova.eu> MIME-Version: 1.0 Subject: [Buildroot] [PATCH 2/3] package/crudini: bump to version 0.9.3 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: Zoltan Gyarmati , Titouan Christophe , Asaf Kahlon Errors-To: buildroot-bounces@busybox.net Sender: "buildroot" This release hasn't been published to pypi, so we switch to the Github release archive instead. Signed-off-by: Titouan Christophe --- package/crudini/Config.in | 2 +- package/crudini/crudini.hash | 5 +---- package/crudini/crudini.mk | 4 ++-- 3 files changed, 4 insertions(+), 7 deletions(-) diff --git a/package/crudini/Config.in b/package/crudini/Config.in index e4e26e52da..240848dffc 100644 --- a/package/crudini/Config.in +++ b/package/crudini/Config.in @@ -1,6 +1,6 @@ config BR2_PACKAGE_CRUDINI bool "crudini" - depends on BR2_PACKAGE_PYTHON + depends on BR2_PACKAGE_PYTHON || BR2_PACKAGE_PYTHON3 select BR2_PACKAGE_PYTHON_INIPARSE # runtime help A utility for handling ini files from the command line and diff --git a/package/crudini/crudini.hash b/package/crudini/crudini.hash index 6c08223b83..6f2563dfdd 100644 --- a/package/crudini/crudini.hash +++ b/package/crudini/crudini.hash @@ -1,6 +1,3 @@ -# md5 from https://pypi.python.org/pypi?:action=show_md5&digest=9b8500c90467f0a61c714fbe852c2a66 -md5 9b8500c90467f0a61c714fbe852c2a66 crudini-0.9.tar.gz - # locally computed -sha256 10512a5a2f7b54b42e48a1d00f0c6398947c2ba6c264b9fdef86677f0e949fd3 crudini-0.9.tar.gz +sha256 e1b8125ac4373ece3bb0bb047ba9336e5bd55ed5d56b9729968058c9385ab546 crudini-0.9.3.tar.gz sha256 8177f97513213526df2cf6184d8ff986c675afb514d4e68a404010521b880643 COPYING diff --git a/package/crudini/crudini.mk b/package/crudini/crudini.mk index c03f55c374..7141e2b2a0 100644 --- a/package/crudini/crudini.mk +++ b/package/crudini/crudini.mk @@ -4,8 +4,8 @@ # ################################################################################ -CRUDINI_VERSION = 0.9 -CRUDINI_SITE = https://pypi.python.org/packages/b5/65/5588903472f30fa01ca4951be00c03a317b27bac4cd1e945bd16b2c1b6d3 +CRUDINI_VERSION = 0.9.3 +CRUDINI_SITE = $(call github,pixelb,crudini,$(CRUDINI_VERSION)) CRUDINI_SETUP_TYPE = setuptools CRUDINI_LICENSE = GPL-2.0 CRUDINI_LICENSE_FILES = COPYING From patchwork Wed Feb 5 14:11:49 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Titouan Christophe X-Patchwork-Id: 1233856 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.a=rsa-sha256 header.s=20150623 header.b=dmmtyGNb; 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 48CNml3FM1z9sSD for ; Thu, 6 Feb 2020 01:12:23 +1100 (AEDT) Received: from localhost (localhost [127.0.0.1]) by silver.osuosl.org (Postfix) with ESMTP id 4A601214E4; Wed, 5 Feb 2020 14:12:19 +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 N1g8EqpjmSCw; Wed, 5 Feb 2020 14:12:14 +0000 (UTC) Received: from ash.osuosl.org (ash.osuosl.org [140.211.166.34]) by silver.osuosl.org (Postfix) with ESMTP id 4A62F20C41; Wed, 5 Feb 2020 14:12:13 +0000 (UTC) X-Original-To: buildroot@lists.busybox.net Delivered-To: buildroot@osuosl.org Received: from fraxinus.osuosl.org (smtp4.osuosl.org [140.211.166.137]) by ash.osuosl.org (Postfix) with ESMTP id 7D1FC1BF5A7 for ; Wed, 5 Feb 2020 14:12:10 +0000 (UTC) Received: from localhost (localhost [127.0.0.1]) by fraxinus.osuosl.org (Postfix) with ESMTP id 7A4A882043 for ; Wed, 5 Feb 2020 14:12:10 +0000 (UTC) X-Virus-Scanned: amavisd-new at osuosl.org Received: from fraxinus.osuosl.org ([127.0.0.1]) by localhost (.osuosl.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 21JFNiWKTfmo for ; Wed, 5 Feb 2020 14:12:09 +0000 (UTC) X-Greylist: from auto-whitelisted by SQLgrey-1.7.6 Received: from mail-wr1-f65.google.com (mail-wr1-f65.google.com [209.85.221.65]) by fraxinus.osuosl.org (Postfix) with ESMTPS id C67F685D87 for ; Wed, 5 Feb 2020 14:12:08 +0000 (UTC) Received: by mail-wr1-f65.google.com with SMTP id c9so2894281wrw.8 for ; Wed, 05 Feb 2020 06:12:08 -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:in-reply-to:references :mime-version:content-transfer-encoding; bh=WZLvmkU9/B80txiIbePebax59KNY26NojWNqexWeTxE=; b=dmmtyGNb7jFOsM85pjxWDuzNglkIXEKbpj2479WeE5gGhbCHTCZ1sdy0WRlDCIgrOi qA4805AzV4L/rqvs91CX8sx2+QUaBP7j2BYjDhXuTa6KEldGi826GCmRk2pwude0tvES JKcHs1JusC6uNIM7ljjuCO3oKINw998psFk2holOYN6LoZSEwEw3zsnMmtWEdJSVQiDu 3Aw6Midjg/UoyfLkBLdSN1b4CgvzkwL+f3PFLRtz2SM+m1Pi3ayd2Mw7i5/xXAvDP/b2 iwR0v2ogLTDdySZ+EbGM67KzEu/AbPc+NEuN0sxAjfIlbJKN256oWuRb7gn9YFiYbZ+B 3/sw== 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:in-reply-to :references:mime-version:content-transfer-encoding; bh=WZLvmkU9/B80txiIbePebax59KNY26NojWNqexWeTxE=; b=ppn4tZFhaNyVeV61bMnmPZCbHNU9ibUNrojVidgSBiXos4Ahch49X9zFD7eKNyJw6y xJdmyG+eB5CGdwapZlojA9vTbuyXauu6Wy5vCcRNzm2lQcpq/k6nBSPZJ/wk3jfJiBAn I6UM/A2wyNptWehv3d+Td5XPRzYlBXlx9kM1CXN2W0srYXoewgjYUL+GMnWRIVVGJnyg WRFywsZXiSuirfgIr8gnCtK59KzVCr8F8WwElrklweJXk9J24avAeEkRCZxYs2B2NOKu 7NSR3/0ZaoP0D9f55dUmHJbUY0XSa5r9UmHyEP10DYfKCx9oDtd0CneCj2VDF2vpTKVU uuvw== X-Gm-Message-State: APjAAAUZ1BBMnkDDrceNPYDJq9EjIztLfwSskaoe8Op4QBdIqgg7KYYM 1GyRp0I/w1ED5UXOuSNkBmRSZpTHu+B3Ew== X-Google-Smtp-Source: APXvYqwULYLTa54+oCXTplNFrmxgXG0D2XCTcHk+GJnGzWTkdT7nZiKJ6TBc5bCXT8cfZpNVDonU1A== X-Received: by 2002:adf:9dc9:: with SMTP id q9mr27258472wre.286.1580911926782; Wed, 05 Feb 2020 06:12:06 -0800 (PST) Received: from localhost.localdomain ([2620:0:1055:fd00:463c:fbe1:fd20:7f18]) by smtp.gmail.com with ESMTPSA id w22sm7844431wmk.34.2020.02.05.06.12.05 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 05 Feb 2020 06:12:06 -0800 (PST) From: Titouan Christophe To: buildroot@buildroot.org Date: Wed, 5 Feb 2020 15:11:49 +0100 Message-Id: <20200205141149.20749-4-titouan.christophe@railnova.eu> X-Mailer: git-send-email 2.24.1 In-Reply-To: <20200205141149.20749-1-titouan.christophe@railnova.eu> References: <20200205141149.20749-1-titouan.christophe@railnova.eu> MIME-Version: 1.0 Subject: [Buildroot] [PATCH 3/3] support/testing: add runtime test for Crudini (py2 and py3) 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: Zoltan Gyarmati , Titouan Christophe , Asaf Kahlon Errors-To: buildroot-bounces@busybox.net Sender: "buildroot" This also adds the new tests to the gitlab CI configuration. Signed-off-by: Titouan Christophe --- .gitlab-ci.yml | 2 + support/testing/tests/package/test_crudini.py | 40 +++++++++++++++++++ 2 files changed, 42 insertions(+) create mode 100644 support/testing/tests/package/test_crudini.py diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index c0140527db..aa64bb5fee 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -375,6 +375,8 @@ tests.init.test_systemd.TestInitSystemSystemdRwFull: { extends: .runtime_test } tests.init.test_systemd.TestInitSystemSystemdRwIfupdown: { extends: .runtime_test } tests.init.test_systemd.TestInitSystemSystemdRwNetworkd: { extends: .runtime_test } tests.package.test_atop.TestAtop: { extends: .runtime_test } +tests.package.test_crudini.TestCrudiniPy2: {extends: .runtime_test} +tests.package.test_crudini.TestCrudiniPy3: {extends: .runtime_test} tests.package.test_docker_compose.TestDockerCompose: { extends: .runtime_test } tests.package.test_dropbear.TestDropbear: { extends: .runtime_test } tests.package.test_glxinfo.TestGlxinfo: { extends: .runtime_test } diff --git a/support/testing/tests/package/test_crudini.py b/support/testing/tests/package/test_crudini.py new file mode 100644 index 0000000000..498c5982cc --- /dev/null +++ b/support/testing/tests/package/test_crudini.py @@ -0,0 +1,40 @@ +import os +from tests.package.test_python import TestPythonPackageBase + + +INI_FILE_CONTENT = """ +[section] +param = this-is-the-magic-value +other = dont care +""" + + +class TestCrudiniBase(TestPythonPackageBase): + config = TestPythonPackageBase.config + "\nBR2_PACKAGE_CRUDINI=y" + + def test_run(self): + img = os.path.join(self.builddir, "images", "rootfs.cpio") + self.emulator.boot(arch="armv5", kernel="builtin", + options=["-initrd", img]) + + self.emulator.login() + + # 1. Create some sample .ini file + cmd = "echo -e '%s' > config.ini" % INI_FILE_CONTENT + _, ret = self.emulator.run(cmd) + self.assertEqual(ret, 0) + + # 2. Attempt to get the value + out, ret = self.emulator.run("crudini --get config.ini section param") + self.assertEqual(ret, 0) + self.assertEqual(out, ['this-is-the-magic-value']) + + +class TestCrudiniPy2(TestCrudiniBase): + __test__ = True + config = TestCrudiniBase.config + "\nBR2_PACKAGE_PYTHON=y" + + +class TestCrudiniPy3(TestCrudiniBase): + __test__ = True + config = TestCrudiniBase.config + "\nBR2_PACKAGE_PYTHON3=y"