From patchwork Mon May 18 05:23:45 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Francois Perrad X-Patchwork-Id: 1292329 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.138; helo=whitealder.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.a=rsa-sha256 header.s=20161025 header.b=rOrLCII8; dkim-atps=neutral Received: from whitealder.osuosl.org (smtp1.osuosl.org [140.211.166.138]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ozlabs.org (Postfix) with ESMTPS id 49QS9Y2Qkcz9sT8 for ; Mon, 18 May 2020 15:24:01 +1000 (AEST) Received: from localhost (localhost [127.0.0.1]) by whitealder.osuosl.org (Postfix) with ESMTP id 88DF887A60; Mon, 18 May 2020 05:23:59 +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 anAcQZXwuKas; Mon, 18 May 2020 05:23:58 +0000 (UTC) Received: from ash.osuosl.org (ash.osuosl.org [140.211.166.34]) by whitealder.osuosl.org (Postfix) with ESMTP id 4FB388763C; Mon, 18 May 2020 05:23:58 +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 0DEE71BF3DE for ; Mon, 18 May 2020 05:23:57 +0000 (UTC) Received: from localhost (localhost [127.0.0.1]) by whitealder.osuosl.org (Postfix) with ESMTP id 090CE8763C for ; Mon, 18 May 2020 05:23:57 +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 MCJFXdeCXfa0 for ; Mon, 18 May 2020 05:23:55 +0000 (UTC) X-Greylist: domain auto-whitelisted by SQLgrey-1.7.6 Received: from mail-wm1-f65.google.com (mail-wm1-f65.google.com [209.85.128.65]) by whitealder.osuosl.org (Postfix) with ESMTPS id 8EC9386581 for ; Mon, 18 May 2020 05:23:55 +0000 (UTC) Received: by mail-wm1-f65.google.com with SMTP id m12so7904898wmc.0 for ; Sun, 17 May 2020 22:23:55 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:cc:subject:date:message-id:mime-version :content-transfer-encoding; bh=6qAnLnwL1Gbb1BoNO7eHeCCJxBeuRw56pWCNWJFgLm4=; b=rOrLCII8L6cBFjPSGSzgJ1vfNZoHIHSOWQyNdI/RUlWBt0p2yDTJM1flH2b76Qz9hp +4a7G+NJwAScUpG5b7WkYdpGNYfrdFgznzzC3MpVOWohC/jst8k/fheNmxiCCh5p8e/A 7SNlp18jQo/XARhv4u+N64mBeY8z6ZF1eBoOy2hPXIjN/IwUODkPCuTZBQb5kupBRCub 4PzHew1QmoEm98uxJ2KMt2kzPtMhr/Ri5dxpvfNs7DzuW/2SM2Lcp8aiamGt9eHNWvf2 I29xsQgT53iGjv8qxtqXPJX3QOb4yiQ9e4PPvZ5/TpRnS9OhdTn0hVjRHLpY2OzeeT0e LlUg== 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=6qAnLnwL1Gbb1BoNO7eHeCCJxBeuRw56pWCNWJFgLm4=; b=Ie5WG/GNfDsziZoN7ph5dQ89MQZa9CBmjeiDq4E7foPccSJQliHtMSC8oSsJPmM9wP UzyuCl7uYcFguYP0UTFmHwlhpjcilXgpHfx/x9uJTb645Xm8VZ+ClsZ7wkuklTx7+kah U4McF3BWue8REDxzH2Wsm+W9053Xn8qyRWZQk+FTlFjUNwa2OceSL8v39pSdRoAxiRoh Erla5QkYalh03w3lG6F5zxbLG7cAJTrFHkz9t6ZyK3Hko1J8FBtC9/9dtuQD4Wv3KSt1 MLV6Ry51SmbqCZtgOu2fpLglKS5xD0KJ0aL9a/e7IYvoozuKZ01M1H6QFbcjor1RbGKJ TZ5A== X-Gm-Message-State: AOAM530jOK/7P3GinVtswTZI6hzeutRHpS93UIVM2eAlSot0VyEilgk5 NcPUTdRYd317Z5xuT5urtQ4LuC8A X-Google-Smtp-Source: ABdhPJyV3pAV2FWKuChWXERMTPquy9t/Ksocc4/yK+cEaIshUPqmN0qw0uWM8Vqb7t5V0+GlnXN31w== X-Received: by 2002:a1c:a7cd:: with SMTP id q196mr16831654wme.141.1589779433512; Sun, 17 May 2020 22:23:53 -0700 (PDT) Received: from vm-xubuntu20.04 (254.7.19.109.rev.sfr.net. [109.19.7.254]) by smtp.gmail.com with ESMTPSA id v126sm15706603wma.9.2020.05.17.22.23.52 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 17 May 2020 22:23:53 -0700 (PDT) From: Francois Perrad X-Google-Original-From: Francois Perrad To: buildroot@busybox.net Date: Mon, 18 May 2020 07:23:45 +0200 Message-Id: <20200518052345.1721724-1-francois.perrad@gadz.org> X-Mailer: git-send-email 2.25.1 MIME-Version: 1.0 Subject: [Buildroot] [PATCH] package/lua-inotify: new package 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: , Errors-To: buildroot-bounces@busybox.net Sender: "buildroot" Signed-off-by: Francois Perrad --- .gitlab-ci.yml | 2 ++ package/Config.in | 1 + package/lua-inotify/Config.in | 6 +++++ package/lua-inotify/lua-inotify.hash | 3 +++ package/lua-inotify/lua-inotify.mk | 14 +++++++++++ .../testing/tests/package/test_lua_inotify.py | 25 +++++++++++++++++++ 6 files changed, 51 insertions(+) create mode 100644 package/lua-inotify/Config.in create mode 100644 package/lua-inotify/lua-inotify.hash create mode 100644 package/lua-inotify/lua-inotify.mk create mode 100644 support/testing/tests/package/test_lua_inotify.py diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index fa8e077a0..85dadd00d 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -421,6 +421,8 @@ tests.package.test_lua_gd.TestLuaLuaGD: { extends: .runtime_test } tests.package.test_lua_gd.TestLuajitLuaGD: { extends: .runtime_test } tests.package.test_lua_http.TestLuaHttp: { extends: .runtime_test } tests.package.test_lua_http.TestLuajitHttp: { extends: .runtime_test } +tests.package.test_lua_inotify.TestLuaInotify: { extends: .runtime_test } +tests.package.test_lua_inotify.TestLuajitInotify: { extends: .runtime_test } tests.package.test_lua_lyaml.TestLuaLuaLyaml: { extends: .runtime_test } tests.package.test_lua_lyaml.TestLuajitLuaLyaml: { extends: .runtime_test } tests.package.test_lua_sdl2.TestLuaLuaSDL2: { extends: .runtime_test } diff --git a/package/Config.in b/package/Config.in index c12676d85..191eea859 100644 --- a/package/Config.in +++ b/package/Config.in @@ -653,6 +653,7 @@ menu "Lua libraries/modules" source "package/lua-gd/Config.in" source "package/lua-http/Config.in" source "package/lua-iconv/Config.in" + source "package/lua-inotify/Config.in" source "package/lua-livr/Config.in" source "package/lua-livr-extra/Config.in" source "package/lua-lpeg-patterns/Config.in" diff --git a/package/lua-inotify/Config.in b/package/lua-inotify/Config.in new file mode 100644 index 000000000..2b0c943c6 --- /dev/null +++ b/package/lua-inotify/Config.in @@ -0,0 +1,6 @@ +config BR2_PACKAGE_LUA_INOTIFY + bool "lua-inotify" + help + Inotify bindings for Lua. + + http://hoelz.ro/projects/linotify diff --git a/package/lua-inotify/lua-inotify.hash b/package/lua-inotify/lua-inotify.hash new file mode 100644 index 000000000..183638954 --- /dev/null +++ b/package/lua-inotify/lua-inotify.hash @@ -0,0 +1,3 @@ +# computed by luarocks/buildroot +sha256 9164b5777b132d7e1e073478d8837a526262991c57e32d75d517100f533eb436 inotify-0.5-1.src.rock +sha256 b02158adb3c7763e1183a9386672f4f037bfeaab0cb0c73d684f34f3ea1993d8 linotify-0.5/COPYRIGHT diff --git a/package/lua-inotify/lua-inotify.mk b/package/lua-inotify/lua-inotify.mk new file mode 100644 index 000000000..dde7fc0fa --- /dev/null +++ b/package/lua-inotify/lua-inotify.mk @@ -0,0 +1,14 @@ +################################################################################ +# +# lua-inotify +# +################################################################################ + +LUA_INOTIFY_VERSION_UPSTREAM = 0.5 +LUA_INOTIFY_VERSION = $(LUA_INOTIFY_VERSION_UPSTREAM)-1 +LUA_INOTIFY_NAME_UPSTREAM = inotify +LUA_INOTIFY_SUBDIR = linotify-$(LUA_INOTIFY_VERSION_UPSTREAM) +LUA_INOTIFY_LICENSE = MIT +LUA_INOTIFY_LICENSE_FILES = $(LUA_INOTIFY_SUBDIR)/COPYRIGHT + +$(eval $(luarocks-package)) diff --git a/support/testing/tests/package/test_lua_inotify.py b/support/testing/tests/package/test_lua_inotify.py new file mode 100644 index 000000000..c951a9c5d --- /dev/null +++ b/support/testing/tests/package/test_lua_inotify.py @@ -0,0 +1,25 @@ +from tests.package.test_lua import TestLuaBase + + +class TestLuaInotify(TestLuaBase): + config = TestLuaBase.config + \ + """ + BR2_PACKAGE_LUA=y + BR2_PACKAGE_LUA_INOTIFY=y + """ + + def test_run(self): + self.login() + self.module_test("inotify") + + +class TestLuajitInotify(TestLuaBase): + config = TestLuaBase.config + \ + """ + BR2_PACKAGE_LUAJIT=y + BR2_PACKAGE_LUA_INOTIFY=y + """ + + def test_run(self): + self.login() + self.module_test("inotify")