search for: generate_php_bindtests

Displaying 19 results from an estimated 19 matches for "generate_php_bindtests".

2015 Feb 10
1
[PATCH] php: add a simple bindtests test
...guests.pl /po-docs/*/*.1 diff --git a/generator/bindtests.ml b/generator/bindtests.ml index b75de15..2e9b6d3 100644 --- a/generator/bindtests.ml +++ b/generator/bindtests.ml @@ -909,6 +909,69 @@ and generate_golang_bindtests () = pr " return &s;\n"; pr "}\n" +and generate_php_bindtests () = + (* No header for this, as it is a .phpt file. *) + + (* Unfortunately, due to the way optional arguments work in PHP, + * we cannot test arbitrary arguments skipping the previous ones + * in the function signatures. + * + * Hence, check only the non-optional arguments, and fix the...
2019 Jul 02
0
[PATCH 01/12] Rust bindings: Add Rust bindings
...bjects = \ lua.cmo \ GObject.cmo \ golang.cmo \ + rust.cmo \ bindtests.cmo \ errnostring.cmo \ customize.cmo \ diff --git a/generator/bindtests.ml b/generator/bindtests.ml index 58d7897b3..8a5682d5e 100644 --- a/generator/bindtests.ml +++ b/generator/bindtests.ml @@ -983,6 +983,9 @@ and generate_php_bindtests () = dump "bindtests" +and generate_rust_bindtests () = + generate_header CStyle GPLv2plus + (* Language-independent bindings tests - we do it this way to * ensure there is parity in testing bindings across all languages. *) diff --git a/generator/bindtests.mli b/generator/bi...
2016 Feb 12
0
[PATCH] php: restructure and expand tests
...tory using the command output_to "csharp/Libguestfs.cs" generate_csharp; output_to "php/extension/php_guestfs_php.h" generate_php_h; output_to "php/extension/guestfs_php.c" generate_php_c; - output_to "php/extension/tests/guestfs_php_bindtests.phpt" generate_php_bindtests; + output_to "php/extension/tests/guestfs_090_bindtests.phpt" generate_php_bindtests; output_to "erlang/guestfs.erl" generate_erlang_erl; output_to "erlang/erl-guestfs.c" generate_erlang_c; output_to ~perm:0o555 "erlang/bindtests.erl" generate_erlan...
2017 Nov 05
3
[PATCH 1/2] common/mlstdutils: Add with_open_in and with_open_out functions.
...( + fun oc -> + output_string oc text; + flush oc + ); Unix.chmod fn 0o755 let envvars_string l = diff --git a/generator/bindtests.ml b/generator/bindtests.ml index 4bdff8092..79b020326 100644 --- a/generator/bindtests.ml +++ b/generator/bindtests.ml @@ -966,18 +966,20 @@ and generate_php_bindtests () = pr "--EXPECT--\n"; let dump filename = - let chan = open_in filename in - let rec loop () = - let line = input_line chan in - (match String.nsplit ":" line with - | ("obool"|"oint"|"oint64"|"ostring"|&quot...
2019 Jul 20
0
[PATCH] Rust bindings: Add Rust bindings
...jects = \ lua.cmo \ GObject.cmo \ golang.cmo \ + rust.cmo \ bindtests.cmo \ errnostring.cmo \ customize.cmo \ diff --git a/generator/bindtests.ml b/generator/bindtests.ml index 58d7897b3..e88e71c8a 100644 --- a/generator/bindtests.ml +++ b/generator/bindtests.ml @@ -983,6 +983,72 @@ and generate_php_bindtests () = dump "bindtests" +and generate_rust_bindtests () = + generate_header CStyle GPLv2plus; + + pr "extern crate guestfs;\n"; + pr "use guestfs::*;\n"; + pr "use std::default::Default;\n"; + pr "\n"; + pr "fn main() {\n"; + p...
2019 Jul 23
2
Re: [PATCH] Rust bindings: Add Rust bindings
...t.cmo \ > bindtests.cmo \ > errnostring.cmo \ > customize.cmo \ > diff --git a/generator/bindtests.ml b/generator/bindtests.ml > index 58d7897b3..e88e71c8a 100644 > --- a/generator/bindtests.ml > +++ b/generator/bindtests.ml > @@ -983,6 +983,72 @@ and generate_php_bindtests () = > > dump "bindtests" > > +and generate_rust_bindtests () = > + generate_header CStyle GPLv2plus; > + > + pr "extern crate guestfs;\n"; > + pr "use guestfs::*;\n"; > + pr "use std::default::Default;\n"; > + pr "\...
2019 Jul 23
0
Re: [PATCH] Rust bindings: Add Rust bindings
...jects = \ lua.cmo \ GObject.cmo \ golang.cmo \ + rust.cmo \ bindtests.cmo \ errnostring.cmo \ customize.cmo \ diff --git a/generator/bindtests.ml b/generator/bindtests.ml index 58d7897b3..7f99fcdae 100644 --- a/generator/bindtests.ml +++ b/generator/bindtests.ml @@ -983,6 +983,72 @@ and generate_php_bindtests () = dump "bindtests" +and generate_rust_bindtests () = + generate_header CStyle GPLv2plus; + + pr "extern crate guestfs;\n"; + pr "use guestfs::*;\n"; + pr "use std::default::Default;\n"; + pr "\n"; + pr "fn main() {\n"; + pr...
2019 Jul 20
2
Re: [PATCH] Rust bindings: Add Rust bindings
> Is this just trying if the guestfs can be linked with? Yes. In OCaml bindings, there is the corresponding test( https://github.com/libguestfs/libguestfs/blob/master/ocaml/t/guestfs_010_load.ml). I just mimicked it. If it is not required, I will remove it. divided the generated files and handmade files in rust/src/ directory. I'll send this fixed patch to this mailing list. I'm not
2019 Jun 27
16
[PATCH 1/9] Rust bindings: Add Rust bindings
...bjects = \ lua.cmo \ GObject.cmo \ golang.cmo \ + rust.cmo \ bindtests.cmo \ errnostring.cmo \ customize.cmo \ diff --git a/generator/bindtests.ml b/generator/bindtests.ml index 58d7897b3..41aef47ea 100644 --- a/generator/bindtests.ml +++ b/generator/bindtests.ml @@ -983,6 +983,9 @@ and generate_php_bindtests () = dump "bindtests" +and generate_rust_bindtests () = + generate_header CStyle GPLv2plus; + (* Language-independent bindings tests - we do it this way to * ensure there is parity in testing bindings across all languages. *) diff --git a/generator/bindtests.mli b/generator/b...
2019 Jul 08
2
Re: [PATCH] Add Rust bindings
On Mon, Jul 08, 2019 at 10:04:57AM +0100, Richard W.M. Jones wrote: >On Mon, Jul 08, 2019 at 10:49:55AM +0200, Martin Kletzander wrote: >> On Mon, Jul 08, 2019 at 10:10:10AM +0200, Pino Toscano wrote: >> >On Saturday, 6 July 2019 13:03:24 CEST Martin Kletzander wrote: >> >>Just one thing, the Cargo.toml includes a version under which the crate would be >>
2019 Jul 29
1
Re: [PATCH] Rust bindings: Add Rust bindings
...jects = \ lua.cmo \ GObject.cmo \ golang.cmo \ + rust.cmo \ bindtests.cmo \ errnostring.cmo \ customize.cmo \ diff --git a/generator/bindtests.ml b/generator/bindtests.ml index 58d7897b3..bc00cdfe2 100644 --- a/generator/bindtests.ml +++ b/generator/bindtests.ml @@ -983,6 +983,73 @@ and generate_php_bindtests () = dump "bindtests" +and generate_rust_bindtests () = + let copywrites = ["Hiroyuki Katsura <hiroyuki.katsura.0513@gmail.com>"] in + generate_header ~copywrites:copywrites CStyle GPLv2plus; + + pr "extern crate guestfs;\n"; + pr "use guestfs::*;\n...
2019 Jul 02
16
[PATCH] Add Rust bindings
I fixed the patch I submitted before based on comments, and there are some commits which are merged or divided. So, I will re-send all the patches. Regards, Hiroyuki Katsura
2016 Feb 23
0
[PATCH 1/4] generator: Add interfaces to all modules.
...nit +val generate_gobject_js_bindtests : unit -> unit +val generate_haskell_bindtests : unit -> unit +val generate_java_bindtests : unit -> unit +val generate_lua_bindtests : unit -> unit +val generate_ocaml_bindtests : unit -> unit +val generate_perl_bindtests : unit -> unit +val generate_php_bindtests : unit -> unit +val generate_python_bindtests : unit -> unit +val generate_ruby_bindtests : unit -> unit diff --git a/generator/c.mli b/generator/c.mli new file mode 100644 index 0000000..9a261a4 --- /dev/null +++ b/generator/c.mli @@ -0,0 +1,41 @@ +(* libguestfs + * Copyright (C) 2009-201...
2019 Jul 17
2
[PATCH] Rust bindings: Add Rust bindings
...jects = \ lua.cmo \ GObject.cmo \ golang.cmo \ + rust.cmo \ bindtests.cmo \ errnostring.cmo \ customize.cmo \ diff --git a/generator/bindtests.ml b/generator/bindtests.ml index 58d7897b3..e88e71c8a 100644 --- a/generator/bindtests.ml +++ b/generator/bindtests.ml @@ -983,6 +983,72 @@ and generate_php_bindtests () = dump "bindtests" +and generate_rust_bindtests () = + generate_header CStyle GPLv2plus; + + pr "extern crate guestfs;\n"; + pr "use guestfs::*;\n"; + pr "use std::default::Default;\n"; + pr "\n"; + pr "fn main() {\n"; + p...
2019 Jun 27
4
Re: [PATCH 9/9] Rust bindings: Complete bindings
Patch 9 is a kind of dumping ground of all kinds of stuff. It may be better to spend some time with git rebase -i trying to work this into more coherent patches. Rich. -- Richard Jones, Virtualization Group, Red Hat http://people.redhat.com/~rjones Read my programming and virtualization blog: http://rwmj.wordpress.com virt-p2v converts physical machines to virtual machines. Boot with a live
2019 Jul 26
4
Re: [PATCH] Rust bindings: Add Rust bindings
Hi Hiroyuki, sorry for the late reply. Most of the work is definitely nice! There are few notes below, although they are not big issues. I will check this patch once more on monday, especially the rust parts. Otherwise, I'd say that we are close to merging this :) On Tuesday, 23 July 2019 10:37:17 CEST Hiroyuki Katsura wrote: > From: Hiroyuki_Katsura
2019 Jun 27
0
[PATCH 9/9] Rust bindings: Complete bindings
...igured 'no' when you expected 'yes'" echo "then you should check the preceding messages." diff --git a/generator/bindtests.ml b/generator/bindtests.ml index 41aef47ea..e88e71c8a 100644 --- a/generator/bindtests.ml +++ b/generator/bindtests.ml @@ -986,6 +986,69 @@ and generate_php_bindtests () = and generate_rust_bindtests () = generate_header CStyle GPLv2plus; + pr "extern crate guestfs;\n"; + pr "use guestfs::*;\n"; + pr "use std::default::Default;\n"; + pr "\n"; + pr "fn main() {\n"; + pr " let g = match Handle::...
2016 Feb 23
7
[PATCH 0/4] Various tweaks to the generator.
Use interfaces files (*.mli files) instead of exporting all symbols randomly. Change the 'file is generated' warnings at the top of generated files so they accurately describe which source file generates each output file. Rich.
2016 Dec 08
4
[PATCH] generator: Share Common_utils code.
...let n = String.capitalize n in + let n = String.capitalize_ascii n in pr "%s_is_set: true, %s: []string{%s}" n n (String.concat ", " (List.map (sprintf "\"%s\"") xs)) ) optargs; @@ -971,7 +972,7 @@ and generate_php_bindtests () = let chan = open_in filename in let rec loop () = let line = input_line chan in - (match string_split ":" line with + (match String.nsplit ":" line with | ("obool"|"oint"|"oint64"|"ostring"|"ostri...