test/unit: use spdk_ut_run_tests()Replaced direct calls to the CUnit's functions to run the tests withspdk_ut_run_tests(). That way, each test will have the ability to runa specific test case.
test/unit: use spdk_ut_run_tests()Replaced direct calls to the CUnit's functions to run the tests withspdk_ut_run_tests(). That way, each test will have the ability to runa specific test case.The blob.c unit test wasn't changed, because it runs all tests multipletimes with different parameter combinations, so it cannot be easilyconverted. In the future, each such combination could be split into aseparate test suite, which would make it compatible withspdk_ut_run_tests().Signed-off-by: Konrad Sztyber <konrad.sztyber@intel.com>Change-Id: I4463f808f89844e9bf32b5b31eda197c5d729d1dReviewed-on: https://review.spdk.io/gerrit/c/spdk/spdk/+/19288Reviewed-by: Tomasz Zawadzki <tomasz.zawadzki@intel.com>Community-CI: Mellanox Build BotReviewed-by: Aleksey Marchuk <alexeymar@nvidia.com>Tested-by: SPDK CI Jenkins <sys_sgci@intel.com>
show more ...
test/unit: move spdk_cunit.h to include/spdk_internalIt'll make it easier to include this file outside of unit tests.Signed-off-by: Konrad Sztyber <konrad.sztyber@intel.com>Change-Id: I171ddb864
test/unit: move spdk_cunit.h to include/spdk_internalIt'll make it easier to include this file outside of unit tests.Signed-off-by: Konrad Sztyber <konrad.sztyber@intel.com>Change-Id: I171ddb8649f67b5786f08647560e2907603d0574Reviewed-on: https://review.spdk.io/gerrit/c/spdk/spdk/+/19284Reviewed-by: Tomasz Zawadzki <tomasz.zawadzki@intel.com>Community-CI: Mellanox Build BotTested-by: SPDK CI Jenkins <sys_sgci@intel.com>Reviewed-by: Aleksey Marchuk <alexeymar@nvidia.com>
update Intel copyright noticesper Intel policy to include file commit date using git cmdbelow. The policy does not apply to non-Intel (C) notices.git log --follow -C90% --format=%ad --date defa
update Intel copyright noticesper Intel policy to include file commit date using git cmdbelow. The policy does not apply to non-Intel (C) notices.git log --follow -C90% --format=%ad --date default <file> | tail -1and then pull just the 4 digit year from the result.Intel copyrights were not added to files where Intel either hadno contribution ot the contribution lacked substance (ie licenseheader updates, formatting changes, etc). Contribution date used"--follow -C95%" to get the most accurate date.Note that several files in this patch didn't end the license/(c)block with a blank comment line so these were added as the vastmajority of files do have this last blank line. Simply there forconsistency.Signed-off-by: paul luse <paul.e.luse@intel.com>Change-Id: Id5b7ce4f658fe87132f14139ead58d6e285c04d4Reviewed-on: https://review.spdk.io/gerrit/c/spdk/spdk/+/15192Tested-by: SPDK CI Jenkins <sys_sgci@intel.com>Reviewed-by: Jim Harris <james.r.harris@intel.com>Reviewed-by: Ben Walker <benjamin.walker@intel.com>Community-CI: Mellanox Build Bot
check_format: For C files only, fix return type breaksIn SPDK, declarations have the return type on the same line. Definitionshave the return type on a separate line. Astyle has an option forenfo
check_format: For C files only, fix return type breaksIn SPDK, declarations have the return type on the same line. Definitionshave the return type on a separate line. Astyle has an option forenforcing this. Unfortunately, it seems to have two bugs:1) It doesn't work correctly at all on C++ files.2) It often fails on functions that return enums, or long type namesDeal with 1) by adjusting the check_format.sh script to only tell astyleto fix return type line breaks for C files and not C++. Deal with 2) byadding a few typedefs to work around the problem.Change-Id: Idf28281466cab8411ce252d5f02ab384166790c6Signed-off-by: Ben Walker <benjamin.walker@intel.com>Reviewed-on: https://review.spdk.io/gerrit/c/spdk/spdk/+/13437Tested-by: SPDK CI Jenkins <sys_sgci@intel.com>Reviewed-by: Jim Harris <james.r.harris@intel.com>Reviewed-by: Dong Yi <dongx.yi@intel.com>Reviewed-by: Tomasz Zawadzki <tomasz.zawadzki@intel.com>Community-CI: Broadcom CI <spdk-ci.pdl@broadcom.com>
Replace most BSD 3-clause license text with SPDX identifier.Many open source projects have moved to using SPDX identifiersto specify license information, reducing the amount ofboilerplate code in
Replace most BSD 3-clause license text with SPDX identifier.Many open source projects have moved to using SPDX identifiersto specify license information, reducing the amount ofboilerplate code in every source file. This patch replacesthe bulk of SPDK .c, .cpp and Makefiles with the BSD-3-Clauseidentifier.Almost all of these files share the exact same license text,and this patch only modifies the files that contain themost common license text. There can be slight variationsbecause the third clause contains company names - most say"Intel Corporation", but there are instances for Nvidia,Samsung, Eideticom and even "the copyright holder".Used a bash script to automate replacement of the license textwith SPDX identifier which is checked into scripts/spdx.sh.Signed-off-by: Jim Harris <james.r.harris@intel.com>Change-Id: Iaa88ab5e92ea471691dc298cfe41ebfb5d169780Reviewed-on: https://review.spdk.io/gerrit/c/spdk/spdk/+/12904Community-CI: Broadcom CI <spdk-ci.pdl@broadcom.com>Community-CI: Mellanox Build BotTested-by: SPDK CI Jenkins <sys_sgci@intel.com>Reviewed-by: Aleksey Marchuk <alexeymar@nvidia.com>Reviewed-by: Changpeng Liu <changpeng.liu@intel.com>Reviewed-by: Dong Yi <dongx.yi@intel.com>Reviewed-by: Konrad Sztyber <konrad.sztyber@intel.com>Reviewed-by: Paul Luse <paul.e.luse@intel.com>Reviewed-by: <qun.wan@intel.com>
test: optimize unit test .gitignore filesJust add a single .gitignore file in test/unitthat covers *_ut. That allows us to eliminate100 .gitignore files in the test/unit directoryhierarchy.Si
test: optimize unit test .gitignore filesJust add a single .gitignore file in test/unitthat covers *_ut. That allows us to eliminate100 .gitignore files in the test/unit directoryhierarchy.Signed-off-by: Jim Harris <james.r.harris@intel.com>Change-Id: Ia190587b4d5c6f1847471be27550cbfb843dc01eReviewed-on: https://review.spdk.io/gerrit/c/spdk/spdk/+/9235Community-CI: Broadcom CI <spdk-ci.pdl@broadcom.com>Community-CI: Mellanox Build BotTested-by: SPDK CI Jenkins <sys_sgci@intel.com>Reviewed-by: Changpeng Liu <changpeng.liu@intel.com>Reviewed-by: Aleksey Marchuk <alexeymar@mellanox.com>
unit: add unit test for the pci eventChange-Id: I147834c61f19da2e61ce5d5df2f49caaf93dc8d3Signed-off-by: Jin Yu <jin.yu@intel.com>Reviewed-on: https://review.spdk.io/gerrit/c/spdk/spdk/+/7226Comm
unit: add unit test for the pci eventChange-Id: I147834c61f19da2e61ce5d5df2f49caaf93dc8d3Signed-off-by: Jin Yu <jin.yu@intel.com>Reviewed-on: https://review.spdk.io/gerrit/c/spdk/spdk/+/7226Community-CI: Broadcom CICommunity-CI: Mellanox Build BotTested-by: SPDK CI Jenkins <sys_sgci@intel.com>Reviewed-by: Paul Luse <paul.e.luse@intel.com>Reviewed-by: Jim Harris <james.r.harris@intel.com>Reviewed-by: Aleksey Marchuk <alexeymar@mellanox.com>Reviewed-by: Changpeng Liu <changpeng.liu@intel.com>