Files
libiscsi/test-tool/Makefile.am
Ronnie Sahlberg a41ec1fe60 TESTS: Add tests that get_lba_status for a single range works
Add a test for unmapping a single range of blocks and that
get_lba_status returns correct data.

Test unmapping a single block at offsets 0-255

Test unmapping 1-255 blocks at offset 0 and verify that
get_lba_status at LBA 0 returns a descriptor of 1-255 blocks.
get_lba_status at the last block of the unmapped range returns
a descriptor for a single block.

Signed-off-by: Ronnie Sahlberg <ronniesahlberg@gmail.com>
2014-07-14 19:46:12 -07:00

197 lines
5.6 KiB
Makefile

AM_CPPFLAGS=-I. -I../include "-D_U_=__attribute__((unused))" \
"-D_R_(A,B)=__attribute__((format(printf,A,B)))"
AM_CFLAGS=$(WARN_CFLAGS)
LDADD = ../lib/libiscsi.la
EXTRA_DIST = README
dist_noinst_HEADERS = iscsi-support.h \
iscsi-test-cu.h
# libiscsi test tool using cunit
if ISCSITEST
bin_PROGRAMS = iscsi-test-cu
iscsi_test_cu_LDFLAGS = -ldl -lcunit
iscsi_test_cu_SOURCES = iscsi-test-cu.c \
iscsi-support.c \
test_compareandwrite_simple.c \
test_compareandwrite_miscompare.c \
test_get_lba_status_simple.c \
test_get_lba_status_beyond_eol.c \
test_get_lba_status_unmap_single.c \
test_inquiry_alloc_length.c \
test_inquiry_block_limits.c \
test_inquiry_evpd.c \
test_inquiry_mandatory_vpd_sbc.c \
test_inquiry_standard.c \
test_inquiry_supported_vpd.c \
test_inquiry_version_descriptors.c \
test_iscsi_cmdsn_toohigh.c \
test_iscsi_cmdsn_toolow.c \
test_iscsi_datasn_invalid.c \
test_mandatory_sbc.c \
test_modesense6_all_pages.c \
test_modesense6_residuals.c \
test_nomedia_sbc.c \
test_orwrite_simple.c \
test_orwrite_beyond_eol.c \
test_orwrite_0blocks.c \
test_orwrite_wrprotect.c \
test_orwrite_flags.c \
test_orwrite_verify.c \
test_prefetch10_simple.c \
test_prefetch10_beyond_eol.c \
test_prefetch10_0blocks.c \
test_prefetch10_flags.c \
test_prefetch16_simple.c \
test_prefetch16_beyond_eol.c \
test_prefetch16_0blocks.c \
test_prefetch16_flags.c \
test_preventallow_simple.c \
test_preventallow_eject.c \
test_preventallow_itnexus_loss.c \
test_preventallow_logout.c \
test_preventallow_warm_reset.c \
test_preventallow_cold_reset.c \
test_preventallow_lun_reset.c \
test_preventallow_2_itnexuses.c \
test_prin_read_keys_simple.c \
test_prin_serviceaction_range.c \
test_prout_register_simple.c \
test_prout_reserve_simple.c \
test_prout_reserve_access.c \
test_prout_reserve_ownership.c \
test_read6_simple.c \
test_read6_beyond_eol.c \
test_read10_simple.c \
test_read10_beyond_eol.c \
test_read10_0blocks.c \
test_read10_rdprotect.c \
test_read10_flags.c \
test_read10_residuals.c \
test_read10_invalid.c \
test_read12_simple.c \
test_read12_beyond_eol.c \
test_read12_0blocks.c \
test_read12_rdprotect.c \
test_read12_flags.c \
test_read12_residuals.c \
test_read16_simple.c \
test_read16_beyond_eol.c \
test_read16_0blocks.c \
test_read16_rdprotect.c \
test_read16_flags.c \
test_read16_residuals.c \
test_readcapacity10_simple.c \
test_readcapacity16_alloclen.c \
test_readcapacity16_protection.c \
test_readcapacity16_simple.c \
test_readonly_sbc.c \
test_report_supported_opcodes_one_command.c \
test_report_supported_opcodes_rctd.c \
test_report_supported_opcodes_servactv.c \
test_report_supported_opcodes_simple.c \
test_reserve6_simple.c \
test_reserve6_2initiators.c \
test_reserve6_logout.c \
test_reserve6_itnexus_loss.c \
test_reserve6_target_warm_reset.c \
test_reserve6_target_cold_reset.c \
test_reserve6_lun_reset.c \
test_sanitize_block_erase.c \
test_sanitize_block_erase_reserved.c \
test_sanitize_crypto_erase.c \
test_sanitize_crypto_erase_reserved.c \
test_sanitize_exit_failure_mode.c \
test_sanitize_invalid_serviceaction.c \
test_sanitize_overwrite.c \
test_sanitize_overwrite_reserved.c \
test_sanitize_readonly.c \
test_sanitize_reservations.c \
test_sanitize_reset.c \
test_startstopunit_simple.c \
test_startstopunit_pwrcnd.c \
test_startstopunit_noloej.c \
test_testunitready_simple.c \
test_unmap_simple.c \
test_unmap_0blocks.c \
test_unmap_vpd.c \
test_verify10_simple.c \
test_verify10_beyond_eol.c \
test_verify10_0blocks.c \
test_verify10_vrprotect.c \
test_verify10_flags.c \
test_verify10_mismatch.c \
test_verify10_mismatch_no_cmp.c \
test_verify12_simple.c \
test_verify12_beyond_eol.c \
test_verify12_0blocks.c \
test_verify12_vrprotect.c \
test_verify12_flags.c \
test_verify12_mismatch.c \
test_verify12_mismatch_no_cmp.c \
test_verify16_simple.c \
test_verify16_beyond_eol.c \
test_verify16_0blocks.c \
test_verify16_vrprotect.c \
test_verify16_flags.c \
test_verify16_mismatch.c \
test_verify16_mismatch_no_cmp.c \
test_write10_simple.c \
test_write10_beyond_eol.c \
test_write10_0blocks.c \
test_write10_wrprotect.c \
test_write10_flags.c \
test_write10_residuals.c \
test_write12_simple.c \
test_write12_beyond_eol.c \
test_write12_0blocks.c \
test_write12_wrprotect.c \
test_write12_flags.c \
test_write12_residuals.c \
test_write16_simple.c \
test_write16_beyond_eol.c \
test_write16_0blocks.c \
test_write16_wrprotect.c \
test_write16_flags.c \
test_write16_residuals.c \
test_writesame10_simple.c \
test_writesame10_beyond_eol.c \
test_writesame10_0blocks.c \
test_writesame10_wrprotect.c \
test_writesame10_unmap.c \
test_writesame10_unmap_unaligned.c \
test_writesame10_unmap_until_end.c \
test_writesame10_unmap_vpd.c \
test_writesame16_simple.c \
test_writesame16_beyond_eol.c \
test_writesame16_0blocks.c \
test_writesame16_wrprotect.c \
test_writesame16_unmap.c \
test_writesame16_unmap_unaligned.c \
test_writesame16_unmap_until_end.c \
test_writesame16_unmap_vpd.c \
test_writeverify10_simple.c \
test_writeverify10_beyond_eol.c \
test_writeverify10_0blocks.c \
test_writeverify10_wrprotect.c \
test_writeverify10_flags.c \
test_writeverify10_residuals.c \
test_writeverify12_simple.c \
test_writeverify12_beyond_eol.c \
test_writeverify12_0blocks.c \
test_writeverify12_wrprotect.c \
test_writeverify12_flags.c \
test_writeverify12_residuals.c \
test_writeverify16_simple.c \
test_writeverify16_beyond_eol.c \
test_writeverify16_0blocks.c \
test_writeverify16_wrprotect.c \
test_writeverify16_flags.c \
test_writeverify16_residuals.c
endif