Age | Commit message (Collapse) | Author |
|
Renaming of things which may be, one day, exported in a lib.
This renaming is important, as it creates consistency between test
symbols, which is needed if things get eventually exported in the lib.
Also, tests are often created from other tests: Fixing the first exemples
will help geting future tests better.
Things that are candidate to be exported in the lib in the future
have been named as follows:
-Tests, i.e. functions which are used in CUNIT testsuites are named:
<Module>_test_*
-Test arrays, i.e. arrays of CU_TestInfo, listing the test functions
belonging to a suite, are called:
<Module>_suite[_*]
where the possible suffix can be used if many suites are declared.
-CUNIT suite init and termination functions are called:
<Module>_suite[_*]_init() and <Module>_suite[_*]_term()
respectively.
-Suite arrays, i.e. arrays of CU_SuiteInfo used in executables are called:
<Module>_suites[_*]
where the possible suffix identifies the executable using it, if many.
-Main function(s), are called:
<Module>_main[_*]
where the possible suffix identifies the executable using it
Signed-off-by: Christophe Milard <christophe.milard@linaro.org>
Reviewed-by: Stuart Haslam <stuart.haslam@linaro.org>
Signed-off-by: Maxim Uvarov <maxim.uvarov@linaro.org>
|
|
Signed-off-by: Christophe Milard <christophe.milard@linaro.org>
Reviewed-by: Stuart Haslam <stuart.haslam@linaro.org>
Signed-off-by: Maxim Uvarov <maxim.uvarov@linaro.org>
|
|
system_main is now ran from the platform side. As system tests do not
have any platform dependency, the call to the platform agnostic
tests is performed directly in the Makefele.am (TESTS)
(At present, the system module just contains time tests)
Signed-off-by: Christophe Milard <christophe.milard@linaro.org>
Reviewed-by: Stuart Haslam <stuart.haslam@linaro.org>
Signed-off-by: Maxim Uvarov <maxim.uvarov@linaro.org>
|
|
Module system now gets its own directory and create its own lib
(currentely only containing its executable)
Note that module system, at this time, only contains time
functionality.
Signed-off-by: Christophe Milard <christophe.milard@linaro.org>
Reviewed-by: Stuart Haslam <stuart.haslam@linaro.org>
Signed-off-by: Maxim Uvarov <maxim.uvarov@linaro.org>
|
|
Preparing for the next patch where this file is moved and
check-patch would yell if these things were still there.
Signed-off-by: Christophe Milard <christophe.milard@linaro.org>
Reviewed-by: Stuart Haslam <stuart.haslam@linaro.org>
Signed-off-by: Maxim Uvarov <maxim.uvarov@linaro.org>
|
|
Renaming of things which may be, one day, exported in a lib.
This renaming is important, as it creates consistency between test
symbols, which is needed if things get eventually exported in the lib.
Also, tests are often created from other tests: Fixing the first exemples
will help geting future tests better.
Note that time API is actually part of the "system" API modules.
Hence the renaming to systen_*.
Things that are candidate to be exported in the lib in the future
have been named as follows:
-Tests, i.e. functions which are used in CUNIT testsuites are named:
<Module>_test_*
-Test arrays, i.e. arrays of CU_TestInfo, listing the test functions
belonging to a suite, are called:
<Module>_suite[_*]
where the possible suffix can be used if many suites are declared.
-CUNIT suite init and termination functions are called:
<Module>_suite[_*]_init() and <Module>_suite[_*]_term()
respectively.
-Suite arrays, i.e. arrays of CU_SuiteInfo used in executables are called:
<Module>_suites[_*]
where the possible suffix identifies the executable using it, if many.
-Main function(s), are called:
<Module>_main[_*]
where the possible suffix identifies the executable using it
Signed-off-by: Christophe Milard <christophe.milard@linaro.org>
Reviewed-by: Stuart Haslam <stuart.haslam@linaro.org>
Signed-off-by: Maxim Uvarov <maxim.uvarov@linaro.org>
|
|
Signed-off-by: Christophe Milard <christophe.milard@linaro.org>
Reviewed-by: Stuart Haslam <stuart.haslam@linaro.org>
Signed-off-by: Maxim Uvarov <maxim.uvarov@linaro.org>
|
|
classification_main is now ran from the platform side.
As classification tests do not have
any platform dependency, the call to the platform agnostic tests is
performed directly in the Makefele.am (TESTS).
Signed-off-by: Christophe Milard <christophe.milard@linaro.org>
Reviewed-by: Stuart Haslam <stuart.haslam@linaro.org>
Signed-off-by: Maxim Uvarov <maxim.uvarov@linaro.org>
|
|
Module classification now gets its own directory and create its own lib
(currentely only containing its executable)
Signed-off-by: Christophe Milard <christophe.milard@linaro.org>
Reviewed-by: Stuart Haslam <stuart.haslam@linaro.org>
Signed-off-by: Maxim Uvarov <maxim.uvarov@linaro.org>
|
|
Renaming of things which may be, one day, exported in a lib.
This renaming is important, as it creates consistency between test
symbols, which is needed if things get eventually exported in the lib.
Also, tests are often created from other tests: Fixing the first exemples
will help geting future tests better.
Things that are candidate to be exported in the lib in the future
have been named as follows:
-Tests, i.e. functions which are used in CUNIT testsuites are named:
<Module>_test_*
-Test arrays, i.e. arrays of CU_TestInfo, listing the test functions
belonging to a suite, are called:
<Module>_suite[_*]
where the possible suffix can be used if many suites are declared.
-CUNIT suite init and termination functions are called:
<Module>_suite[_*]_init() and <Module>_suite[_*]_term()
respectively.
-Suite arrays, i.e. arrays of CU_SuiteInfo used in executables are called:
<Module>_suites[_*]
where the possible suffix identifies the executable using it, if many.
-Main function(s), are called:
<Module>_main[_*]
where the possible suffix identifies the executable using it
Signed-off-by: Christophe Milard <christophe.milard@linaro.org>
Reviewed-by: Stuart Haslam <stuart.haslam@linaro.org>
Signed-off-by: Maxim Uvarov <maxim.uvarov@linaro.org>
|
|
Signed-off-by: Christophe Milard <christophe.milard@linaro.org>
Reviewed-by: Stuart Haslam <stuart.haslam@linaro.org>
Signed-off-by: Maxim Uvarov <maxim.uvarov@linaro.org>
|
|
Signed-off-by: Christophe Milard <christophe.milard@linaro.org>
Reviewed-by: Stuart Haslam <stuart.haslam@linaro.org>
Signed-off-by: Maxim Uvarov <maxim.uvarov@linaro.org>
|
|
Two new functions are introduced in odp_cunit_common.c:
odp_cunit_register_global_init() is to be used to register test
executable init function (overloading the default ODP init performed).
odp_cunit_register_global_term() is to be used to register test
executable termination function (overloading the default ODP term).
These two functions should be used instead of overloading the default weak
symbol. Overloading the weak symbol still works, but is planned for
removal.
The usage of these register functions enables the init/term functions to
be part of the library for the tested module.
Signed-off-by: Christophe Milard <christophe.milard@linaro.org>
Reviewed-by: Stuart Haslam <stuart.haslam@linaro.org>
Signed-off-by: Maxim Uvarov <maxim.uvarov@linaro.org>
|
|
Add $(EXEEXT) to all binary generated so platform can easily configure
the binaries extension and use the LOG_COMPILER features of automake.
This should have no visible effect unless EXEEXT is set by the configure
Signed-off-by: Nicolas Morey-Chaisemartin <nmorey@kalray.eu>
Acked-by: Anders Roxell <anders.roxell@linaro.org>
Signed-off-by: Maxim Uvarov <maxim.uvarov@linaro.org>
|
|
The test generates UDP packets with the source and destination port numbers
set to 0 and source and destination IP addresses of 0.0.0.0, which is
likely to cause them to be dropped and the test failing. Fix this by
correctly initialising the packet fields to use valid values.
Reported-by: Balasubramanian Manoharan <bala.manoharan@linaro.org>
Signed-off-by: Stuart Haslam <stuart.haslam@linaro.org>
Signed-off-by: Maxim Uvarov <maxim.uvarov@linaro.org>
|
|
test
Signed-off-by: Jerin Jacob <jerin.jacob@caviumnetworks.com>
Signed-off-by: Maxim Uvarov <maxim.uvarov@linaro.org>
|
|
crypto_main is now ran from the platform side. As crypto tests do not have
any platform dependency, the call to the platform agnostic tests is
performed directly in the Makefele.am (TESTS).
Signed-off-by: Christophe Milard <christophe.milard@linaro.org>
Reviewed-by: Stuart Haslam <stuart.haslam@linaro.org>
Signed-off-by: Mike Holmes <mike.holmes@linaro.org>
|
|
Module crypto now gets its own directory and create its own lib
(currentely only containing its executable)
Signed-off-by: Christophe Milard <christophe.milard@linaro.org>
Reviewed-by: Stuart Haslam <stuart.haslam@linaro.org>
Signed-off-by: Mike Holmes <mike.holmes@linaro.org>
|
|
Preparing for the next patch where this file is moved and
check-odp would yell if these things were still there.
Signed-off-by: Christophe Milard <christophe.milard@linaro.org>
Reviewed-by: Stuart Haslam <stuart.haslam@linaro.org>
Signed-off-by: Mike Holmes <mike.holmes@linaro.org>
|
|
Renaming of things which may be, one day, exported in a lib.
This renaming is important, as it creates consistency between test
symbols, which is needed if things get eventually exported in the lib.
Also, tests are often created from other tests: Fixing the first exemples
will help geting future tests better.
Things that are candidate to be exported in the lib in the future
have been named as follows:
-Tests, i.e. functions which are used in CUNIT testsuites are named:
<Module>_test_*
-Test arrays, i.e. arrays of CU_TestInfo, listing the test functions
belonging to a suite, are called:
<Module>_suite[_*]
where the possible suffix can be used if many suites are declared.
-CUNIT suite init and termination functions are called:
<Module>_suite[_*]_init() and <Module>_suite[_*]_term()
respectively.
-Suite arrays, i.e. arrays of CU_SuiteInfo used in executables are called:
<Module>_suites[_*]
where the possible suffix identifies the executable using it, if many.
-Main function(s), are called:
<Module>_main[_*]
where the possible suffix identifies the executable using it
Signed-off-by: Christophe Milard <christophe.milard@linaro.org>
Reviewed-by: Stuart Haslam <stuart.haslam@linaro.org>
Signed-off-by: Mike Holmes <mike.holmes@linaro.org>
|
|
Signed-off-by: Christophe Milard <christophe.milard@linaro.org>
Reviewed-by: Stuart Haslam <stuart.haslam@linaro.org>
Signed-off-by: Mike Holmes <mike.holmes@linaro.org>
|
|
These are no longer referenced and should not be used as they introduce
platform dependency which should no longer occur in this platform
agnostic part.
Signed-off-by: Christophe Milard <christophe.milard@linaro.org>
Reviewed-by: Mike Holmes <mike.holmes@linaro.org>
Reviewed-by: Stuart Haslam <stuart.haslam@linaro.org>
Signed-off-by: Maxim Uvarov <maxim.uvarov@linaro.org>
|
|
The platform specific scripts for pktio are now moved
from the validation to the platform side.
Pktio tests are now initiated from the platform side.
Signed-off-by: Christophe Milard <christophe.milard@linaro.org>
Signed-off-by: Maxim Uvarov <maxim.uvarov@linaro.org>
|
|
Module pktio now gets its own directory and create its own lib
(currentely only containing its executable)
Startup scripting stuff is just moved to the pktio directory but remains
untouched at this stage (test is still ran from validation side)
Signed-off-by: Christophe Milard <christophe.milard@linaro.org>
Reviewed-by: Mike Holmes <mike.holmes@linaro.org>
Reviewed-by: Stuart Haslam <stuart.haslam@linaro.org>
Signed-off-by: Maxim Uvarov <maxim.uvarov@linaro.org>
|
|
Preparing for the next patch where this file is moved and
check-odp would yell if these things were still there.
Signed-off-by: Christophe Milard <christophe.milard@linaro.org>
Reviewed-by: Mike Holmes <mike.holmes@linaro.org>
Reviewed-by: Stuart Haslam <stuart.haslam@linaro.org>
Signed-off-by: Maxim Uvarov <maxim.uvarov@linaro.org>
|
|
Renaming of things which may be, one day, exported in a lib.
This renaming is important, as it creates consistency between test
symbols, which is needed if things get eventually exported in the lib.
Also, tests are often created from other tests: Fixing the first exemples
will help geting future tests better.
Things that are candidate to be exported in the lib in the future
have been named as follows:
-Tests, i.e. functions which are used in CUNIT testsuites are named:
<Module>_test_*
-Test arrays, i.e. arrays of CU_TestInfo, listing the test functions
belonging to a suite, are called:
<Module>_suite[_*]
where the possible suffix can be used if many suites are declared.
-CUNIT suite init and termination functions are called:
<Module>_suite[_*]_init() and <Module>_suite[_*]_term()
respectively.
-Suite arrays, i.e. arrays of CU_SuiteInfo used in executables are called:
<Module>_suites[_*]
where the possible suffix identifies the executable using it, if many.
-Main function(s), are called:
<Module>_main[_*]
where the possible suffix identifies the executable using it
Signed-off-by: Christophe Milard <christophe.milard@linaro.org>
Reviewed-by: Mike Holmes <mike.holmes@linaro.org>
Reviewed-by: Stuart Haslam <stuart.haslam@linaro.org>
Signed-off-by: Maxim Uvarov <maxim.uvarov@linaro.org>
|
|
Signed-off-by: Christophe Milard <christophe.milard@linaro.org>
Reviewed-by: Mike Holmes <mike.holmes@linaro.org>
Reviewed-by: Stuart Haslam <stuart.haslam@linaro.org>
Signed-off-by: Maxim Uvarov <maxim.uvarov@linaro.org>
|
|
In odp_cunit_common.c, a macro, called MODULE_HAS_OWN_MAIN is used to tell
whether to define a main or not.
If MODULE_HAS_OWN_MAIN is defined, odp_cunit_common.c does not
define any main, but offers odp_cunit_run(CU_SuiteInfo testsuites[])
to run the tests.
Two libs are then built, one with MODULE_HAS_OWN_MAIN defined
(to be used in the future, by tests which define their own main)
and one with MODULE_HAS_OWN_MAIN undefined, used by all tests at
this stage.
Signed-off-by: Christophe Milard <christophe.milard@linaro.org>
Reviewed-by: Mike Holmes <mike.holmes@linaro.org>
Reviewed-by: Stuart Haslam <stuart.haslam@linaro.org>
Signed-off-by: Maxim Uvarov <maxim.uvarov@linaro.org>
|
|
otherwise "tt[i].tick" in "handle_tmo" will be a wrong value
in case timer set failed due to
ODP_TIMER_NOEVENT(failed to cancel the outstanding timer).
some hardware timer implementations needs at least two ticks gap between
"current tick" and "future tick" to cancel the outstanding active timer.
Signed-off-by: Jerin Jacob <jerin.jacob@caviumnetworks.com>
Reviewed-by: Ola Liljedahl <ola.liljedahl@linaro.org>
Signed-off-by: Maxim Uvarov <maxim.uvarov@linaro.org>
|
|
On some systems, char is mapped to unsigned char which causes gcc to issue this warning:
test/validation/ver_abt_log_dbg/odp_system.c:23:7: error: array subscript has type ‘char’ [-Werror=char-subscripts]
Manually casting from char to int should fix issue on both (signed or unsigned) types of system
Signed-off-by: Nicolas Morey-Chaisemartin <nmorey@kalray.eu>
Reviewed-by: Mike Holmes <mike.holmes@linaro.org>
Signed-off-by: Maxim Uvarov <maxim.uvarov@linaro.org>
|
|
Signed-off-by: Nicolas Morey-Chaisemartin <nmorey@kalray.eu>
Reviewed-by: Mike Holmes <mike.holmes@linaro.org>
Signed-off-by: Maxim Uvarov <maxim.uvarov@linaro.org>
|
|
Signed-off-by: Nicolas Morey-Chaisemartin <nmorey@kalray.eu>
Reviewed-by: Mike Holmes <mike.holmes@linaro.org>
Signed-off-by: Maxim Uvarov <maxim.uvarov@linaro.org>
|
|
packet i/o test can create 2 types of queues: scheduled and
polled. Do not do dequeue from scheduled queue.
https://bugs.linaro.org/show_bug.cgi?id=1383
Signed-off-by: Maxim Uvarov <maxim.uvarov@linaro.org>
Reviewed-by: Balasubramanian Manoharan <bala.manoharan@linaro.org>
|
|
Signed-off-by: Mike Holmes <mike.holmes@linaro.org>
Reviewed-by: Bill Fischofer <bill.fischofer@linaro.org>
Signed-off-by: Maxim Uvarov <maxim.uvarov@linaro.org>
|
|
Signed-off-by: Jerin Jacob <jerin.jacob@caviumnetworks.com>
Signed-off-by: Maxim Uvarov <maxim.uvarov@linaro.org>
|
|
Signed-off-by: Nicolas Morey-Chaisemartin <nmorey@kalray.eu>
Reviewed-by: Stuart Haslam <stuart.haslam@linaro.org>
Signed-off-by: Maxim Uvarov <maxim.uvarov@linaro.org>
|
|
Some platforms like DPDK and Cavium bare metal can not
dynamically destroy and create pool with the same name.
Keep pool destroy only in test suite termination to
make all other pktio tests passed.
Signed-off-by: Maxim Uvarov <maxim.uvarov@linaro.org>
Reviewed-by: Stuart Haslam <stuart.haslam@linaro.org>
|
|
compile as inline function
use of CU_ASSERT(from == queue) in 'test_schedule_pause_resume'
odp_schedule.c: In function 'test_schedule_pause_resume':
odp_schedule.c:573:3: error: 'from' may be used uninitialized
in this function [-Werror=maybe-uninitialized]
use of CU_ASSERT(from != ODP_QUEUE_INVALID) in 'schedule_common_'
odp_schedule.c: In function 'schedule_common_':
odp_schedule.c:218:4: error: 'from' may be used uninitialized
in this function [-Werror=maybe-uninitialized]
Signed-off-by: Jerin Jacob <jerin.jacob@caviumnetworks.com>
Signed-off-by: Maxim Uvarov <maxim.uvarov@linaro.org>
|
|
The 3 init tests (init, abort,log) now links with
common/odp_cunit_common, as other tests.
In main, ODP init is now performed via weak functions
which are overloaded (to do nothing) by the 3 init tests.
And other cosmetic fixes to please check-odp.
Signed-off-by: Christophe Milard <christophe.milard@linaro.org>
Signed-off-by: Mike Holmes <mike.holmes@linaro.org>
|
|
The 3 tests for initialisation still generate 3 executables,
but their sources are simply gathered in a single directory called as
the module itself, init.
And other cosmetic fixes to please check-odp.
Signed-off-by: Christophe Milard <christophe.milard@linaro.org>
Signed-off-by: Mike Holmes <mike.holmes@linaro.org>
|
|
The test assumes that cpu_id ranges from 0 to n CPU - 1 which is not necessary true on all archs.
Meanwhile thread ids are always ranging from 0 to N (0 here is for the main test thread)
Signed-off-by: Nicolas Morey-Chaisemartin <nmorey@kalray.eu>
Reviewed-by: Bill Fischofer <bill.fischofer@linaro.org>
Signed-off-by: Maxim Uvarov <maxim.uvarov@linaro.org>
|
|
Signed-off-by: Nicolas Morey-Chaisemartin <nmorey@kalray.eu>
Reviewed-by: Bill Fischofer <bill.fischofer@linaro.org>
Signed-off-by: Maxim Uvarov <maxim.uvarov@linaro.org>
|
|
Simplified the API by removing user_u64 option. User has now room
for a pointer (or upto intptr_t sized variable) and a
configurable sized user_area. Both can be used at the same time.
User has to use the user_area when more space than sizeof(intptr_t)
bytes is needed.
Signed-off-by: Petri Savolainen <petri.savolainen@nokia.com>
Reviewed-by: Bill Fischofer <bill.fischofer@linaro.org>
Signed-off-by: Maxim Uvarov <maxim.uvarov@linaro.org>
|
|
Term "area" highlights better that the per packet user area
is fixed in size and position. E.g. odp_packet_data(),
odp_packet_seg_data() return pointers which are (likely)
modified during packet processing.
Signed-off-by: Petri Savolainen <petri.savolainen@nokia.com>
Reviewed-by: Bill Fischofer <bill.fischofer@linaro.org>
Signed-off-by: Maxim Uvarov <maxim.uvarov@linaro.org>
|
|
Signed-off-by: Bill Fischofer <bill.fischofer@linaro.org>
Reviewed-and-tested-by: Ciprian Barbu <ciprian.barbu@linaro.org>
Signed-off-by: Maxim Uvarov <maxim.uvarov@linaro.org>
|
|
definition
This is combined commit of 4 following mailing list patches:
linux-generic: classification: remove odp_pmr_create_range() function implementation.
This patch removes the implementation of odp_pmr_create_range() function.
Signed-off-by: Balasubramanian Manoharan <bala.manoharan@linaro.org>
Reviewed-by: Petri Savolainen <petri.savolainen@nokia.com>
Signed-off-by: Maxim Uvarov <maxim.uvarov@linaro.org>
api: classification: remove odp_pmr_create_range() function definition.
The support for a range based packet matching rule is not available in most of
the hardwares and hence this API is removed.
Signed-off-by: Balasubramanian Manoharan <bala.manoharan@linaro.org>
Reviewed-by: Petri Savolainen <petri.savolainen@nokia.com>
Signed-off-by: Maxim Uvarov <maxim.uvarov@linaro.org>
validation: remove test case for odp_pmr_create_range() function
This patch removes the validation suite test case for odp_pmr_create_range() function.
Signed-off-by: Balasubramanian Manoharan <bala.manoharan@linaro.org>
Reviewed-by: Petri Savolainen <petri.savolainen@nokia.com>
Signed-off-by: Maxim Uvarov <maxim.uvarov@linaro.org>
example: classifier: remove odp_pmr_create_range() support
This patch removes support for odp_pmr_create_range() function
in the classifier example application.
Signed-off-by: Balasubramanian Manoharan <bala.manoharan@linaro.org>
Reviewed-by: Mike Holmes <mike.holmes@linaro.org>
Signed-off-by: Maxim Uvarov <maxim.uvarov@linaro.org>
Signed-off-by: Maxim Uvarov <maxim.uvarov@linaro.org>
|
|
Signed-off-by: Nicolas Morey-Chaisemartin <nmorey@kalray.eu>
Reviewed-by: Bill Fischofer <bill.fischofer@linaro.org>
Signed-off-by: Maxim Uvarov <maxim.uvarov@linaro.org>
|
|
Signed-off-by: Nicolas Morey-Chaisemartin <nmorey@kalray.eu>
Reviewed-by: Bill Fischofer <bill.fischofer@linaro.org>
Signed-off-by: Maxim Uvarov <maxim.uvarov@linaro.org>
|
|
Some tests poll input queues for packets but the queues
are setup as scheduled.
Signed-off-by: Alexandru Badicioiu <alexandru.badicioiu@linaro.org>
Reviewed-by: Stuart Haslam <stuart.haslam@linaro.org>
Signed-off-by: Maxim Uvarov <maxim.uvarov@linaro.org>
|
|
Created directory for module odp_ver_abt_log_dbg, populated
with file odp_errno.c and odp_system.c which, despite its
confusing name is not testing the system module but the sys*
function of the odp_ver_abt_log_dbg module.
Signed-off-by: Christophe Milard <christophe.milard@linaro.org>
Reviewed-and-tested-by: Mike Holmes <mike.holmes@linaro.org>
Signed-off-by: Maxim Uvarov <maxim.uvarov@linaro.org>
|