#
48d59524 |
| 02-Feb-2024 |
Andrew Jones <andrew.jones@linux.dev> |
Merge branch 'riscv/initial-port-v3' into 'master'
riscv: Initial port
See merge request kvm-unit-tests/kvm-unit-tests!50
|
#
24aec76a |
| 03-Oct-2023 |
Andrew Jones <andrew.jones@linux.dev> |
lib: Add strcasecmp and strncasecmp
We'll soon want a case insensitive string comparison. Add toupper() and tolower() too (the latter gets used by the new string functions).
Signed-off-by: Andrew J
lib: Add strcasecmp and strncasecmp
We'll soon want a case insensitive string comparison. Add toupper() and tolower() too (the latter gets used by the new string functions).
Signed-off-by: Andrew Jones <andrew.jones@linux.dev> Reviewed-by: Thomas Huth <thuth@redhat.com> Acked-by: Thomas Huth <thuth@redhat.com> Reviewed-by: Eric Auger <eric.auger@redhat.com>
show more ...
|
#
5a22b344 |
| 26-May-2022 |
Andrew Jones <drjones@redhat.com> |
Merge branch 'misc/queue' into 'master'
lib: cleanups
See merge request kvm-unit-tests/kvm-unit-tests!32
|
#
5927d1c2 |
| 19-May-2022 |
Andrew Jones <drjones@redhat.com> |
lib: Add ctype.h and collect is* functions
We've been slowly adding ctype functions to different files without even exporting them. Let's change that.
Reviewed-by: Thomas Huth <thuth@redhat.com> Re
lib: Add ctype.h and collect is* functions
We've been slowly adding ctype functions to different files without even exporting them. Let's change that.
Reviewed-by: Thomas Huth <thuth@redhat.com> Reviewed-by: Nikos Nikoleris <nikos.nikoleris@arm.com> Signed-off-by: Andrew Jones <drjones@redhat.com>
show more ...
|
#
0e981298 |
| 19-May-2022 |
Andrew Jones <drjones@redhat.com> |
lib: Fix whitespace
printf.c and string.c are a couple of the original files and are the last that still have the original formatting. Let's finally clean them up!
The change was done by modifying
lib: Fix whitespace
printf.c and string.c are a couple of the original files and are the last that still have the original formatting. Let's finally clean them up!
The change was done by modifying Linux's scripts/Lindent to use 100 columns instead of 80 and then manually reverting a few changes that I didn't like, which I found by diffing with -b.
Acked-by: Thomas Huth <thuth@redhat.com> Reviewed-by: Nikos Nikoleris <nikos.nikoleris@arm.com> Signed-off-by: Andrew Jones <drjones@redhat.com>
show more ...
|
#
7f1ca26c |
| 13-Oct-2021 |
Andrew Jones <drjones@redhat.com> |
lib: Introduce strtoll/strtoull
Signed-off-by: Andrew Jones <drjones@redhat.com> Reviewed-by: Daniele Ahmed <ahmeddan@amazon.com> Message-Id: <20211013164259.88281-3-drjones@redhat.com> Signed-off-b
lib: Introduce strtoll/strtoull
Signed-off-by: Andrew Jones <drjones@redhat.com> Reviewed-by: Daniele Ahmed <ahmeddan@amazon.com> Message-Id: <20211013164259.88281-3-drjones@redhat.com> Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
show more ...
|
#
f583d924 |
| 30-Mar-2021 |
Paolo Bonzini <bonzini@gnu.org> |
Merge branch 'arm/queue' into 'master'
arm/arm64: Fixes, improvements, and prep for target-efi
See merge request kvm-unit-tests/kvm-unit-tests!6
|
#
546914b4 |
| 18-Mar-2021 |
Nikos Nikoleris <nikos.nikoleris@arm.com> |
devicetree: Parse correctly the stdout-path
The stdout-path property in the device tree is a string of the form
"UART_NODE:OPTS"
Where UART_NODE is a compatible serial port and OPTS specify parame
devicetree: Parse correctly the stdout-path
The stdout-path property in the device tree is a string of the form
"UART_NODE:OPTS"
Where UART_NODE is a compatible serial port and OPTS specify parameters such as the baud. Fix the way we parse the node and, at least for now, ignore options as we don't act on them.
Signed-off-by: Nikos Nikoleris <nikos.nikoleris@arm.com> Signed-off-by: Andrew Jones <drjones@redhat.com>
show more ...
|
#
b5501ed0 |
| 18-Mar-2021 |
Nikos Nikoleris <nikos.nikoleris@arm.com> |
lib/string: Add strnlen, strrchr and strtoul
This change adds two functions from <string.h> and one from <stdlib.h> in preparation for an update in libfdt.
Signed-off-by: Nikos Nikoleris <nikos.nik
lib/string: Add strnlen, strrchr and strtoul
This change adds two functions from <string.h> and one from <stdlib.h> in preparation for an update in libfdt.
Signed-off-by: Nikos Nikoleris <nikos.nikoleris@arm.com> [ Added strtol, overflow checks, and assert on errors. ] Signed-off-by: Andrew Jones <drjones@redhat.com>
show more ...
|
#
4837df6e |
| 14-Oct-2020 |
Andrew Jones <drjones@redhat.com> |
lib/string: Fix getenv name matching
Without confirming that the name length exactly matches too, then the string comparison would return the same value for VAR* as for VAR, when VAR came first in t
lib/string: Fix getenv name matching
Without confirming that the name length exactly matches too, then the string comparison would return the same value for VAR* as for VAR, when VAR came first in the environ array.
Signed-off-by: Andrew Jones <drjones@redhat.com> Message-Id: <20201014191444.136782-2-drjones@redhat.com> Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
show more ...
|
#
875b97b3 |
| 21-Apr-2017 |
Peter Feiner <pfeiner@google.com> |
lib: better test name filtering
Limited glob matching with leading or trailing '*'.
Tests (and globs of tests) can be excluded by prepending with a '-'.
Signed-off-by: Peter Feiner <pfeiner@google
lib: better test name filtering
Limited glob matching with leading or trailing '*'.
Tests (and globs of tests) can be excluded by prepending with a '-'.
Signed-off-by: Peter Feiner <pfeiner@google.com> Signed-off-by: David Matlack <dmatlack@google.com> Message-Id: <20170421005004.137260-6-dmatlack@google.com> Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
show more ...
|
#
4b6da826 |
| 07-Apr-2017 |
Thomas Huth <thuth@redhat.com> |
lib: Add headers to generic library files
Many files in the lib folder do not have proper statements about their license. Add such a header there so that it is clear under which conditions the code
lib: Add headers to generic library files
Many files in the lib folder do not have proper statements about their license. Add such a header there so that it is clear under which conditions the code can be used.
Signed-off-by: Thomas Huth <thuth@redhat.com> Reviewed-by: Andrew Jones <drjones@redhat.com> Signed-off-by: Radim Krčmář <rkrcmar@redhat.com>
show more ...
|
#
69205bf1 |
| 13-Jan-2017 |
Andrew Jones <drjones@redhat.com> |
lib/argv: introduce setup_env and getenv
Provide a function that imports an environ (a list of key=value environment variables). The list may be delimited by either '\0' or '\n'. If the list is deli
lib/argv: introduce setup_env and getenv
Provide a function that imports an environ (a list of key=value environment variables). The list may be delimited by either '\0' or '\n'. If the list is delimited by '\n', then we assume it's user input and do additional sanity checking, as well as allow variables to be commented out with '#'. We also provide getenv() to lookup the variables.
Signed-off-by: Andrew Jones <drjones@redhat.com> Signed-off-by: Radim Krčmář <rkrcmar@redhat.com>
show more ...
|
#
4fd53297 |
| 11-May-2016 |
Radim Krčmář <rkrcmar@redhat.com> |
lib/string: add strncmp
Reviewed-by: Andrew Jones <drjones@redhat.com> Signed-off-by: Radim Krčmář <rkrcmar@redhat.com> Message-Id: <1462983171-4208-5-git-send-email-rkrcmar@redhat.com> Signed-off-b
lib/string: add strncmp
Reviewed-by: Andrew Jones <drjones@redhat.com> Signed-off-by: Radim Krčmář <rkrcmar@redhat.com> Message-Id: <1462983171-4208-5-git-send-email-rkrcmar@redhat.com> Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
show more ...
|
#
53da5cc0 |
| 12-Dec-2014 |
Andrew Jones <drjones@redhat.com> |
report: add prefix support
Add some methods to report in order to manage output prefixes. Also add strstr to string, as it was useful for implementing report_prefix_pop. Prefixes can be useful, as t
report: add prefix support
Add some methods to report in order to manage output prefixes. Also add strstr to string, as it was useful for implementing report_prefix_pop. Prefixes can be useful, as test code frequently has the following pattern
main() { foreach(subtest) run(subtest) }
But, if we want output lines to include 'subtest: ', then we need
report("%s: ...", cond, subtest, ...)
for each report line. With push/pop we can now just do
subtest() { report_prefix_push(subtest);
report(...); ... report(...);
report_prefix_pop(); }
Signed-off-by: Andrew Jones <drjones@redhat.com> Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
show more ...
|
#
782ebe33 |
| 11-Jul-2014 |
Andrew Jones <drjones@redhat.com> |
libcflat: add more string functions
More string functions will be needed for libfdt, add them and also strcpy which was missing.
Split string function declarations out to own string.h.
Signed-off-
libcflat: add more string functions
More string functions will be needed for libfdt, add them and also strcpy which was missing.
Split string function declarations out to own string.h.
Signed-off-by: Andrew Jones <drjones@redhat.com> Acked-by: Christoffer Dall <christoffer.dall@linaro.org> Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
show more ...
|
#
8d68030e |
| 20-Jun-2013 |
Arthur Chunqi Li <yzt356@gmail.com> |
kvm-unit-tests: Add memcpy to lib/string.c
Add memcpy(void *dest, const void *src, size_t n) to lib/string.c. This function acts the same as memcpy in libc.
Signed-off-by: Arthur Chunqi Li <yzt356@
kvm-unit-tests: Add memcpy to lib/string.c
Add memcpy(void *dest, const void *src, size_t n) to lib/string.c. This function acts the same as memcpy in libc.
Signed-off-by: Arthur Chunqi Li <yzt356@gmail.com> [Add missing const. - Paolo] Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
show more ...
|
#
69da6c87 |
| 19-Dec-2010 |
Avi Kivity <avi@redhat.com> |
lib: add strcmp() implementation
Signed-off-by: Avi Kivity <avi@redhat.com>
|
#
1b708e8c |
| 31-Aug-2010 |
Jason Wang <jasowang@redhat.com> |
Introduce atol()
Signed-off-by: Jason Wang <jasowang@redhat.com> Signed-off-by: Avi Kivity <avi@redhat.com>
|
#
7d36db35 |
| 03-Aug-2010 |
Avi Kivity <avi@redhat.com> |
Initial commit from qemu-kvm.git kvm/test/
Signed-off-by: Avi Kivity <avi@redhat.com>
|