numam-spdk/test
Shuhei Matsumoto ded6d2c7f2 lib/util: Add spdk_sn32_lt/gt() to compare two numbers based on serial number arithmetic
Previously the macro SN32_LT and SN32_GT had been added to iSCSI
library. But such comparisons may be used in other libraries.
So add two inline helper functions spdk_sn32_lt() and spdk_sn32_gt()
to include/spdk/util.h.

Add unit test for these functions. These functions are located in
header file but math.c is the place if they are located in source file.
Hence add unit test as the one for math.c.

The next patch replaces the macro SN32_LT and SN32_GT by
spdk_sn32_lt() and spdk_sn32_gt() in iSCSI library, respectively.

Signed-off-by: Shuhei Matsumoto <shuhei.matsumoto.xt@hitachi.com>
Change-Id: Id3e4d80fea98ad4ae1516e27b9c9e8ec6f37e7a8
Reviewed-on: https://review.spdk.io/gerrit/c/spdk/spdk/+/1346
Reviewed-by: Darek Stojaczyk <dariusz.stojaczyk@intel.com>
Reviewed-by: Jim Harris <james.r.harris@intel.com>
Tested-by: SPDK CI Jenkins <sys_sgci@intel.com>
2020-03-19 08:51:31 +00:00
..
app test/iscsi: add application for target fuzz testing. 2020-03-13 08:53:46 +00:00
bdev test/common: inline fio_config_add_job 2020-03-19 08:50:59 +00:00
blobfs test/rocksdb: fix db_bench build with gcc9 2020-03-05 13:33:23 +00:00
blobstore lib/log: do not put trailing whitespace in fdump 2020-02-04 20:08:02 +00:00
common test/common: inline fio_config_add_job 2020-03-19 08:50:59 +00:00
compress module/compress: rename set_compress_pmd RPC to match convention 2020-01-31 12:37:31 +00:00
config_converter test/config_converter: Declare $rootdir, $testdir paths 2020-02-20 09:54:15 +00:00
cpp_headers queue_extras: use SPDK_CONTAINEROF 2019-10-07 15:06:01 +00:00
dpdk_memory_utility test: add test to validate dpdk mem utility 2020-01-24 05:46:43 +00:00
env test: move report_test_completion into run_test 2020-01-14 07:49:08 +00:00
event lib/thread: Fail spdk_thread_exit() if thread has any registered poller 2020-02-13 09:51:15 +00:00
ftl fio: Remove hardcoded path to fio repo 2020-03-17 14:44:20 +00:00
fuzz test/fuzz: Rename FUZZ_APP to VHOST_FUZZ_UP 2020-02-27 10:15:40 +00:00
ioat test: move report_test_completion into run_test 2020-01-14 07:49:08 +00:00
iscsi_tgt test: do not use iter_pci_class_code in tests 2020-03-18 08:03:21 +00:00
json_config subsystem/accel: add entry point for .write_config_json 2020-02-18 08:05:34 +00:00
lvol test/lvol: rewrite delete_snapshot_with_snapshot to bash 2020-03-17 16:37:02 +00:00
make test/make: don't print missing symbols in libs. 2020-03-18 08:02:30 +00:00
nvme memory.h: move to public headers 2020-03-19 08:50:45 +00:00
nvmf test: do not use iter_pci_class_code in tests 2020-03-18 08:03:21 +00:00
ocf test: move report_test_completion into run_test 2020-01-14 07:49:08 +00:00
openstack test/openstack: Add possibility to reinstall devstack on required branch 2019-11-07 13:22:50 +00:00
pmem script: update pmem test script 2020-02-12 12:07:30 +00:00
rpc scripts/rpc.py: add daemon mode 2020-03-11 11:35:03 +00:00
rpc_client test: add timing calls to run_test 2019-12-10 17:12:03 +00:00
spdkcli test: move report_test_completion into run_test 2020-01-14 07:49:08 +00:00
unit lib/util: Add spdk_sn32_lt/gt() to compare two numbers based on serial number arithmetic 2020-03-19 08:51:31 +00:00
vhost test: do not use iter_pci_class_code in tests 2020-03-18 08:03:21 +00:00
vmd fio: Remove hardcoded path to fio repo 2020-03-17 14:44:20 +00:00
Makefile build: add option to disable building unit tests 2020-03-10 09:12:21 +00:00
spdk_cunit.h test: remove leftover spdk_cunit declaration 2018-07-06 22:47:56 +00:00