From patchwork Tue Feb 19 15:43:07 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Francois Perrad X-Patchwork-Id: 1044743 Return-Path: X-Original-To: incoming-buildroot@patchwork.ozlabs.org Delivered-To: patchwork-incoming-buildroot@bilbo.ozlabs.org Authentication-Results: ozlabs.org; spf=pass (mailfrom) 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=gmail.com Authentication-Results: ozlabs.org; dkim=fail reason="signature verification failed" (2048-bit key; unprotected) header.d=gmail.com header.i=@gmail.com header.b="AW6CzFw7"; 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 443lQZ36TDz9s7h for ; Wed, 20 Feb 2019 02:44:06 +1100 (AEDT) Received: from localhost (localhost [127.0.0.1]) by silver.osuosl.org (Postfix) with ESMTP id 6E692232D7; Tue, 19 Feb 2019 15:44:04 +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 LKt5VDKrIM-l; Tue, 19 Feb 2019 15:44:03 +0000 (UTC) Received: from ash.osuosl.org (ash.osuosl.org [140.211.166.34]) by silver.osuosl.org (Postfix) with ESMTP id DD8B4226A2; Tue, 19 Feb 2019 15:44:02 +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 225471BF2EA for ; Tue, 19 Feb 2019 15:43:57 +0000 (UTC) Received: from localhost (localhost [127.0.0.1]) by whitealder.osuosl.org (Postfix) with ESMTP id 32409862ED for ; Tue, 19 Feb 2019 15:43:56 +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 zwHJcGkUnvnu for ; Tue, 19 Feb 2019 15:43:54 +0000 (UTC) X-Greylist: domain auto-whitelisted by SQLgrey-1.7.6 Received: from mail-wm1-f52.google.com (mail-wm1-f52.google.com [209.85.128.52]) by whitealder.osuosl.org (Postfix) with ESMTPS id 060BA8627B for ; Tue, 19 Feb 2019 15:43:54 +0000 (UTC) Received: by mail-wm1-f52.google.com with SMTP id x10so3263504wmg.2 for ; Tue, 19 Feb 2019 07:43:53 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:cc:subject:date:message-id:in-reply-to:references; bh=5dYAro5xJLCRE3nsrRU1RwKvsO8y48F/tG7nlJJ3TPQ=; b=AW6CzFw7dbjs+bSvAZAwmWwXpFGJIXl1k/TvHL00kkRO9FP0DKWn6M+vQmTotr66oC JBbatipeSiZDmTYT+tWbXLixDJ/Il4F8UoQfEa3frmWhhnlldCq6Bhf2o84hWay6BZLJ Yc1SN1FZ6dYFfdYm6CFyyzxVXcjoTF1Sxs/y72pQ7u6LjBlgd3uD4NAFG0YwAhjjAU04 HYRTMSTMxP9kgmERrB7r61l/Byg5etkBTw5dvyVHKT6r+MI860yHDD9w+P6OVXP6dfnl 042PkqqFF7dE9cN55B5IFQEcQDsaWzHs3CCnY57aafIRDAbpRtuPoHz4sQoJCH/kcQtQ JBTw== 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; bh=5dYAro5xJLCRE3nsrRU1RwKvsO8y48F/tG7nlJJ3TPQ=; b=n+BXFu1yIvjzl1AJhsviEksbsMFXdMJn+4MY3W4EJlq9og5DiX7N8sX9LOvYtflzdB LAqytBO4X3Z8HmINwlQ5TOsnV4OiATiZJjVLxXhk+VdNdbhsT0LB+SrLWqpS7Ec/NLNU P/P9cskUMmkDvQcYPMelzB7UIwZPpFKuH+CO0GLZfLH7iv2Xn8RIT3eU3ems8BXI5Aud 1+x7R086Z4j8uXnTp8/+20Vyl73BsFegvpCsijQJhV6C+Rm9uAewKSDA5uN76GQZz2eb lCzxTLU6kJlajKdhkG/9p2Mc0ZFDm0Oof7qpbfsRNr1jR04GG7a4DacKbtOcRTk8iBxu OJOw== X-Gm-Message-State: AHQUAuZ9Hp9+dfaJ9qUU8ykY1Nq/yiW6GnQtfdJVNl0K7ujH2NfBO7Y0 DXhBQG5RpfxscUSf9YK5nhuECMG1 X-Google-Smtp-Source: AHgI3IZS7A4AJJwCX08wOF/lxYQCpGNJmCUG5SB/Vory2RnRMAlJCOExXglNRb2kIgDoFQ2M+2/+1A== X-Received: by 2002:a1c:9d92:: with SMTP id g140mr3267910wme.35.1550591032396; Tue, 19 Feb 2019 07:43:52 -0800 (PST) Received: from vb-18.04 (254.7.19.109.rev.sfr.net. [109.19.7.254]) by smtp.gmail.com with ESMTPSA id t14sm13279655wrr.49.2019.02.19.07.43.50 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Tue, 19 Feb 2019 07:43:51 -0800 (PST) From: Francois Perrad X-Google-Original-From: Francois Perrad To: buildroot@busybox.net Date: Tue, 19 Feb 2019 16:43:07 +0100 Message-Id: <20190219154311.22173-7-francois.perrad@gadz.org> X-Mailer: git-send-email 2.17.1 In-Reply-To: <20190219154311.22173-1-francois.perrad@gadz.org> References: <20190219154311.22173-1-francois.perrad@gadz.org> Subject: [Buildroot] [next/testing Lua modules 07/11] support/testing: add luafilesystem test 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: , MIME-Version: 1.0 Errors-To: buildroot-bounces@busybox.net Sender: "buildroot" Signed-off-by: Francois Perrad --- .gitlab-ci.yml | 2 ++ .../tests/package/test_luafilesystem.py | 25 +++++++++++++++++++ 2 files changed, 27 insertions(+) create mode 100644 support/testing/tests/package/test_luafilesystem.py diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index f96f7f130..a73d6b7d0 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -338,6 +338,8 @@ tests.package.test_lua_utf8.TestLuaUtf8: { extends: .runtime_test } tests.package.test_lua_utf8.TestLuajitUtf8: { extends: .runtime_test } tests.package.test_luaexpat.TestLuaLuaExpat: { extends: .runtime_test } tests.package.test_luaexpat.TestLuajitLuaExpat: { extends: .runtime_test } +tests.package.test_luafilesystem.TestLuaLuaFileSystem: { extends: .runtime_test } +tests.package.test_luafilesystem.TestLuajitLuaFileSystem: { extends: .runtime_test } tests.package.test_perl.TestPerl: { extends: .runtime_test } tests.package.test_perl_class_load.TestPerlClassLoad: { extends: .runtime_test } tests.package.test_perl_dbd_mysql.TestPerlDBDmysql: { extends: .runtime_test } diff --git a/support/testing/tests/package/test_luafilesystem.py b/support/testing/tests/package/test_luafilesystem.py new file mode 100644 index 000000000..a84c1f300 --- /dev/null +++ b/support/testing/tests/package/test_luafilesystem.py @@ -0,0 +1,25 @@ +from tests.package.test_lua import TestLuaBase + + +class TestLuaLuaFileSystem(TestLuaBase): + config = TestLuaBase.config + \ + """ + BR2_PACKAGE_LUA=y + BR2_PACKAGE_LUAFILESYSTEM=y + """ + + def test_run(self): + self.login() + self.module_test("lfs") + + +class TestLuajitLuaFileSystem(TestLuaBase): + config = TestLuaBase.config + \ + """ + BR2_PACKAGE_LUAJIT=y + BR2_PACKAGE_LUAFILESYSTEM=y + """ + + def test_run(self): + self.login() + self.module_test("lfs")