O Thu, Feb 03, 2022 at 12:15:19PM +0100, Thomas Monjalon wrote:
> 26/01/2022 06:10, Jie Zhou:
> > - Add python script to check if system supports hugepages
> > - Remove corresponding .sh script
> > - Replace calling of .sh with corresponding .py in meson.build
> >
:
Execution enters an infinite loops, requires investigation.
* test_rcu_qsbr_perf:
Execution hangs on Windows, requires investigation.
Signed-off-by: Jie Zhou
Signed-off-by: Dmitry Kozlyuk
Acked-by: Tyler Retzlaff
---
app/test/test_acl.c | 12
app/test
s patchset to be merged).
- For dump tests, currently the tests hang on Windows which require
further investigation.
- For telemetry tests, it has POSIX socket specific codes which require
replacement for Windows. Will investigate and work on a separate patch.
Signed-off-by: Jie Zhou
Acked
Add OP_ prefix to resolve name collision to enable hash_perf test
Signed-off-by: Jie Zhou
Acked-by: Dmitry Kozlyuk
---
app/test/test_hash_perf.c | 16
1 file changed, 8 insertions(+), 8 deletions(-)
diff --git a/app/test/test_hash_perf.c b/app/test/test_hash_perf.c
index
- Add python script to check if system supports hugepages
- Remove corresponding .sh script
- Replace calling of .sh with corresponding .py in meson.build
Signed-off-by: Jie Zhou
Acked-by: Dmitry Kozlyuk
---
app/test/has-hugepage.sh | 11 ---
app/test/has_hugepage.py | 26
Remove two alarm_autotest test cases which do bogus range check
on Windows.
Signed-off-by: Jie Zhou
Acked-by: Dmitry Kozlyuk
---
app/test/test_alarm.c | 4
1 file changed, 4 insertions(+)
diff --git a/app/test/test_alarm.c b/app/test/test_alarm.c
index b4034339b8..70e97a3109 100644
--- a
On Windows, strerror returns just "Unknown error" for errnum greater
than MAX_ERRNO, while linux and freebsd returns "Unknown error ",
which is the current expectation for errno_autotest. Differentiate
the error string on Windows to remove a "duplicate error code" fai
ndef these two test cases, and for the
rte_log_set_level_pattern validation case following these two cases,
differentiate the expected log level passed into macro CHECK_LEVELS
Now logs_autotest completes for all dynamic log types and static log types.
Signed-off-by: Jie Zhou
Acked-by: Dmit
s not supported on Windows yet,
thus no corresponding header files, and undefined APIs used
in test helper functions. Just adding the regular if statement
in the test main function is not sufficient.
Tested-by: Pallavi Kadam
Jie Zhou (11):
eal/windows: return ENOTSUP for not supporte
- Replace POSIX-specific code with DPDK equivalents or
conditionally disable it on Windows
- Use NUL on Windows as /dev/null for Unix
- Exclude tests not supported on Windows yet
* multi-process
* PMD performance statistics display on signal
Signed-off-by: Jie Zhou
Signed-off-by: Dmitry
Even though test_interrupts.c can compile on Windows, skip interrupt
tests for now since majority of eal_interrupt on Windows are stubs.
Will remove the skip after interrupt being fully enabled on Windows.
Signed-off-by: Jie Zhou
Acked-by: Dmitry Kozlyuk
---
app/test/test_interrupts.c | 3
.
Signed-off-by: Jie Zhou
Acked-by: Dmitry Kozlyuk
---
lib/eal/windows/eal_memalloc.c | 6 +++---
1 file changed, 3 insertions(+), 3 deletions(-)
diff --git a/lib/eal/windows/eal_memalloc.c b/lib/eal/windows/eal_memalloc.c
index 55d6dcc71c..aa7589b81d 100644
--- a/lib/eal/windows/eal_memalloc.c
Fix incorrect errno variable used in memory autotest.
Use rte_errno instead.
Fixes: 086d426406bd ("app/test: fix memory autotests on FreeBSD")
Cc: bruce.richard...@intel.com
Signed-off-by: Jie Zhou
Acked-by: Dmitry Kozlyuk
---
app/test/test_memory.c | 2 +-
1 file changed, 1 inser
.
* test_lcores:
Execution enters an infinite loops, requires investigation.
* test_rcu_qsbr_perf:
Execution hangs on Windows, requires investigation.
Signed-off-by: Jie Zhou
Signed-off-by: Dmitry Kozlyuk
---
app/test/test_acl.c | 12
app/test/test_bpf.c
s patchset to be merged).
- For dump tests, currently the tests hang on Windows which require
further investigation.
- For telemetry tests, it has POSIX socket specific codes which require
replacement for Windows. Will investigate and work on a separate patch.
Signed-off-by: Jie Zhou
Acked
Remove two alarm_autotest test cases which do bogus range check
on Windows.
Signed-off-by: Jie Zhou
Acked-by: Dmitry Kozlyuk
---
app/test/test_alarm.c | 4
1 file changed, 4 insertions(+)
diff --git a/app/test/test_alarm.c b/app/test/test_alarm.c
index b4034339b8..70e97a3109 100644
On Windows, strerror returns just "Unknown error" for errnum greater
than MAX_ERRNO, while linux and freebsd returns "Unknown error ",
which is the current expectation for errno_autotest. Differentiate
the error string on Windows to remove a "duplicate error code" fai
Add OP_ prefix to resolve name collision to enable hash_perf test
Signed-off-by: Jie Zhou
---
app/test/test_hash_perf.c | 16
1 file changed, 8 insertions(+), 8 deletions(-)
diff --git a/app/test/test_hash_perf.c b/app/test/test_hash_perf.c
index 76cdac5d53..7e98ec3964 100644
- Add python script to check if system supports hugepages
- Remove corresponding .sh script
- Replace calling of .sh with corresponding .py in meson.build
Signed-off-by: Jie Zhou
Acked-by: Dmitry Kozlyuk
---
app/test/has-hugepage.sh | 11 ---
app/test/has_hugepage.py | 26
ndef these two test cases, and for the
rte_log_set_level_pattern validation case following these two cases,
differentiate the expected log level passed into macro CHECK_LEVELS
Now logs_autotest completes for all dynamic log types and static log types.
Signed-off-by: Jie Zhou
Acked-by: Dmit
- Replace POSIX-specific code with DPDK equivalents or
conditionally disable it on Windows
- Use NUL on Windows as /dev/null for Unix
- Exclude tests not supported on Windows yet
* multi-process
* PMD performance statistics display on signal
Signed-off-by: Jie Zhou
Signed-off-by: Dmitry
Even though test_interrupts.c can compile on Windows, skip interrupt
tests for now since majority of eal_interrupt on Windows are stubs.
Will remove the skip after interrupt being fully enabled on Windows.
Signed-off-by: Jie Zhou
Acked-by: Dmitry Kozlyuk
---
app/test/test_interrupts.c | 10
.
Signed-off-by: Jie Zhou
Acked-by: Dmitry Kozlyuk
---
lib/eal/windows/eal_memalloc.c | 6 +++---
1 file changed, 3 insertions(+), 3 deletions(-)
diff --git a/lib/eal/windows/eal_memalloc.c b/lib/eal/windows/eal_memalloc.c
index 55d6dcc71c..aa7589b81d 100644
--- a/lib/eal/windows
e reason of skipping telemetry tests in commit log
Tested-by: Pallavi Kadam
Jie Zhou (11):
eal/windows: return ENOTSUP for not supported API
app/test: remove POSIX-specific code
app/test: fix incorrect errno variable
app/test: skip interrupt tests on Windows
app/test: skip two logs_autotest ca
Fix incorrect errno variable used in memory autotest.
Use rte_errno instead.
Fixes: 086d426406bd ("app/test: fix memory autotests on FreeBSD")
Cc: bruce.richard...@intel.com
Signed-off-by: Jie Zhou
Acked-by: Dmitry Kozlyuk
---
app/test/test_memory.c | 2 +-
1 file changed, 1 inser
On Wed, Dec 08, 2021 at 06:23:30PM +, Bruce Richardson wrote:
> On Wed, Dec 08, 2021 at 10:19:27AM -0800, Jie Zhou wrote:
> > On Wed, Dec 08, 2021 at 04:57:52PM +, Bruce Richardson wrote:
> > > On Tue, Dec 07, 2021 at 05:51:02PM -0800, Jie Zhou wrote:
> > > >
On Wed, Dec 08, 2021 at 04:57:52PM +, Bruce Richardson wrote:
> On Tue, Dec 07, 2021 at 05:51:02PM -0800, Jie Zhou wrote:
> > Enable a subset of unit tests for Windows CI
> >
> > - For driver tests, driver owners should enable corresponding tests when
> > enabl
On Windows, strerror returns just "Unknown error" for errnum greater
than MAX_ERRNO, while linux and freebsd returns "Unknown error ",
which is the current expectation for errno_autotest. Differentiate
the error string on Windows to remove a "duplicate error code" fai
s patchset to be merged).
- For dump tests, currently the tests hang on Windows which require
further investigation.
Signed-off-by: Jie Zhou
---
app/test/meson.build | 111 ++-
1 file changed, 58 insertions(+), 53 deletions(-)
diff --git a/app/test/mes
.
* test_lcores:
Execution enters an infinite loops, requires investigation.
* test_rcu_qsbr_perf:
Execution hangs on Windows, requires investigation.
Signed-off-by: Jie Zhou
Signed-off-by: Dmitry Kozlyuk
---
app/test/test_acl.c | 12
app/test/test_bpf.c
Add OP_ prefix to resolve name collision to enable hash_perf test
Signed-off-by: Jie Zhou
Signed-off-by: Dmitry Kozlyuk
---
app/test/test_hash_perf.c | 16
1 file changed, 8 insertions(+), 8 deletions(-)
diff --git a/app/test/test_hash_perf.c b/app/test/test_hash_perf.c
- Add python script to check if system supports hugepages
- Remove corresponding .sh script
- Replace calling of .sh with corresponding .py in meson.build
Signed-off-by: Jie Zhou
Acked-by: Dmitry Kozlyuk
---
app/test/has-hugepage.sh | 11 ---
app/test/has_hugepage.py | 26
Remove two alarm_autotest test cases which do bogus range check
on Windows.
Signed-off-by: Jie Zhou
Acked-by: Dmitry Kozlyuk
---
app/test/test_alarm.c | 4
1 file changed, 4 insertions(+)
diff --git a/app/test/test_alarm.c b/app/test/test_alarm.c
index b4034339b8..70e97a3109 100644
ndef these two test cases, and for the
rte_log_set_level_pattern validation case following these two cases,
differentiate the expected log level passed into macro CHECK_LEVELS
Now logs_autotest completes for all dynamic log types and static log types.
Signed-off-by: Jie Zhou
Acked-by: Dmit
- Replace POSIX-specific code with DPDK equivalents or
conditionally disable it on Windows
- Use NUL on Windows as /dev/null for Unix
- Exclude tests not supported on Windows yet
* multi-process
* PMD performance statistics display on signal
Signed-off-by: Jie Zhou
Signed-off-by: Dmitry
Patch#9 in V11 into two patches for better structure
- Reorder some of the patches for better structure
- Document more details in commit message for issue tracking
---
V13 changes:
- Fix misc coding style issue
- Fix build issue on Ubuntu 18.04
Tested-by: Pallavi Kadam
Jie Zhou
Even though test_interrupts.c can compile on Windows, skip interrupt
tests for now since majority of eal_interrupt on Windows are stubs.
Will remove the skip after interrupt being fully enabled on Windows.
Signed-off-by: Jie Zhou
Acked-by: Dmitry Kozlyuk
---
app/test/test_interrupts.c | 10
Fix incorrect errno variable used in memory autotest.
Use rte_errno instead.
Fixes: 086d426406bd ("app/test: fix memory autotests on FreeBSD")
Cc: bruce.richard...@intel.com
Signed-off-by: Jie Zhou
Acked-by: Dmitry Kozlyuk
---
app/test/test_memory.c | 2 +-
1 file changed, 1 inser
.
Signed-off-by: Jie Zhou
Acked-by: Dmitry Kozlyuk
---
lib/eal/windows/eal_memalloc.c | 6 +++---
1 file changed, 3 insertions(+), 3 deletions(-)
diff --git a/lib/eal/windows/eal_memalloc.c b/lib/eal/windows/eal_memalloc.c
index 55d6dcc71c..aa7589b81d 100644
--- a/lib/eal/windows
-by: Jie Zhou
Signed-off-by: Dmitry Kozlyuk
---
app/test/commands.c | 2 --
app/test/packet_burst_generator.c | 1 +
app/test/process.h| 4 +++-
app/test/test.c | 5 -
app/test/test_byteorder.c | 2 +-
app/test
.
* test_lcores:
Execution enters an infinite loops, requires investigation.
* test_rcu_qsbr_perf:
Execution hangs on Windows, requires investigation.
Signed-off-by: Jie Zhou
Signed-off-by: Dmitry Kozlyuk
---
app/test/test_acl.c | 12
app/test/test_bpf.c
For dump tests, currently the tests hang on Windows which require
further investigation.
Signed-off-by: Jie Zhou
---
app/test/meson.build | 111 ++-
1 file changed, 58 insertions(+), 53 deletions(-)
diff --git a/app/test/meson.build b/app/test/meson.build
i
- Add python script to check if system supports hugepages
- Remove corresponding .sh script
- Replace calling of .sh with corresponding .py in meson.build
Signed-off-by: Jie Zhou
Acked-by: Dmitry Kozlyuk
---
app/test/has-hugepage.sh | 11 ---
app/test/has_hugepage.py | 26
ndef these two test cases, and for the
rte_log_set_level_pattern validation case following these two cases,
differentiate the expected log level passed into macro CHECK_LEVELS
Now logs_autotest completes for all dynamic log types and static log types.
Signed-off-by: Jie Zhou
Acked-by: Dmit
Add OP_ prefix to resolve name collision to enable hash_perf test
Signed-off-by: Jie Zhou
Signed-off-by: Dmitry Kozlyuk
---
app/test/test_hash_perf.c | 16
1 file changed, 8 insertions(+), 8 deletions(-)
diff --git a/app/test/test_hash_perf.c b/app/test/test_hash_perf.c
Remove two alarm_autotest test cases which do bogus range check
on Windows.
Signed-off-by: Jie Zhou
Acked-by: Dmitry Kozlyuk
---
app/test/test_alarm.c | 4
1 file changed, 4 insertions(+)
diff --git a/app/test/test_alarm.c b/app/test/test_alarm.c
index b4034339b8..70e97a3109 100644
On Windows, strerror returns just "Unknown error" for errnum greater
than MAX_ERRNO, while linux and freebsd returns "Unknown error ",
which is the current expectation for errno_autotest. Differentiate
the error string on Windows to remove a "duplicate error code" fai
Fix incorrect errno variable used in memory autotest.
Use rte_errno instead.
Fixes: 086d426406bd ("app/test: fix memory autotests on FreeBSD")
Cc: bruce.richard...@intel.com
Signed-off-by: Jie Zhou
Acked-by: Dmitry Kozlyuk
---
app/test/test_memory.c | 2 +-
1 file changed, 1 inser
Even though test_interrupts.c can compile on Windows, skip interrupt
tests for now since majority of eal_interrupt on Windows are stubs.
Will remove the skip after interrupt being fully enabled on Windows.
Signed-off-by: Jie Zhou
Acked-by: Dmitry Kozlyuk
---
app/test/test_interrupts.c | 10
ch#9 in V11 into two patches for better structure
- Reorder some of the patches for better structure
- Document more details in commit message for issue tracking
Tested-by: Pallavi Kadam
Jie Zhou (11):
eal/windows: return ENOTSUP for not supported API
app/test: remove POSIX-specific
.
Signed-off-by: Jie Zhou
Acked-by: Dmitry Kozlyuk
---
lib/eal/windows/eal_memalloc.c | 6 +++---
1 file changed, 3 insertions(+), 3 deletions(-)
diff --git a/lib/eal/windows/eal_memalloc.c b/lib/eal/windows/eal_memalloc.c
index 55d6dcc71c..aa7589b81d 100644
--- a/lib/eal/windows
On Sat, Dec 04, 2021 at 04:33:37AM +0300, Dmitry Kozlyuk wrote:
> 2021-12-02 16:06 (UTC-0800), Jie Zhou:
> > On Windows, strerror returns just "Unknown error" for errnum greater
> > than MAX_ERRNO, while linux and freebsd returns "Unknown error ",
>
Remove two alarm_autotest test cases which do bogus range check
on Windows.
Signed-off-by: Jie Zhou
---
app/test/test_alarm.c | 4
1 file changed, 4 insertions(+)
diff --git a/app/test/test_alarm.c b/app/test/test_alarm.c
index b4034339b8..70e97a3109 100644
--- a/app/test/test_alarm.c
) which will be enabled by "patch-18949: app/test:
enable crypto unit tests on Windows".
- For dump tests, currently the tests hang on Windows which require
further investigation. Keep the dump test list just for non-Windows
for easier tracking.
Signed-off-by: Jie Zhou
---
app/test/m
On Windows, strerror returns just "Unknown error" for errnum greater
than MAX_ERRNO, while linux and freebsd returns "Unknown error ",
which is the current expectation for errno_autotest. Differentiate
the error string on Windows to remove a "duplicate error code" fai
- Add python script to check if system supports hugepages
- Remove corresponding .sh script
- Replace calling of .sh with corresponding .py in meson.build
Signed-off-by: Jie Zhou
---
app/test/has-hugepage.sh | 11 ---
app/test/has_hugepage.py | 26 ++
app/test
ndef these two test cases, and for the
rte_log_set_level_pattern validation case following these two cases,
differentiate the expected log level passed into macro CHECK_LEVELS
Now logs_autotest completes for all dynamic log types and static log types.
Signed-off-by: Jie Zhou
---
app/test/test_
netinet/in.h u6_addr
and better have a separate patch to add such tests on Windows)
Signed-off-by: Jie Zhou
---
app/test/commands.c | 2 --
app/test/packet_burst_generator.c | 1 +
app/test/process.h| 4 +++-
app/test/test.c | 5 -
app/test
Even though test_interrupts.c can compile on Windows, skip interrupt
tests for now since majority of eal_interrupt on Windows are stubs.
Will remove the skip after interrupt being fully enabled on Windows.
Signed-off-by: Jie Zhou
---
app/test/test_interrupts.c | 10 ++
1 file changed
Fix incorrect errno variable used in memory autotest.
Use rte_errno instead.
Fixes: 086d426406bd ("app/test: fix memory autotests on FreeBSD")
Cc: bruce.richard...@intel.com
Signed-off-by: Jie Zhou
---
app/test/test_memory.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
di
datory dependency on bitratestats, latencystats,
and metrics libs in test meson.build, which was reintroduced
at rebase in V9.
Jie Zhou (9):
eal/windows: return ENOTSUP for not supported API
app/test: remove POSIX-specific code
app/test: fix incorrect errno variable
app/test: ski
.
Signed-off-by: Jie Zhou
Acked-by: Dmitry Kozlyuk
---
lib/eal/windows/eal_memalloc.c | 6 +++---
1 file changed, 3 insertions(+), 3 deletions(-)
diff --git a/lib/eal/windows/eal_memalloc.c b/lib/eal/windows/eal_memalloc.c
index 55d6dcc71c..aa7589b81d 100644
--- a/lib/eal/windows
On Thu, Dec 02, 2021 at 10:17:48AM +0100, David Marchand wrote:
> Hello,
>
> On Wed, Dec 1, 2021 at 7:45 PM Jie Zhou wrote:
> > @@ -158,34 +152,17 @@ test_sources = files(
> > )
> >
> > test_deps = [
> > -'acl',
> >
On Wed, Dec 01, 2021 at 10:45:35AM -0800, Stephen Hemminger wrote:
> On Wed, 1 Dec 2021 10:05:38 -0800
> Jie Zhou wrote:
>
> > diff --git a/app/test/test_dmadev.c b/app/test/test_dmadev.c
> > index b206db27ae..c2ea9090cf 100644
> > --- a/app/test/test_dmadev.c
>
) which will be enabled by "patch-18949: app/test:
enable crypto unit tests on Windows".
- For dump tests, currently the tests hang on Windows which require
further investigation. Keep the dump test list just for non-Windows
for easier tracking.
Signed-off-by: Jie Zhou
---
app/test/m
On Windows, strerror returns just "Unknown error" for errnum greater
than MAX_ERRNO, while linux and freebsd returns "Unknown error ",
which is the current expectation for errno_autotest. Differentiate
the error string on Windows to remove a "duplicate error code" fai
ndef these two test cases, and for the
rte_log_set_level_pattern validation case following these two cases,
differentiate the expected log level passed into macro CHECK_LEVELS
Now logs_autotest completes for all dynamic log types and static log types.
Signed-off-by: Jie Zhou
---
app/test/test_
- Add python script to check if system supports hugepages
- Remove corresponding .sh script
- Replace calling of .sh with corresponding .py in meson.build
Signed-off-by: Jie Zhou
---
app/test/has-hugepage.sh | 11 ---
app/test/has_hugepage.py | 26 ++
app/test
Remove two alarm_autotest test cases which do bogus range check
on Windows.
Signed-off-by: Jie Zhou
---
app/test/test_alarm.c | 4
1 file changed, 4 insertions(+)
diff --git a/app/test/test_alarm.c b/app/test/test_alarm.c
index b4034339b8..70e97a3109 100644
--- a/app/test/test_alarm.c
e previously skipped test_cmdline_socket_fns test cases
- Revise title and message, and add Fixes info for current Patch#3
- Combine 2 patches (previous #2 and #3 in V8) into one and with
more detailed message
V10 changes:
- Fix indentation
Jie Zhou (9):
eal/windows: return ENOTSUP f
netinet/in.h u6_addr
and better have a sperate patch to add such tests on Windows)
Signed-off-by: Jie Zhou
---
app/test/commands.c | 2 --
app/test/packet_burst_generator.c | 1 +
app/test/process.h| 4 +++-
app/test/test.c | 5 -
app/test
Even though test_interrupts.c can compile on Windows, skip interrupt
tests for now since majority of eal_interrupt on Windows are stubs.
Will remove the skip after interrupt being fully enabled on Windows.
Signed-off-by: Jie Zhou
---
app/test/test_interrupts.c | 10 ++
1 file changed
Fix incorrect errno variable used in memory autotest.
Use rte_errno instead.
Fixes: 086d426406bd ("app/test: fix memory autotests on FreeBSD")
Signed-off-by: Jie Zhou
---
app/test/test_memory.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/app/test/test_memo
.
Signed-off-by: Jie Zhou
Acked-by: Dmitry Kozlyuk
---
lib/eal/windows/eal_memalloc.c | 6 +++---
1 file changed, 3 insertions(+), 3 deletions(-)
diff --git a/lib/eal/windows/eal_memalloc.c b/lib/eal/windows/eal_memalloc.c
index 55d6dcc71c..aa7589b81d 100644
--- a/lib/eal/windows
) which will be enabled by "patch-18949: app/test:
enable crypto unit tests on Windows".
- For dump tests, currently the tests hang on Windows which require
further investigation. Keep the dump test list just for non-Windows
for easier tracking.
Signed-off-by: Jie Zhou
---
app/test/m
On Windows, strerror returns just "Unknown error" for errnum greater
than MAX_ERRNO, while linux and freebsd returns "Unknown error ",
which is the current expectation for errno_autotest. Differentiate
the error string on Windows to remove a "duplicate error code" fai
Remove two alarm_autotest test cases which do bogus range check
on Windows.
Signed-off-by: Jie Zhou
---
app/test/test_alarm.c | 4
1 file changed, 4 insertions(+)
diff --git a/app/test/test_alarm.c b/app/test/test_alarm.c
index b4034339b8..70e97a3109 100644
--- a/app/test/test_alarm.c
- Add python script to check if system supports hugepages
- Remove corresponding .sh script
- Replace calling of .sh with corresponding .py in meson.build
Signed-off-by: Jie Zhou
---
app/test/has-hugepage.sh | 11 ---
app/test/has_hugepage.py | 26 ++
app/test
ndef these two test cases, and for the
rte_log_set_level_pattern validation case following these two cases,
differentiate the expected log level passed into macro CHECK_LEVELS
Now logs_autotest completes for all dynamic log types and static log types.
Signed-off-by: Jie Zhou
---
app/test/test_
Even though test_interrupts.c can compile on Windows, skip interrupt
tests for now since majority of eal_interrupt on Windows are stubs.
Will remove the skip after interrupt being fully enabled on Windows.
Signed-off-by: Jie Zhou
---
app/test/test_interrupts.c | 10 ++
1 file changed
netinet/in.h u6_addr
and better have a separate patch to add such tests on Windows)
Signed-off-by: Jie Zhou
---
app/test/commands.c | 2 --
app/test/packet_burst_generator.c | 1 +
app/test/process.h| 4 +++-
app/test/test.c | 5 -
app/test
From: Jie Zhou
This patchset is to enable a subset of unit tests on windows. It mainly
includes:
- Replace POSIX specific codes
- Add test stubs for not supported ones on Windows
- Fix some lib and tests per failures investigation
- Replace .sh script with .py script for meson.build
- Enable
Fix incorrect errno variable used in memory autotest.
Use rte_errno instead.
Fixes: 086d426406bd ("app/test: fix memory autotests on FreeBSD")
Cc: bruce.richard...@intel.com
Signed-off-by: Jie Zhou
---
app/test/test_memory.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
di
.
Signed-off-by: Jie Zhou
Acked-by: Dmitry Kozlyuk
---
lib/eal/windows/eal_memalloc.c | 6 +++---
1 file changed, 3 insertions(+), 3 deletions(-)
diff --git a/lib/eal/windows/eal_memalloc.c b/lib/eal/windows/eal_memalloc.c
index 55d6dcc71c..aa7589b81d 100644
--- a/lib/eal/windows
On Wed, Nov 24, 2021 at 01:02:06AM +0300, Dmitry Kozlyuk wrote:
> 2021-10-25 19:45 (UTC-0700), Jie Zhou:
> > - Include rte_os_shim.h
> > - Replace sleep and usleep with rte_delay_us_sleep
> > - #ifndef RTE_EXEC_ENV_WINDOWS for POSIX code only
> >
> > Signed-of
On Wed, Nov 24, 2021 at 01:02:10AM +0300, Dmitry Kozlyuk wrote:
> 2021-10-25 19:45 (UTC-0700), Jie Zhou:
> > Check rte_errno to exclude ENOTSUP as failures in test_memory.c
> >
> > Signed-off-by: Jie Zhou
> > ---
> > app/test/test_memory.c | 3 ++-
> &
On Wed, Nov 24, 2021 at 01:02:13AM +0300, Dmitry Kozlyuk wrote:
> 2021-10-25 19:45 (UTC-0700), Jie Zhou:
> > cmdline tests pass except one failure at the test_cmdline_socket_fns
> > test case with error: failed to open /dev/null for reading!
>
> Can't it be somethi
On Wed, Nov 24, 2021 at 01:15:33AM +0300, Dmitry Kozlyuk wrote:
> 2021-10-25 19:46 (UTC-0700), Jie Zhou:
> > - Add python script to check if system supports hugepages
> > - Remove corresponding .sh scripts
> > - Replace calling of .sh with corresponding .py in meson.build
&
) which will be enabled by "patch-18949: app/test:
enable crypto unit tests on Windows".
- For dump tests, currently the tests hang on Windows which require
further investigation. Keep the dump test list just for non-Windows
for easier tracking.
Signed-off-by: Jie Zhou
---
app/test/m
On Windows, strerror returns just "Unknown error" for errnum greater
than MAX_ERRNO, while linux and freebsd returns "Unknown error ",
which is the current expectation for errno_autotest. Differentiate
the error string on Windows to remove a "duplicate error code" fai
ndef these two test cases, and for the
rte_log_set_level_pattern validation case following these two cases,
differentiate the expected log level passed into macro CHECK_LEVELS
Now logs_autotest completes for all dynamic log types and static log types.
Signed-off-by: Jie Zhou
---
app/test/test_
- Add python script to check if system supports hugepages
- Remove corresponding .sh scripts
- Replace calling of .sh with corresponding .py in meson.build
Signed-off-by: Jie Zhou
---
app/test/has-hugepage.sh | 11 ---
app/test/has_hugepage.py | 25 +
app/test
Even though test_interrupts.c can compile on Windows, skip interrupt
tests for now since majority of eal_interrupt on Windows are stubs.
Will remove the skip after interrupt being fully enabled on Windows.
Signed-off-by: Jie Zhou
---
app/test/test_interrupts.c | 10 ++
1 file changed
ned-off-by: Jie Zhou
---
app/test/test_cmdline_lib.c | 4
1 file changed, 4 insertions(+)
diff --git a/app/test/test_cmdline_lib.c b/app/test/test_cmdline_lib.c
index 4715edc341..eb54ef06d7 100644
--- a/app/test/test_cmdline_lib.c
+++ b/app/test/test_cmdline_lib.c
@@ -14
Remove two alarm_autotest test cases which do bogus range check
on Windows.
Signed-off-by: Jie Zhou
---
app/test/test_alarm.c | 4
1 file changed, 4 insertions(+)
diff --git a/app/test/test_alarm.c b/app/test/test_alarm.c
index b4034339b8..70e97a3109 100644
--- a/app/test/test_alarm.c
- Include rte_os_shim.h
- Replace sleep and usleep with rte_delay_us_sleep
- #ifndef RTE_EXEC_ENV_WINDOWS for POSIX code only
Signed-off-by: Jie Zhou
---
app/test/packet_burst_generator.c | 1 +
app/test/process.h| 4 +++-
app/test/test.c | 4
app/test
Check rte_errno to exclude ENOTSUP as failures in test_memory.c
Signed-off-by: Jie Zhou
---
app/test/test_memory.c | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)
diff --git a/app/test/test_memory.c b/app/test/test_memory.c
index dbf6871e71..379b0f99ca 100644
--- a/app/test
Remove unnecessary header inclusion
Signed-off-by: Jie Zhou
---
app/test/commands.c | 2 --
app/test/test.c | 1 -
app/test/test_cmdline_lib.c | 1 -
3 files changed, 4 deletions(-)
diff --git a/app/test/commands.c b/app/test/commands.c
index 76f6ee5d23..82bd8bf474 100644
e
patches after this patch set.
V8 changes:
- Fix coding style issue of using C99 // comments
Jie Zhou (11):
eal/windows: return ENOTSUP for not supported API
app/test: remove unnecessary headers
app/test: replace POSIX specific code
app/test: exclude ENOTSUP as failure
app/test: ski
.
Signed-off-by: Jie Zhou
Acked-by: Dmitry Kozlyuk
---
lib/eal/windows/eal_memalloc.c | 6 +++---
1 file changed, 3 insertions(+), 3 deletions(-)
diff --git a/lib/eal/windows/eal_memalloc.c b/lib/eal/windows/eal_memalloc.c
index 55d6dcc71c..aa7589b81d 100644
--- a/lib/eal/windows
1 - 100 of 390 matches
Mail list logo