search for: tests_c_api

Displaying 20 results from an estimated 77 matches for "tests_c_api".

2015 Nov 04
2
[PATCH] tests/c-api: cache available features
Build a list of all the features used in action tests, and lazily read them as needed. This reduces the number of guestfs_feature_available calls for a full run from 117 to 18. --- generator/tests_c_api.ml | 77 +++++++++++++++++++++++++++++++++++++++++++++--- 1 file changed, 73 insertions(+), 4 deletions(-) diff --git a/generator/tests_c_api.ml b/generator/tests_c_api.ml index 6be753f..8c4e5ef 100644 --- a/generator/tests_c_api.ml +++ b/generator/tests_c_api.ml @@ -28,6 +28,8 @@ open Optgroups...
2016 Jan 27
2
[PATCH 1/2] generator: add TestRunOrUnsupported test type
...reate a new TestRunOrUnsupported test type, which represents a test sequence where a failure with ENOTSUP in the last command only marks the test as skipped. To be used mainly when testing features available only with some versions of helper tools used in the appliance, for example. --- generator/tests_c_api.ml | 26 ++++++++++++++++++++++++-- generator/types.ml | 5 +++++ generator/utils.ml | 3 ++- 3 files changed, 31 insertions(+), 3 deletions(-) diff --git a/generator/tests_c_api.ml b/generator/tests_c_api.ml index 8116e9e..7cf3763 100644 --- a/generator/tests_c_api.ml +++ b/generato...
2016 Dec 08
3
[PATCH 1/2] Remove most instances of OCaml warning 52.
See: http://caml.inria.fr/pub/docs/manual-ocaml/comp.html#s:comp-warnings --- builder/index_parser.ml | 8 ++++---- generator/tests_c_api.ml | 4 ++-- mllib/common_utils.ml | 2 +- v2v/inspect_source.ml | 2 +- v2v/linux.ml | 2 +- v2v/xpath_helpers.ml | 2 +- 6 files changed, 10 insertions(+), 10 deletions(-) diff --git a/builder/index_parser.ml b/builder/index_parser.ml index e5e4c6c..a3cae7d 100644 --- a/bui...
2012 Dec 14
1
[PATCH] Add support for getting and setting GPT partition type GUIDs
New APIs: part_set_gpt_type part_get_gpt_type --- appliance/packagelist.in | 1 + daemon/parted.c | 129 +++++++++++++++++++++++++++++++++++++++++++++++ generator/actions.ml | 30 +++++++++++ generator/tests_c_api.ml | 7 +++ generator/types.ml | 5 ++ src/MAX_PROC_NR | 2 +- 6 files changed, 173 insertions(+), 1 deletion(-) diff --git a/appliance/packagelist.in b/appliance/packagelist.in index 3ad343b..9b0cc09 100644 --- a/appliance/packagelist.in +++ b/appliance/packagelist.in @@ -111...
2016 Nov 08
0
[PATCH 2/3] Split internal stuff out of guestfs.h
...f function and structs declarations. --- .gitignore | 1 + generator/c.ml | 52 +++++++++++++++++++++---- generator/c.mli | 1 + generator/main.ml | 1 + generator/tests_c_api.ml | 1 + src/available.c | 1 + src/drives.c | 1 + src/file.c | 1 + src/handle.c | 1 + src/inspect-fs.c...
2016 Nov 08
4
[PATCH 1/3] generator: c: move internal functions
Move the generate_all_structs and generate_all_headers functions, previously internal within the implementation of generate_guestfs_h, to be usable by other functions in the same "C" module (but not public). Only code motion. --- generator/c.ml | 163 +++++++++++++++++++++++++++++---------------------------- 1 file changed, 82 insertions(+), 81 deletions(-) diff --git a/generator/c.ml
2014 Oct 22
0
[PATCH] tests: c-api: add $datadir and $databuilddir
...r and the integration in the Makefile.am) has been done as part of larger changes by Richard W.M. Jones <rjones@redhat.com>, see https://www.redhat.com/archives/libguestfs/2014-October/msg00044.html --- generator/actions.ml | 62 ++++++++++++++++++++++++------------------------ generator/tests_c_api.ml | 9 ++++--- tests/c-api/Makefile.am | 2 ++ tests/c-api/tests-main.c | 58 ++++++++++++++++++++++++++++++-------------- tests/c-api/tests.h | 2 +- 5 files changed, 78 insertions(+), 55 deletions(-) diff --git a/generator/actions.ml b/generator/actions.ml index 4cfba0d..370e6e0 100644...
2014 Oct 23
17
[PATCH 00/16] Small bits of non-Linux porting
...+ fish/Makefile.am | 2 +- fish/file-edit.c | 1 + fuse/test-fuse.c | 2 ++ generator/actions.ml | 50 +++++++++++++++--------------- generator/c.ml | 1 + generator/tests_c_api.ml | 20 +++++++++++- generator/types.ml | 5 +++ m4/.gitignore | 3 ++ mllib/Makefile.am | 1 + p2v/Makefile.am | 2 +- p2v/ssh.c | 2 --...
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.
2019 Apr 23
8
[PATCH 0/7] Make deprecation warnings more prominent
...| 2 +- generator/java.ml | 4 ++++ generator/lua.ml | 4 ++++ generator/perl.ml | 16 +++++++++++++++- generator/php.ml | 4 ++++ generator/python.ml | 16 ++++++++++++++++ generator/ruby.ml | 14 ++++++++++++++ generator/tests_c_api.ml | 4 ++++ inspector/Makefile.am | 2 +- lib/Makefile.am | 1 - make-fs/Makefile.am | 2 +- rescue/Makefile.am | 2 +- test-tool/Makefile.am | 2 +- tests/c-api/test-last-errno.c | 4 ++-- tests/c-api/tests-main.c | 5 ----- tes...
2017 Feb 21
1
Re: [PATCH 0/6] generator: Split up generator/actions.ml
...e: > On Saturday, 18 February 2017 12:54:35 CET Richard W.M. Jones wrote: > > Split up the huge generator/actions.ml into several smaller files. > > Few notes: > > - regarding patch #2: wasn't the order stable before? Except from the > explicitly seen order change in tests_c_api.ml, what made the actions > order non-deterministic? The tests were previously ordered by something like non_daemon_functions @ daemon_functions with no sorting at all. Which was a stable order, however it's difficult to replicate that exactly in the new code because previously interleav...
2016 Feb 23
0
[PATCH 1/4] generator: Add interfaces to all modules.
...++++++++++++++++++++++ generator/optgroups.mli | 22 ++++++++++++++++++++++ generator/perl.mli | 20 ++++++++++++++++++++ generator/php.mli | 20 ++++++++++++++++++++ generator/python.mli | 20 ++++++++++++++++++++ generator/ruby.mli | 19 +++++++++++++++++++ generator/tests_c_api.mli | 19 +++++++++++++++++++ generator/xdr.mli | 19 +++++++++++++++++++ 25 files changed, 571 insertions(+), 1 deletion(-) create mode 100644 generator/bindtests.mli create mode 100644 generator/c.mli create mode 100644 generator/checks.mli create mode 100644 generator/csharp.mli cre...
2014 Feb 10
5
[PATCH 0/4] add GUID validation (RHBZ#1008417)
...--- generator/java.ml | 15 +++++++++----- generator/lua.ml | 6 +++--- generator/ocaml.ml | 9 +++++--- generator/perl.ml | 8 +++---- generator/php.ml | 12 ++++++----- generator/python.ml | 12 +++++------ generator/ruby.ml | 4 ++-- generator/tests_c_api.ml | 6 ++++-- generator/types.ml | 6 ++++++ generator/utils.ml | 3 ++- generator/xdr.ml | 2 +- src/guestfs-internal.h | 3 +++ src/test-utils.c | 14 +++++++++++++ src/utils.c | 44 +++++++++++++++++++++++++++++++++++++++ 24 files changed, 204 ins...
2014 Oct 05
0
[PATCH v5 2/7] tests/c-api: Convert the C API tests to use the test harness.
...tests. Instead if a C++ compiler is not available then we build a "skip" script. --- .gitignore | 3 - Makefile.am | 4 +- generator/actions.ml | 150 ++++++++++++++++++++++++----------------------- generator/tests.ml | 26 ++++++++ generator/tests_c_api.ml | 9 ++- tests/c-api/Makefile.am | 65 ++++---------------- tests/c-api/tests-main.c | 56 ++++++++++++------ tests/c-api/tests.h | 2 +- tests/c-api/tests.mk | 71 ++++++++++++++++++++++ 9 files changed, 233 insertions(+), 153 deletions(-) create mode 100644 tests/c-api/tests....
2017 Jun 19
0
[PATCH v7 10/13] utils: Split out structs cleanups and printing into common/structs.
...| 5 ++++ fish/Makefile.am | 4 +++ generator/c.ml | 17 +++++------- generator/c.mli | 4 +-- generator/java.ml | 1 + generator/main.ml | 12 ++++----- generator/tests_c_api.ml | 1 + inspector/Makefile.am | 2 ++ inspector/inspector.c | 1 + java/Makefile.am | 2 ++ lib/Makefile.am | 6 ++++- lib/file.c | 1 + lib/fuse.c...
2015 Aug 06
0
[PATCH v4 02/17] tests/c-api: Convert the C API tests to use the test harness.
...s. Instead if a C++ compiler is not available then we build a "skip" script. --- .gitignore | 3 - Makefile.am | 4 +- generator/actions.ml | 150 ++++++++++++++++++++++++---------------------- generator/tests.ml | 28 +++++++++ generator/tests_c_api.ml | 9 ++- inspector/tests.mk | 2 +- tests/c-api/Makefile.am | 84 +++++++------------------- tests/c-api/test-dlopen.c | 15 ++--- tests/c-api/tests-main.c | 56 +++++++++++------ tests/c-api/tests.h | 2 +- tests/c-api/tests.mk | 79 ++++++++++++++++++++++++ 11 f...
2015 Oct 20
3
[PATCH 1/2] generator: add a RelativePathnameList parameter type
...-- generator/java.ml | 10 +++++----- generator/lua.ml | 6 +++--- generator/ocaml.ml | 7 ++++--- generator/perl.ml | 9 ++++++--- generator/php.ml | 13 ++++++++----- generator/python.ml | 13 +++++++------ generator/ruby.ml | 4 ++-- generator/tests_c_api.ml | 7 +++++-- generator/types.ml | 4 ++++ generator/utils.ml | 2 +- generator/xdr.ml | 3 ++- 20 files changed, 115 insertions(+), 56 deletions(-) diff --git a/generator/bindtests.ml b/generator/bindtests.ml index 0959704..1d9ea3e 100644 --- a/generator/bindtests.ml +++...
2015 Oct 21
2
[PATCH 1/2] generator: add a FilenameList parameter type
...-- generator/java.ml | 10 +++++----- generator/lua.ml | 6 +++--- generator/ocaml.ml | 7 ++++--- generator/perl.ml | 9 ++++++--- generator/php.ml | 13 ++++++++----- generator/python.ml | 13 +++++++------ generator/ruby.ml | 4 ++-- generator/tests_c_api.ml | 7 +++++-- generator/types.ml | 5 +++++ generator/utils.ml | 2 +- generator/xdr.ml | 3 ++- 20 files changed, 116 insertions(+), 56 deletions(-) diff --git a/generator/bindtests.ml b/generator/bindtests.ml index 0959704..020d059 100644 --- a/generator/bindtests.ml ++...
2017 Jun 15
0
[PATCH v6 11/41] utils: Rename ‘guestfs-internal-frontend.h’ to ‘utils.h’.
...| 2 +- generator/lua.ml | 2 +- generator/php.ml | 2 +- generator/python.ml | 2 +- generator/ruby.ml | 2 +- generator/tests_c_api.ml | 2 +- java/handle.c | 2 +- lib/Makefile.am | 2 +- lib/guestfs-internal-all.h | 9 ++++----- lib/guestfs-internal.h | 5 ++--- l...
2017 Jun 19
0
[PATCH v7 12/13] utils: Rename ‘guestfs-internal-frontend.h’ to ‘guestfs-utils.h’.
...| 2 +- generator/lua.ml | 2 +- generator/php.ml | 2 +- generator/python.ml | 2 +- generator/ruby.ml | 2 +- generator/tests_c_api.ml | 2 +- java/handle.c | 2 +- lib/Makefile.am | 2 +- lib/guestfs-internal-all.h | 9 ++++----- lib/guestfs-internal.h...