Re: [PATCH 18/35] virshtest: Adapt numeric option arg handling tests from 'virsh-optparse'

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On a Friday in 2024, Peter Krempa wrote:
Move the argument parsing tests excercising various numeric options
(except 'virsh event') from 'virsh-optparse' to 'virshtest'.

Signed-off-by: Peter Krempa <pkrempa@xxxxxxxxxx>
---
tests/virsh-optparse                    | 105 ------------------------
tests/virshtest.c                       |   1 +
tests/virshtestdata/numeric-parsing.in  |  43 ++++++++++
tests/virshtestdata/numeric-parsing.out |  12 +++
4 files changed, 56 insertions(+), 105 deletions(-)
create mode 100644 tests/virshtestdata/numeric-parsing.in
create mode 100644 tests/virshtestdata/numeric-parsing.out

diff --git a/tests/virshtest.c b/tests/virshtest.c
index 453b1d7a9e..37634a68a2 100644
--- a/tests/virshtest.c
+++ b/tests/virshtest.c
@@ -201,6 +201,7 @@ mymain(void)
    /* comprehensive coverage of argument assignment */
    DO_TEST_SCRIPT("argument-assignment", NULL, VIRSH_DEFAULT, "-k0", "-d0");
    DO_TEST_SCRIPT("snapshot-create-args", NULL, VIRSH_DEFAULT, "-q");
+    DO_TEST_SCRIPT("numeric-parsing", NULL, VIRSH_DEFAULT, "-q");

Please drop the "-q" here, to make the output file human-readable.


    VIR_FREE(custom_uri);
    return ret == 0 ? EXIT_SUCCESS : EXIT_FAILURE;

Reviewed-by: Ján Tomko <jtomko@xxxxxxxxxx>

Jano

Attachment: signature.asc
Description: PGP signature

_______________________________________________
Devel mailing list -- devel@xxxxxxxxxxxxxxxxx
To unsubscribe send an email to devel-leave@xxxxxxxxxxxxxxxxx

[Index of Archives]     [Virt Tools]     [Libvirt Users]     [Lib OS Info]     [Fedora Users]     [Fedora Desktop]     [Fedora SELinux]     [Big List of Linux Books]     [Yosemite News]     [KDE Users]     [Fedora Tools]

  Powered by Linux