similar to: [PATCH] tests: Fix shebang tests on FreeBSD.

Displaying 20 results from an estimated 1000 matches similar to: "[PATCH] tests: Fix shebang tests on FreeBSD."

2019 Nov 25
0
[PATCH nbdkit 1/2] python: For v2 API, avoid copy by passing a buffer to pread.
It's more efficient if we pass the C buffer directly to Python code. In some cases the Python code will be able to write directly into the C buffer using functions like file.readinto and socket.recv_into. This avoids an extra copy. Thanks: Nir Soffer --- plugins/python/example.py | 8 ++++--- plugins/python/nbdkit-python-plugin.pod | 16 +++++-------- plugins/python/python.c
2018 Nov 09
0
Re: Further nbdkit patches for Haiku
On Fri, Nov 09, 2018 at 01:44:38AM +0100, François Revol wrote: > Le 06/11/2018 à 10:02, Richard W.M. Jones a écrit : > I made a patch here: > > https://github.com/mmuman/nbdkit/commits/tmpfix > > Also added one for the loader lib search path environment, which is > different for us. For the tmpdir patch, I changed plugins/example3/example3.c to a simpler patch which
2018 Nov 06
5
Further nbdkit patches for Haiku
François, thanks for the patches so far. This morning I pushed: https://github.com/libguestfs/nbdkit/commit/e26fb6cea3fdba13b5472daf6767e76abacd8d03 build: add missing #include "byte-swapping.h" https://github.com/libguestfs/nbdkit/commit/b962272a561bfed087316d24b7d510e4ab29a985 build: more fallbacks for mkostemp The iconv patch makes iconv a requirement. I don't know
2019 Nov 22
0
Shebang sh plugins (was: Re: [PATCH nbdkit v2 03/10] python: Implement nbdkit API version 2.)
On Fri, Nov 22, 2019 at 02:55:31PM -0600, Eric Blake wrote: > Unrelated side topic: in your recent addition of eval.sh, you > wondered if we should promote it to a full-blown plugin rather than > just an example script. But reading 'man nbdkit-sh-plugin', there > is no mention of turning an executable script into a full-blown > plugin via a shebang, the way that python
2019 Nov 23
0
Re: Shebang sh plugins (was: Re: [PATCH nbdkit v2 03/10] python: Implement nbdkit API version 2.)
On Sat, Nov 23, 2019 at 01:58:02AM +0200, Nir Soffer wrote: > On Fri, Nov 22, 2019 at 11:07 PM Richard W.M. Jones <rjones@redhat.com> wrote: > > > > On Fri, Nov 22, 2019 at 02:55:31PM -0600, Eric Blake wrote: > > > Unrelated side topic: in your recent addition of eval.sh, you > > > wondered if we should promote it to a full-blown plugin rather than > >
2019 Nov 24
1
Re: Shebang sh plugins (was: Re: [PATCH nbdkit v2 03/10] python: Implement nbdkit API version 2.)
On Sat, Nov 23, 2019 at 5:46 PM Richard W.M. Jones <rjones@redhat.com> wrote: > > On Sat, Nov 23, 2019 at 01:58:02AM +0200, Nir Soffer wrote: > > On Fri, Nov 22, 2019 at 11:07 PM Richard W.M. Jones <rjones@redhat.com> wrote: > > > > > > On Fri, Nov 22, 2019 at 02:55:31PM -0600, Eric Blake wrote: > > > > Unrelated side topic: in your recent
2009 Apr 24
3
Running in non-dev envs. with script/runner shebang setup
All, I have a script that runs script/runner via the shebang mechanism at the top o the file, like so: #!/usr/bin/env ./script/runner This works fine in development, how would I get it to run in non-development environments? Thanks, Wes -- Posted via http://www.ruby-forum.com/.
2018 Nov 13
0
Re: Further nbdkit patches for Haiku
On Tue, Nov 13, 2018 at 03:09:16PM +0100, François Revol wrote: > Le 13/11/2018 à 14:40, Richard W.M. Jones a écrit : > > On Tue, Nov 06, 2018 at 09:02:17AM +0000, Richard W.M. Jones wrote: > >> Finally about the list of failing tests: > >> > >> https://pastebin.com/1PFG85DS > >> > >> Mostly these are because of the old qemu-io binary. The
2019 Nov 22
3
Re: Shebang sh plugins (was: Re: [PATCH nbdkit v2 03/10] python: Implement nbdkit API version 2.)
On Fri, Nov 22, 2019 at 11:07 PM Richard W.M. Jones <rjones@redhat.com> wrote: > > On Fri, Nov 22, 2019 at 02:55:31PM -0600, Eric Blake wrote: > > Unrelated side topic: in your recent addition of eval.sh, you > > wondered if we should promote it to a full-blown plugin rather than > > just an example script. But reading 'man nbdkit-sh-plugin', there > >
2020 Aug 05
0
[PATCH nbdkit 4/4] python: Test the parallel thread model.
--- tests/Makefile.am | 3 + tests/test-python-thread-model.sh | 91 +++++++++++++++++++++++++++++++ tests/python-thread-model.py | 50 +++++++++++++++++ 3 files changed, 144 insertions(+) diff --git a/tests/Makefile.am b/tests/Makefile.am index 79be5639..2aa9e14c 100644 --- a/tests/Makefile.am +++ b/tests/Makefile.am @@ -1020,15 +1020,18 @@ TESTS += \ test-python.sh \
2019 Nov 22
0
[PATCH nbdkit v2 03/10] python: Implement nbdkit API version 2.
To avoid breaking existing plugins, Python plugins wishing to use version 2 of the API must opt in by declaring: def api_version(): return 2 (Plugins which do not do this are assumed to want API version 1). --- plugins/python/example.py | 15 +++- plugins/python/nbdkit-python-plugin.pod | 61 ++++++++++----- plugins/python/python.c | 100
2019 Nov 23
0
[PATCH nbdkit v3 2/7] python: Implement nbdkit API version 2.
To avoid breaking existing plugins, Python plugins wishing to use version 2 of the API must opt in by declaring: API_VERSION = 2 (Plugins which do not do this are assumed to want API version 1). --- plugins/python/example.py | 14 ++- plugins/python/nbdkit-python-plugin.pod | 56 +++++++----- plugins/python/python.c | 114 ++++++++++++++++++++---- tests/test.py
2009 Dec 03
1
only the first ResetCDR works after upgrade to 1.6
Hello - I am upgrading from asterisk v1.2 to v1.6 and I am seeing a problem with recording CDRs using MySQL. Unlike all of the other postings and web pages I have found on this issue, my installation successfully stores the -first- CDR, but nothing after that. As background info, I will note that I don't use CDRs for billing, but more in a logging fashion, to record how a given call
2019 Nov 22
0
[PATCH nbdkit v2 10/10] tests: Test the Python plugin thoroughly.
This tests the Python plugin thoroughly by issuing client commands through libnbd and checking we get the expected results. --- tests/Makefile.am | 13 +-- tests/test-python-plugin.py | 134 ++++++++++++++++++++++++++++ tests/test-python.py | 172 ++++++++++++++++++++++++++++++++++++ tests/test.py | 60 ------------- 4 files changed, 309 insertions(+), 70
2020 May 01
0
Re: [PATCH] [v2] WIP: ddrescue mapfile filter
On 5/1/20 2:16 PM, Fran?ois Revol wrote: > This allows to overlay bad sectors according to the mapfile generated by > ddrescue, to then see where sectors are used using fsck and trying to > copy files around. > > Signed-off-by: Fran?ois Revol <revol at free.fr> > --- Focusing on just the docs: > +++ b/filters/ddrescue/nbdkit-ddrescue-filter.pod > @@ -0,0 +1,74 @@
2020 May 22
0
[PATCH] [v3] ddrescue mapfile filter
This allows to overlay bad sectors according to the mapfile generated by ddrescue, to then see where sectors are used using fsck and trying to copy files around. Should now be mature enough to be useful to someone else. And we have a proper test also. Signed-off-by: François Revol <revol@free.fr> --- configure.ac | 2 + filters/ddrescue/Makefile.am
2020 May 01
4
[PATCH] [v2] WIP: ddrescue mapfile filter
This allows to overlay bad sectors according to the mapfile generated by ddrescue, to then see where sectors are used using fsck and trying to copy files around. Signed-off-by: Fran?ois Revol <revol at free.fr> --- configure.ac | 2 + filters/ddrescue/Makefile.am | 75 +++++++ filters/ddrescue/ddrescue.c | 211
2015 Oct 05
1
[PATCH] Fix shebang in perl scripts
Instead of hardcoding the location of perl (assuming it is installed in /usr), use /usr/bin/env to run it, and thus picking it from $PATH. This makes it possible to run these scripts also on installations with perl in a different prefix than /usr. Also, given that we want enable warnings on scripts, turn the -w previously in shebang to explicit "use warnings;" in scripts which
2018 Nov 13
2
Re: Further nbdkit patches for Haiku
Le 13/11/2018 à 14:40, Richard W.M. Jones a écrit : > On Tue, Nov 06, 2018 at 09:02:17AM +0000, Richard W.M. Jones wrote: >> Finally about the list of failing tests: >> >> https://pastebin.com/1PFG85DS >> >> Mostly these are because of the old qemu-io binary. The qemu-io -f >> option was added 4 years ago :-/ so it could be time to upgrade. > > FWIW
2020 May 22
0
Re: [PATCH] [v2] WIP: ddrescue mapfile filter
On Fri, May 22, 2020 at 02:13:22AM +0200, François Revol wrote: > Le 01/05/2020 à 23:16, Richard W.M. Jones a écrit : > > On Fri, May 01, 2020 at 09:16:14PM +0200, François Revol wrote: > >> +nbdkit_ddrescue_filter_la_LDFLAGS = \ > >> + -module -avoid-version -shared \ > >> + -Wl,--version-script=$(top_srcdir)/filters/filters.syms \ > >> + $(NULL) >