Hugh McMaster
0eb85504b4
reg/tests: Update reg_open() and reg_open_() definitions.
...
Signed-off-by: Hugh McMaster <hugh.mcmaster@outlook.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2021-06-16 23:23:49 +02:00
Hugh McMaster
f068691995
reg/tests: Modify delete_key() to support use of RegDeleteKeyEx().
...
Signed-off-by: Hugh McMaster <hugh.mcmaster@outlook.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2021-06-16 23:23:49 +02:00
Hugh McMaster
8104629672
reg/tests: Test how values are overwritten when copying.
...
Signed-off-by: Hugh McMaster <hugh.mcmaster@outlook.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2021-06-10 22:30:30 +02:00
Hugh McMaster
664f8b638d
reg/tests: Test whether the 'copy' command copies user-defined key classes.
...
Signed-off-by: Hugh McMaster <hugh.mcmaster@outlook.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2021-06-01 21:25:14 +02:00
Hugh McMaster
8d9a228e99
reg: Support recursion in the 'copy' command.
...
Signed-off-by: Hugh McMaster <hugh.mcmaster@outlook.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2021-05-31 17:48:09 +02:00
Hugh McMaster
b1ccb87d9d
reg: Partially implement the 'copy' command.
...
Signed-off-by: Hugh McMaster <hugh.mcmaster@outlook.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2021-05-31 17:48:07 +02:00
Hugh McMaster
6c466296a7
reg: Fail if one or more arguments follow a help switch.
...
Signed-off-by: Hugh McMaster <hugh.mcmaster@outlook.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2021-05-17 18:49:10 +02:00
Hugh McMaster
ac32dd8abc
reg: Add initial support for the 'copy' command.
...
Signed-off-by: Hugh McMaster <hugh.mcmaster@outlook.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2021-05-17 18:49:10 +02:00
Hugh McMaster
ca57a86074
reg/tests: Add key and value order tests for the 'copy' command.
...
Signed-off-by: Hugh McMaster <hugh.mcmaster@outlook.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2021-05-17 18:49:10 +02:00
Hugh McMaster
baf0254bbb
reg/tests: Add more data tests for the 'copy' command.
...
Signed-off-by: Hugh McMaster <hugh.mcmaster@outlook.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2021-05-14 20:56:22 +02:00
Hugh McMaster
3115276367
reg/tests: Add complex data and hex type tests for the 'copy' command.
...
Signed-off-by: Hugh McMaster <hugh.mcmaster@outlook.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2021-05-14 20:56:19 +02:00
Hugh McMaster
48cd2588be
reg/tests: Add missing return code checks.
...
Signed-off-by: Hugh McMaster <hugh.mcmaster@outlook.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2021-05-14 20:56:14 +02:00
Hugh McMaster
bb609c6acb
reg/tests: Add data tests for the 'copy' command.
...
Signed-off-by: Hugh McMaster <hugh.mcmaster@outlook.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2021-05-13 16:45:28 +02:00
Hugh McMaster
c0619c0929
reg/tests: Add further syntax tests for the 'copy' command.
...
Signed-off-by: Hugh McMaster <hugh.mcmaster@outlook.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2021-05-12 16:56:28 +02:00
Hugh McMaster
a0dc4d7ce3
reg: Add or modify the (Default) registry value if [/v] is not specified.
...
Signed-off-by: Hugh McMaster <hugh.mcmaster@outlook.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2021-05-03 21:06:09 +02:00
Hugh McMaster
08786274e2
reg/tests: Update error messages.
...
Signed-off-by: Hugh McMaster <hugh.mcmaster@outlook.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2021-04-30 22:59:50 +02:00
Hugh McMaster
357601a01b
reg/tests: Add two REG_DWORD tests.
...
Signed-off-by: Hugh McMaster <hugh.mcmaster@outlook.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2021-04-30 22:59:50 +02:00
Hugh McMaster
a8e961ecac
reg/tests: Fix a typo in a REG_DWORD test.
...
Signed-off-by: Hugh McMaster <hugh.mcmaster@outlook.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2021-04-30 22:59:50 +02:00
Hugh McMaster
94b582b1a6
reg/tests: Split the REG_DWORD_BIG_ENDIAN tests from the REG_DWORD tests.
...
Signed-off-by: Hugh McMaster <hugh.mcmaster@outlook.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2021-04-30 22:59:50 +02:00
Hugh McMaster
1110421da9
reg/tests: Use string literals instead of a char buffer for REG_MULTI_SZ tests.
...
Signed-off-by: Hugh McMaster <hugh.mcmaster@outlook.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2021-04-30 22:59:50 +02:00
Hugh McMaster
1aae492dcb
reg/tests: Add and amend tests adding a (Default) value.
...
Signed-off-by: Hugh McMaster <hugh.mcmaster@outlook.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2021-04-30 22:59:50 +02:00
Hugh McMaster
8203c5db02
reg/tests: Verify that only the (Default) value is overwritten when neither /v nor /ve is specified.
...
Signed-off-by: Hugh McMaster <hugh.mcmaster@outlook.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2021-04-28 16:25:48 +02:00
Hugh McMaster
1ce21dbb5f
reg/tests: Rework syntax tests for the 'copy' operation.
...
Signed-off-by: Hugh McMaster <hugh.mcmaster@outlook.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2021-04-28 16:25:48 +02:00
Hugh McMaster
35ccb87a76
reg: Print a new line when recursing and the current key has no registry values.
...
Signed-off-by: Hugh McMaster <hugh.mcmaster@outlook.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2021-04-28 16:25:48 +02:00
Hugh McMaster
ec0a799ea8
reg: Only print the name of the registry key if it contains values or we are recursing.
...
Signed-off-by: Hugh McMaster <hugh.mcmaster@outlook.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2021-04-28 16:25:48 +02:00
Hugh McMaster
f32816268e
reg: Do not print a line break after querying a registry key.
...
Signed-off-by: Hugh McMaster <hugh.mcmaster@outlook.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2021-04-28 16:25:48 +02:00
Hugh McMaster
e685718c3b
reg: Print the full key path without a trailing backslash.
...
Signed-off-by: Hugh McMaster <hugh.mcmaster@outlook.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2021-04-21 21:00:33 +02:00
Hugh McMaster
797520db8f
reg: Fail if a system key has a trailing backslash but no subkey path.
...
Signed-off-by: Hugh McMaster <hugh.mcmaster@outlook.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2021-04-20 22:57:10 +02:00
Hugh McMaster
8b0602023a
reg/tests: Add tests for querying a key only containing subkeys.
...
Signed-off-by: Hugh McMaster <hugh.mcmaster@outlook.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2021-04-20 21:07:10 +02:00
Hugh McMaster
c573fce35b
reg/tests: Use 'hkey' in 'query' tests for consistency with other reg.exe tests.
...
Signed-off-by: Hugh McMaster <hugh.mcmaster@outlook.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2021-04-20 21:07:10 +02:00
Hugh McMaster
9752dfeea8
reg/tests: Only try querying an invalid key once.
...
Signed-off-by: Hugh McMaster <hugh.mcmaster@outlook.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2021-04-20 21:07:10 +02:00
Hugh McMaster
e9412a8ae0
reg/tests: Test key creation and initialization of the Default registry value.
...
Signed-off-by: Hugh McMaster <hugh.mcmaster@outlook.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2021-04-16 22:39:46 +02:00
Hugh McMaster
559086af62
reg/tests: Only pass a newly created HKEY if it is used in later tests.
...
Signed-off-by: Hugh McMaster <hugh.mcmaster@outlook.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2021-04-16 22:39:46 +02:00
Hugh McMaster
45b66285c3
reg/tests: Refactor 'add' tests into registry types, keys and syntax checks.
...
Signed-off-by: Hugh McMaster <hugh.mcmaster@outlook.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2021-04-15 17:41:40 +02:00
Hugh McMaster
f6566bf749
reg/tests: Test output of keys with a trailing backslash.
...
Signed-off-by: Hugh McMaster <hugh.mcmaster@outlook.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2021-04-15 17:41:40 +02:00
Hugh McMaster
f4b4398d79
reg/tests: Compare output of some 'query' recursion tests.
...
Recursively querying a registry key for a given value name produces an extra
line specifying the number of matches found.
This line is locale-specific, so we only exclude it from the comparison
on a test-by-test basis.
Signed-off-by: Hugh McMaster <hugh.mcmaster@outlook.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2021-04-15 17:41:40 +02:00
Hugh McMaster
5983247c3a
reg/tests: Compare 'query'test output with expected output.
...
Signed-off-by: Hugh McMaster <hugh.mcmaster@outlook.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2021-04-14 20:51:00 +02:00
Hugh McMaster
5bc2af7b1c
reg/tests: Give 'query' tests some structure.
...
Signed-off-by: Hugh McMaster <hugh.mcmaster@outlook.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2021-04-14 20:50:38 +02:00
Hugh McMaster
3d772fe408
reg/tests: Reorder failing 'query' tests.
...
Signed-off-by: Hugh McMaster <hugh.mcmaster@outlook.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2021-04-14 20:50:33 +02:00
Hugh McMaster
a47829e13d
reg/tests: Add tests for trailing backslashes after the system key.
...
Signed-off-by: Hugh McMaster <hugh.mcmaster@outlook.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2021-04-08 18:51:36 +02:00
Hugh McMaster
08976b3ee0
reg: Fail if duplicate command-line switches are passed to 'reg add'.
...
Signed-off-by: Hugh McMaster <hugh.mcmaster@outlook.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2021-03-30 17:10:03 +02:00
Hugh McMaster
2c84ec7ee0
reg: Fail if duplicate command-line switches are passed to 'reg query'.
...
Signed-off-by: Hugh McMaster <hugh.mcmaster@outlook.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2021-03-26 19:53:59 +01:00
Hugh McMaster
cd03238dd0
reg/tests: Test whether a .reg file extension is required when exporting.
...
Signed-off-by: Hugh McMaster <hugh.mcmaster@outlook.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2021-03-24 20:46:23 +01:00
Hugh McMaster
89251073c7
reg/tests: Test whether overwriting a registry key modifies existing keys and values.
...
Signed-off-by: Hugh McMaster <hugh.mcmaster@outlook.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2021-03-24 20:46:23 +01:00
Hugh McMaster
a87a380a75
reg/tests: Add tests for duplicate command-line switches.
...
Signed-off-by: Hugh McMaster <hugh.mcmaster@outlook.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2021-03-24 20:46:23 +01:00
Hugh McMaster
272d35afc6
reg: Stop parsing REG_SZ values containing NUL character sequences.
...
Signed-off-by: Hugh McMaster <hugh.mcmaster@outlook.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2021-03-12 12:49:42 +01:00
Hugh McMaster
53fd4df85f
reg/tests: Try exporting registry values with escaped null characters.
...
Signed-off-by: Hugh McMaster <hugh.mcmaster@outlook.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2021-03-10 19:01:38 +01:00
Hugh McMaster
1c2b966999
reg/tests: Try importing registry files with escaped null characters.
...
Signed-off-by: Hugh McMaster <hugh.mcmaster@outlook.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2021-03-10 19:01:38 +01:00
Hugh McMaster
aa98e3f6da
reg/tests: Try deleting strings containing escaped null characters.
...
Signed-off-by: Hugh McMaster <hugh.mcmaster@outlook.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2021-03-10 19:01:38 +01:00
Hugh McMaster
73f69d66b3
reg/tests: Always specify the expected exit code in error messages.
...
Signed-off-by: Hugh McMaster <hugh.mcmaster@outlook.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2021-03-09 21:33:43 +01:00