* [Buildroot] [PATCH next 1/2] package/lsof: bump to version 4.98.0
@ 2023-03-11 12:46 Julien Olivain
2023-03-11 12:46 ` [Buildroot] [PATCH next 2/2] support/testing/tests/package/test_lsof.py: new runtime test Julien Olivain
2023-03-12 9:17 ` [Buildroot] [PATCH next 1/2] package/lsof: bump to version 4.98.0 Thomas Petazzoni via buildroot
0 siblings, 2 replies; 3+ messages in thread
From: Julien Olivain @ 2023-03-11 12:46 UTC (permalink / raw)
To: buildroot; +Cc: Julien Olivain
For change log since 4.96.5, see:
- https://github.com/lsof-org/lsof/releases/tag/4.97.0
- https://github.com/lsof-org/lsof/releases/tag/4.98.0
Signed-off-by: Julien Olivain <ju.o@free.fr>
---
Patch tested on branch next at commit b793f3a with commands:
make check-package
...
0 warnings generated
utils/test-pkg -a -p lsof
...
45 builds, 2 skipped, 0 build failed, 0 legal-info failed, 0 show-info failed
---
package/lsof/lsof.hash | 2 +-
package/lsof/lsof.mk | 2 +-
2 files changed, 2 insertions(+), 2 deletions(-)
diff --git a/package/lsof/lsof.hash b/package/lsof/lsof.hash
index 29cf443a24..b6a29b3cea 100644
--- a/package/lsof/lsof.hash
+++ b/package/lsof/lsof.hash
@@ -1,3 +1,3 @@
# Locally calculated
-sha256 e9030af1123ff052ab69e12ef55b8a17dc47ac4bccfba85ee1ca1f31acf29607 lsof-4.96.5.tar.gz
+sha256 80308a614508814ac70eb2ae1ed2c4344dcf6076fa60afc7734d6b1a79e62b16 lsof-4.98.0.tar.gz
sha256 32a728188b19bf86917659d904ab29d0a294b4506e1c98b8b7f1c70ab4975fe1 dialects/linux/dproto.h
diff --git a/package/lsof/lsof.mk b/package/lsof/lsof.mk
index fd5887141b..66911dddb9 100644
--- a/package/lsof/lsof.mk
+++ b/package/lsof/lsof.mk
@@ -4,7 +4,7 @@
#
################################################################################
-LSOF_VERSION = 4.96.5
+LSOF_VERSION = 4.98.0
LSOF_SITE = $(call github,lsof-org,lsof,$(LSOF_VERSION))
LSOF_LICENSE = lsof license
# License is repeated in each file, this is a relatively small one.
--
2.39.2
_______________________________________________
buildroot mailing list
buildroot@buildroot.org
https://lists.buildroot.org/mailman/listinfo/buildroot
^ permalink raw reply related [flat|nested] 3+ messages in thread* [Buildroot] [PATCH next 2/2] support/testing/tests/package/test_lsof.py: new runtime test
2023-03-11 12:46 [Buildroot] [PATCH next 1/2] package/lsof: bump to version 4.98.0 Julien Olivain
@ 2023-03-11 12:46 ` Julien Olivain
2023-03-12 9:17 ` [Buildroot] [PATCH next 1/2] package/lsof: bump to version 4.98.0 Thomas Petazzoni via buildroot
1 sibling, 0 replies; 3+ messages in thread
From: Julien Olivain @ 2023-03-11 12:46 UTC (permalink / raw)
To: buildroot; +Cc: Julien Olivain
Signed-off-by: Julien Olivain <ju.o@free.fr>
---
Patch tested on branch next at commit b793f3a with commands:
python3 -m flake8 support/testing/tests/package/test_lsof.py
[no-output]
support/testing/run-tests \
-d dl -o output_folder \
tests.package.test_lsof
...
OK
---
DEVELOPERS | 1 +
support/testing/tests/package/test_lsof.py | 41 ++++++++++++++++++++++
2 files changed, 42 insertions(+)
create mode 100644 support/testing/tests/package/test_lsof.py
diff --git a/DEVELOPERS b/DEVELOPERS
index d052e59122..7733d5a04e 100644
--- a/DEVELOPERS
+++ b/DEVELOPERS
@@ -1719,6 +1719,7 @@ F: support/testing/tests/package/test_gnupg2.py
F: support/testing/tests/package/test_highway.py
F: support/testing/tests/package/test_hwloc.py
F: support/testing/tests/package/test_libjxl.py
+F: support/testing/tests/package/test_lsof.py
F: support/testing/tests/package/test_ncdu.py
F: support/testing/tests/package/test_octave.py
F: support/testing/tests/package/test_ola.py
diff --git a/support/testing/tests/package/test_lsof.py b/support/testing/tests/package/test_lsof.py
new file mode 100644
index 0000000000..b0478dfbb7
--- /dev/null
+++ b/support/testing/tests/package/test_lsof.py
@@ -0,0 +1,41 @@
+import os
+
+import infra.basetest
+
+
+class TestLsof(infra.basetest.BRTest):
+ config = infra.basetest.BASIC_TOOLCHAIN_CONFIG + \
+ """
+ BR2_PACKAGE_BUSYBOX_SHOW_OTHERS=y
+ BR2_PACKAGE_LSOF=y
+ BR2_TARGET_ROOTFS_CPIO=y
+ # BR2_TARGET_ROOTFS_TAR is not set
+ """
+
+ def test_run(self):
+ cpio_file = os.path.join(self.builddir, "images", "rootfs.cpio")
+ self.emulator.boot(arch="armv5",
+ kernel="builtin",
+ options=["-initrd", cpio_file])
+ self.emulator.login()
+
+ test_file = "/tmp/this-is-a-test-file"
+
+ # Check the program can execute
+ self.assertRunOk("lsof -v")
+
+ # Check a normal program invocation
+ self.assertRunOk("lsof")
+
+ # Check lsof fails if requested file is not opened
+ _, exit_code = self.emulator.run("lsof {}".format(test_file))
+ self.assertNotEqual(exit_code, 0)
+
+ # Open the test file from the shell on descriptor 10
+ self.assertRunOk("exec 10> {}".format(test_file))
+
+ # Check that lsof now show the file
+ output, exit_code = self.emulator.run("lsof {}".format(test_file))
+ self.assertEqual(exit_code, 0)
+ # output[0] is the lsof header line
+ self.assertIn(test_file, output[1])
--
2.39.2
_______________________________________________
buildroot mailing list
buildroot@buildroot.org
https://lists.buildroot.org/mailman/listinfo/buildroot
^ permalink raw reply related [flat|nested] 3+ messages in thread* Re: [Buildroot] [PATCH next 1/2] package/lsof: bump to version 4.98.0
2023-03-11 12:46 [Buildroot] [PATCH next 1/2] package/lsof: bump to version 4.98.0 Julien Olivain
2023-03-11 12:46 ` [Buildroot] [PATCH next 2/2] support/testing/tests/package/test_lsof.py: new runtime test Julien Olivain
@ 2023-03-12 9:17 ` Thomas Petazzoni via buildroot
1 sibling, 0 replies; 3+ messages in thread
From: Thomas Petazzoni via buildroot @ 2023-03-12 9:17 UTC (permalink / raw)
To: Julien Olivain; +Cc: buildroot
On Sat, 11 Mar 2023 13:46:06 +0100
Julien Olivain <ju.o@free.fr> wrote:
> For change log since 4.96.5, see:
> - https://github.com/lsof-org/lsof/releases/tag/4.97.0
> - https://github.com/lsof-org/lsof/releases/tag/4.98.0
>
> Signed-off-by: Julien Olivain <ju.o@free.fr>
> ---
> Patch tested on branch next at commit b793f3a with commands:
Both applied to next. Thanks!
Thomas
--
Thomas Petazzoni, CTO, Bootlin
Embedded Linux and Kernel engineering
https://bootlin.com
_______________________________________________
buildroot mailing list
buildroot@buildroot.org
https://lists.buildroot.org/mailman/listinfo/buildroot
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2023-03-12 9:17 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2023-03-11 12:46 [Buildroot] [PATCH next 1/2] package/lsof: bump to version 4.98.0 Julien Olivain
2023-03-11 12:46 ` [Buildroot] [PATCH next 2/2] support/testing/tests/package/test_lsof.py: new runtime test Julien Olivain
2023-03-12 9:17 ` [Buildroot] [PATCH next 1/2] package/lsof: bump to version 4.98.0 Thomas Petazzoni via buildroot
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.