<feed xmlns='http://www.w3.org/2005/Atom'>
<title>libgpg-error/tests, branch gpgrt-1.50</title>
<subtitle>Error codes used by GnuPG et al.</subtitle>
<id>http://git.bktus.com/gpgfrontend/libgpg-error/atom?h=gpgrt-1.50</id>
<link rel='self' href='http://git.bktus.com/gpgfrontend/libgpg-error/atom?h=gpgrt-1.50'/>
<link rel='alternate' type='text/html' href='http://git.bktus.com/gpgfrontend/libgpg-error/'/>
<updated>2024-02-06T13:53:59Z</updated>
<entry>
<title>argparser: Implement a command mode.</title>
<updated>2024-02-06T13:53:59Z</updated>
<author>
<name>Werner Koch</name>
<email>wk@gnupg.org</email>
</author>
<published>2024-02-06T13:53:59Z</published>
<link rel='alternate' type='text/html' href='http://git.bktus.com/gpgfrontend/libgpg-error/commit/?id=b113114c7498fc6c48065a8c4816c610c6f08198'/>
<id>urn:sha1:b113114c7498fc6c48065a8c4816c610c6f08198</id>
<content type='text'>
* src/gpg-error.h.in (ARGPARSE_FLAG_COMMAND): New.
* src/argparse.c (struct _gpgrt_argparse_internal_s): Add flags
explicit_cmd_mode, cmd_mode, and command_seen.
(initialize): Init them.  Mark default commands as commands.
(handle_meta_command): New.
(handle_metacmd): Add "command-mode" and "-command-mode".
(find_long_option): Add arg only_commands.
(arg_parse): Factor some code out to ...
(handle_special_commands): new.
(arg_parse): Implement the command-mode.

* tests/t-argparse.c (main): Add some testing code.
--

GnuPG-bug-id: 6978
</content>
</entry>
<entry>
<title>tests: Use -no-fast-install LDFLAGS for Windows.</title>
<updated>2023-05-11T23:53:40Z</updated>
<author>
<name>NIIBE Yutaka</name>
<email>gniibe@fsij.org</email>
</author>
<published>2023-05-11T23:53:40Z</published>
<link rel='alternate' type='text/html' href='http://git.bktus.com/gpgfrontend/libgpg-error/commit/?id=dfdd07c3c488735d87c13f89270eeb4fa5714ef8'/>
<id>urn:sha1:dfdd07c3c488735d87c13f89270eeb4fa5714ef8</id>
<content type='text'>
* tests/Makefile.am [HAVE_W32_SYSTEM] (AM_LDFLAGS): Conditionalize.

--

Signed-off-by: NIIBE Yutaka &lt;gniibe@fsij.org&gt;
</content>
</entry>
<entry>
<title>Add more tests for t-printf and t-strerror.</title>
<updated>2022-12-13T03:08:05Z</updated>
<author>
<name>pengyi</name>
<email>pengyi37@huawei.com</email>
</author>
<published>2022-12-07T20:59:25Z</published>
<link rel='alternate' type='text/html' href='http://git.bktus.com/gpgfrontend/libgpg-error/commit/?id=72e0fb3fc858301de7b200e1c08da6904ab44bc0'/>
<id>urn:sha1:72e0fb3fc858301de7b200e1c08da6904ab44bc0</id>
<content type='text'>
* tests/t-printf.c (check_fwrite): New.
(main): Add check_fwrite.
* tests/t-strerror.c (main): Add three more cases to LIST.

--

The string in check_fwrite is from the Gateless Gate, for
people who want to discuss "Niente". --- gniibe

Co-authored-by: NIIBE Yutaka &lt;gniibe@fsij.org&gt;
Signed-off-by: "pengyi" &lt;pengyi37@huawei.com&gt;
</content>
</entry>
<entry>
<title>Remove Windows CE support.</title>
<updated>2022-06-28T03:05:04Z</updated>
<author>
<name>NIIBE Yutaka</name>
<email>gniibe@fsij.org</email>
</author>
<published>2022-06-28T03:05:04Z</published>
<link rel='alternate' type='text/html' href='http://git.bktus.com/gpgfrontend/libgpg-error/commit/?id=14ead267268f8ed14bf1ab49189646a95654b706'/>
<id>urn:sha1:14ead267268f8ed14bf1ab49189646a95654b706</id>
<content type='text'>
* contrib/*: Remove.
* Makefile.am: Remove contrib.
* autogen.sh: Remove Windows CE support.
* configure.ac (have_w32ce_system): Remove.
* src/Makefile.am [HAVE_W32CE_SYSTEM] (extra_cppflags): Remove.
(gpg_extra_headers): Remove.
(EXTRA_DIST): Remove mkw32errmap.c and w32ce-add.h
(BUILT_SOURCES): Remove mkw32errmap.map.c.
(tmp_files): Remove mkw32errmap.tab.h mkw32errmap.map.c
(CLEANFILES): Likewise.
* src/estream-printf.c [HAVE_W32CE_SYSTEM]: Remove.
* src/estream.c [HAVE_W32CE_SYSTEM]: Remove.
* src/gpg-error.def.in [HAVE_W32CE_SYSTEM]: Remove.
* src/gpgrt-int.h: Fix comment.
* src/init.c [HAVE_W32CE_SYSTEM]: Remove.
* src/init.h [HAVE_W32CE_SYSTEM]: Remove.
* src/mkheader.c: Remove Windows CE support.
* src/mkw32errmap.c, src/w32ce-add.h: Remove.
* src/spawn-posix.c [HAVE_W32CE_SYSTEM]: Remove.
* src/spawn-w32.c [HAVE_W32CE_SYSTEM]: Remove.
* src/sysutils.c [HAVE_W32CE_SYSTEM]: Remove.
* src/w32-estream.c [HAVE_W32CE_SYSTEM]: Remove.
* src/w32-reg.c [HAVE_W32CE_SYSTEM]: Remove.
* tests/Makefile.am [HAVE_W32CE_SYSTEM]: Remove.

--

GnuPG-bug-id: 5912
Signed-off-by: NIIBE Yutaka &lt;gniibe@fsij.org&gt;
</content>
</entry>
<entry>
<title>tests,w32: Use CreatePipe and es_sysopen.</title>
<updated>2021-11-29T04:46:48Z</updated>
<author>
<name>NIIBE Yutaka</name>
<email>gniibe@fsij.org</email>
</author>
<published>2021-11-29T04:46:48Z</published>
<link rel='alternate' type='text/html' href='http://git.bktus.com/gpgfrontend/libgpg-error/commit/?id=858bcd4343ac40566825cfa861ee60bcc54cb6c8'/>
<id>urn:sha1:858bcd4343ac40566825cfa861ee60bcc54cb6c8</id>
<content type='text'>
* tests/t-poll.c (create_pipe): Use CreatePipe.

--

Since POSIX pipe with file descriptor is not supported on Windows as
pollable, use Win32 Pipe instead.

Signed-off-by: NIIBE Yutaka &lt;gniibe@fsij.org&gt;
</content>
</entry>
<entry>
<title>build,tests: Run t-lock-single-posix only on platforms supported.</title>
<updated>2021-11-25T03:08:58Z</updated>
<author>
<name>NIIBE Yutaka</name>
<email>gniibe@fsij.org</email>
</author>
<published>2021-11-25T03:08:58Z</published>
<link rel='alternate' type='text/html' href='http://git.bktus.com/gpgfrontend/libgpg-error/commit/?id=50e0f32b19356fd7c64c799192379ff2204cd8a3'/>
<id>urn:sha1:50e0f32b19356fd7c64c799192379ff2204cd8a3</id>
<content type='text'>
* configure.ac (HAVE_LOCK_OPTIMIZATION): New.
* tests/Makefile.am: Use HAVE_LOCK_OPTIMIZATION for
t-lock-single-posix.

--

GnuPG-bug-id: 5699
Signed-off-by: NIIBE Yutaka &lt;gniibe@fsij.org&gt;
</content>
</entry>
<entry>
<title>argparse: Add more system variables.</title>
<updated>2021-11-03T12:50:17Z</updated>
<author>
<name>Werner Koch</name>
<email>wk@gnupg.org</email>
</author>
<published>2021-11-03T12:50:17Z</published>
<link rel='alternate' type='text/html' href='http://git.bktus.com/gpgfrontend/libgpg-error/commit/?id=62755bcd302eca755d52b80b62dc17ae0e683b75'/>
<id>urn:sha1:62755bcd302eca755d52b80b62dc17ae0e683b75</id>
<content type='text'>
* src/argparse.c (get_var): Fix "_windows", add "_gpgrtversion" and
"strusageN".
(handle_meta_if): Avoid evaluating inactive branches.
* tests/t-argparse.conf: Add a few other outputs.
</content>
</entry>
<entry>
<title>argparse: Add support to read values from the Windows Registry.</title>
<updated>2021-10-31T16:44:35Z</updated>
<author>
<name>Werner Koch</name>
<email>wk@gnupg.org</email>
</author>
<published>2021-10-31T16:44:08Z</published>
<link rel='alternate' type='text/html' href='http://git.bktus.com/gpgfrontend/libgpg-error/commit/?id=b1790f4cc71f14422255bbfba78e91f037e035dd'/>
<id>urn:sha1:b1790f4cc71f14422255bbfba78e91f037e035dd</id>
<content type='text'>
* src/argparse.c (struct variable_s): New.
(struct _gpgrt_argparse_internal_s): New fields expand, if_cond,
if_active and vartbl.
(deinitialize): Free vartbl.
(initialize): Clear new vars.
(get_var): New.
(substitute_vars): New.
(set_variable): New.
(handle_meta_if): New.
(handle_meta_let): New.
(handle_meta_getenv): New.
(handle_meta_echo): Re-implement in terms of variabale substitution.
(handle_meta_expand): New.
(handle_metacmd): Add new meta commands.
(_gpgrt_argparse): Expand values if enabled.
(_gpgrt_argparse): Take care of conditions.
(_gpgrt_argparser): Reset some state at the end of a file.

* tests/etc/t-argparse.conf: Adjust for changed system variables.
* tests/t-argparse.c (my_strusage): Add a value for a version test.
(main): Add new option "street".
* tests/t-argparse.conf: A couple if additions for the new conditions.
--

The whole thing is actually only for here for doing this

[let tkey HKLM\Foo\Bar\GnuPG:trusted-key-1]
[if $tkey]
  trusted-key $tkey
[fi]

But we are hackers and tend to make things more complicated^Wflexible.
Documentation will be done eventually.

Signed-off-by: Werner Koch &lt;wk@gnupg.org&gt;
</content>
</entry>
<entry>
<title>tests: Add a test for locking when single thread.</title>
<updated>2021-08-26T04:33:40Z</updated>
<author>
<name>NIIBE Yutaka</name>
<email>gniibe@fsij.org</email>
</author>
<published>2021-08-26T04:33:40Z</published>
<link rel='alternate' type='text/html' href='http://git.bktus.com/gpgfrontend/libgpg-error/commit/?id=2b476b3ebc1d13d681594c15505844766c0fbc4b'/>
<id>urn:sha1:2b476b3ebc1d13d681594c15505844766c0fbc4b</id>
<content type='text'>
* tests/Makefile.am (TESTS): Add t-lock-single-posix.
* tests/t-lock-single-posix.c: New.

--

GnuPG-bug-id: 5547
Signed-off-by: NIIBE Yutaka &lt;gniibe@fsij.org&gt;
</content>
</entry>
<entry>
<title>build,tests: Fix leaks of memory or file pointer.</title>
<updated>2021-04-12T04:06:17Z</updated>
<author>
<name>Jakub Jelen</name>
<email>jjelen@redhat.com</email>
</author>
<published>2021-04-12T04:06:17Z</published>
<link rel='alternate' type='text/html' href='http://git.bktus.com/gpgfrontend/libgpg-error/commit/?id=ad062b0a5b7d598081405ecfb71b51540281a1b7'/>
<id>urn:sha1:ad062b0a5b7d598081405ecfb71b51540281a1b7</id>
<content type='text'>
* src/mkheader.c (parse_config_h): Close FP.
* tests/t-b64.c (test_b64enc_string): Free STATE.
(test_b64dec_string): Free BUFFER.
* tests/t-syserror.c (main): Close FP.

--

GnuPG-bug-id: 5381
Signed-off-by: Jakub Jelen &lt;jjelen@redhat.com&gt;
</content>
</entry>
</feed>
