add (c) and SPDX header to bash files as neededper Intel policy to include file commit date using git cmdbelow. The policy does not apply to non-Intel (C) notices.git log --follow -C90% --forma
add (c) and SPDX header to bash files as neededper 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 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)For intel copyrights added, --follow and -C95% were used.Signed-off-by: paul luse <paul.e.luse@intel.com>Change-Id: I2ef86976095b88a9bf5b1003e59f3943cd6bbe4cReviewed-on: https://review.spdk.io/gerrit/c/spdk/spdk/+/15209Tested-by: SPDK CI Jenkins <sys_sgci@intel.com>Community-CI: Mellanox Build BotReviewed-by: Ben Walker <benjamin.walker@intel.com>Reviewed-by: Krzysztof Karas <krzysztof.karas@intel.com>Reviewed-by: Jim Harris <james.r.harris@intel.com>
show more ...
autotest_common.sh: change rpc_py to rpc_cmdChange rpc_py to use rpc_cmd function.The former needs to be defined explicitly in the scriptsthat uses function, while the latter is a functionalread
autotest_common.sh: change rpc_py to rpc_cmdChange rpc_py to use rpc_cmd function.The former needs to be defined explicitly in the scriptsthat uses function, while the latter is a functionalready available in autotest_common.sh.Additionally delete unnecessary rpc_py declarationsand override rpc_cmd where additional arguments areneeded (like -s sock_name.sock).Change-Id: I835f7eb308cd77658a2a425e153ab7ca460b5b61Signed-off-by: Krzysztof Karas <krzysztof.karas@intel.com>Reviewed-on: https://review.spdk.io/gerrit/c/spdk/spdk/+/12872Tested-by: SPDK CI Jenkins <sys_sgci@intel.com>Reviewed-by: Jim Harris <james.r.harris@intel.com>Reviewed-by: Tomasz Zawadzki <tomasz.zawadzki@intel.com>
check_format: Ignore shellcheck's SC2128 and SC2178 directivesThese are currently prone to false-positives especially in terms ofscoping. Consider the following:foo() { local bar=(42) echo "${
check_format: Ignore shellcheck's SC2128 and SC2178 directivesThese are currently prone to false-positives especially in terms ofscoping. Consider the following:foo() { local bar=(42) echo "${bar[*]}"}bar=43fooecho "$bar"Some versions of shellcheck, including the latest, 0.7.2, complainabout $bar being reused as a plain string here. This is incorrectsince foo() holds its own copy of bar[@] hence the assignment whichtakes place outside of it doesn't affect its content.SC2178 can be mitigated be reversing the order of declaration:bar=43foo() { ... }...but the SC2128 still remains.Currently, in our code majority of these warnings are coming fromfalse-positives due to initial source'ing which most of our testscripts do (e.g. they fetch a function where local bar=() is usedand in the test itself $bar happens to be assigned a plain string.This is still valid code).To mitigate, disable these directives untill shellcheck is capableof properly interpreting scoping when checking them.Signed-off-by: Michal Berger <michalx.berger@intel.com>Change-Id: Ifbde973eae6e261d79e1c340eb28644bce5f4e45Reviewed-on: https://review.spdk.io/gerrit/c/spdk/spdk/+/8503Tested-by: SPDK CI Jenkins <sys_sgci@intel.com>Reviewed-by: Shuhei Matsumoto <shuhei.matsumoto.xt@hitachi.com>Reviewed-by: Ben Walker <benjamin.walker@intel.com>Reviewed-by: Karol Latecki <karol.latecki@intel.com>Reviewed-by: Jim Harris <james.r.harris@intel.com>
build: Output executables from the app directory to build/binAutomatically place binaries produced from the app directoryinto build/bin. This matches with the output in build/libthat already exis
build: Output executables from the app directory to build/binAutomatically place binaries produced from the app directoryinto build/bin. This matches with the output in build/libthat already exists.Change-Id: I13cd2da71d2f88592e22308fe8a907bf458458b5Signed-off-by: Ben Walker <benjamin.walker@intel.com>Reviewed-on: https://review.spdk.io/gerrit/c/spdk/spdk/+/2379Community-CI: Mellanox Build BotCommunity-CI: Broadcom CITested-by: SPDK CI Jenkins <sys_sgci@intel.com>Reviewed-by: Jim Harris <james.r.harris@intel.com>Reviewed-by: Darek Stojaczyk <dariusz.stojaczyk@intel.com>
test: add test to validate dpdk mem utilityThis test essentially confirms that the new RPC properly creates a testfile and that the script can parse that file and run through a basic setof operat
test: add test to validate dpdk mem utilityThis test essentially confirms that the new RPC properly creates a testfile and that the script can parse that file and run through a basic setof operations and exit without an error.Change-Id: Idf0c831020696a3a62fcef13171eedf3fcf63f5bSigned-off-by: Seth Howell <seth.howell@intel.com>Reviewed-on: https://review.gerrithub.io/c/spdk/spdk/+/477867Tested-by: SPDK CI Jenkins <sys_sgci@intel.com>Community-CI: SPDK CI Jenkins <sys_sgci@intel.com>Reviewed-by: Jim Harris <james.r.harris@intel.com>Reviewed-by: Shuhei Matsumoto <shuhei.matsumoto.xt@hitachi.com>