"Fossies" - the Fresh Open Source Software Archive

Member "cryptsetup-2.4.3/tests/Makefile.am" (13 Jan 2022, 4922 Bytes) of package /linux/misc/cryptsetup-2.4.3.tar.xz:


As a special service "Fossies" has tried to format the requested text file into HTML format (style: standard) with prefixed line numbers. Alternatively you can here view or download the uninterpreted source code file. See also the latest Fossies "Diffs" side-by-side code changes report for "Makefile.am": 2.4.2_vs_2.4.3.

    1 TESTS = 00modules-test \
    2 	api-test \
    3 	api-test-2 \
    4 	compat-test-args \
    5 	compat-test \
    6 	compat-test2 \
    7 	loopaes-test \
    8 	align-test \
    9 	align-test2 \
   10 	discards-test \
   11 	mode-test \
   12 	password-hash-test \
   13 	tcrypt-compat-test \
   14 	luks1-compat-test \
   15 	device-test \
   16 	keyring-test \
   17 	keyring-compat-test \
   18 	luks2-validation-test \
   19 	luks2-integrity-test \
   20 	vectors-test \
   21 	blockwise-compat \
   22 	bitlk-compat-test \
   23 	run-all-symbols
   24 
   25 if VERITYSETUP
   26 TESTS += verity-compat-test
   27 endif
   28 
   29 if REENCRYPT
   30 TESTS += reencryption-compat-test reencryption-compat-test2 luks2-reencryption-test luks2-reencryption-mangle-test
   31 endif
   32 
   33 if INTEGRITYSETUP
   34 TESTS += integrity-compat-test
   35 endif
   36 
   37 if SSHPLUGIN_TOKEN
   38 TESTS += ssh-plugin-test
   39 endif
   40 
   41 ssh-plugin-test: fake_token_path.so
   42 
   43 fake_token_path.so:
   44 	$(CC) $(CFLAGS) -I $(top_srcdir)/lib -fPIC -shared \
   45 	-Wl,--version-script=$(top_srcdir)/lib/libcryptsetup.sym \
   46 	-o fake_token_path.so  $(top_srcdir)/tests/fake_token_path.c \
   47 	-DBUILD_DIR=\"$(abs_top_srcdir)/.libs/\"
   48 
   49 EXTRA_DIST = compatimage.img.xz compatv10image.img.xz \
   50 	compatimage2.img.xz \
   51 	conversion_imgs.tar.xz \
   52 	luks2_keyslot_unassigned.img.xz \
   53 	img_fs_ext4.img.xz img_fs_vfat.img.xz img_fs_xfs.img.xz \
   54 	valid_header_file.xz \
   55 	luks2_valid_hdr.img.xz \
   56 	luks2_header_requirements.xz \
   57 	luks2_header_requirements_free.xz \
   58 	luks2_mda_images.tar.xz \
   59 	evil_hdr-payload_overwrite.xz \
   60 	evil_hdr-stripes_payload_dmg.xz \
   61 	evil_hdr-luks_hdr_damage.xz \
   62 	evil_hdr-small_luks_device.xz \
   63 	evil_hdr-keyslot_overlap.xz \
   64 	tcrypt-images.tar.xz \
   65 	luks1-images.tar.xz \
   66 	00modules-test \
   67 	compat-test-args \
   68 	compat-test \
   69 	compat-test2 \
   70 	loopaes-test align-test discards-test mode-test password-hash-test \
   71 	align-test2 verity-compat-test \
   72 	reencryption-compat-test \
   73 	reencryption-compat-test2 \
   74 	luks2-reencryption-test \
   75 	luks2-reencryption-mangle-test \
   76 	tcrypt-compat-test \
   77 	luks1-compat-test \
   78 	luks2-validation-test generators \
   79 	luks2-integrity-test \
   80 	device-test \
   81 	keyring-test \
   82 	keyring-compat-test \
   83 	integrity-compat-test \
   84 	cryptsetup-valg-supps valg.sh valg-api.sh \
   85 	blockwise-compat \
   86 	blkid-luks2-pv.img.xz \
   87 	Makefile.localtest \
   88 	bitlk-compat-test \
   89 	bitlk-images.tar.xz \
   90 	ssh-plugin-test \
   91 	generate-symbols-list \
   92 	run-all-symbols \
   93 	fake_token_path.c
   94 
   95 CLEANFILES = cryptsetup-tst* valglog* *-fail-*.log test-symbols-list.h fake_token_path.so
   96 clean-local:
   97 	-rm -rf tcrypt-images luks1-images luks2-images bitlk-images conversion_imgs luks2_valid_hdr.img blkid-luks2-pv-img blkid-luks2-pv-img.bcp
   98 
   99 differ_SOURCES = differ.c
  100 differ_CFLAGS = $(AM_CFLAGS) -Wall -O2
  101 
  102 api_test_SOURCES = api-test.c api_test.h test_utils.c
  103 api_test_LDADD = ../libcryptsetup.la
  104 api_test_LDFLAGS = $(AM_LDFLAGS) -static
  105 api_test_CFLAGS = -g -Wall -O0 $(AM_CFLAGS) -I$(top_srcdir)/lib
  106 api_test_CPPFLAGS = $(AM_CPPFLAGS) -include config.h
  107 
  108 api_test_2_SOURCES = api-test-2.c api_test.h test_utils.c
  109 api_test_2_LDADD = ../libcryptsetup.la
  110 api_test_2_LDFLAGS = $(AM_LDFLAGS) -static
  111 api_test_2_CFLAGS = -g -Wall -O0 $(AM_CFLAGS) -I$(top_srcdir)/lib
  112 api_test_2_CPPFLAGS = $(AM_CPPFLAGS) -include config.h
  113 
  114 vectors_test_SOURCES = crypto-vectors.c
  115 vectors_test_LDADD = ../libcrypto_backend.la @CRYPTO_LIBS@ @LIBARGON2_LIBS@
  116 vectors_test_LDFLAGS = $(AM_LDFLAGS) -static
  117 vectors_test_CFLAGS = $(AM_CFLAGS) -I$(top_srcdir)/lib @CRYPTO_CFLAGS@
  118 vectors_test_CPPFLAGS = $(AM_CPPFLAGS) -include config.h
  119 
  120 unit_utils_io_SOURCES = unit-utils-io.c
  121 unit_utils_io_LDADD = ../libutils_io.la
  122 unit_utils_io_LDFLAGS = $(AM_LDFLAGS) -static
  123 unit_utils_io_CFLAGS = $(AM_CFLAGS) -I$(top_srcdir)/lib
  124 unit_utils_io_CPPFLAGS = $(AM_CPPFLAGS) -include config.h
  125 
  126 BUILT_SOURCES = test-symbols-list.h
  127 
  128 test-symbols-list.h: $(top_srcdir)/lib/libcryptsetup.sym generate-symbols-list
  129 	$(srcdir)/generate-symbols-list $(top_srcdir)/lib/libcryptsetup.sym > $(builddir)/test-symbols-list.h
  130 
  131 all_symbols_test_SOURCES = all-symbols-test.c
  132 nodist_all_symbols_test_SOURCES = test-symbols-list.h
  133 all_symbols_test.$(OBJEXT): test-symbols-list.h
  134 all_symbols_test_LDFLAGS = $(AM_LDFLAGS) -ldl
  135 all_symbols_test_CFLAGS = $(AM_CFLAGS)
  136 all_symbols_test_CPPFLAGS = $(AM_CPPFLAGS) -D_GNU_SOURCE
  137 
  138 check_PROGRAMS = api-test api-test-2 differ vectors-test unit-utils-io all-symbols-test
  139 
  140 check-programs: $(check_PROGRAMS) fake_token_path.so
  141 
  142 conversion_imgs:
  143 	@tar xJf conversion_imgs.tar.xz
  144 
  145 compatimage.img:
  146 	@xz -k -d compatimage.img.xz
  147 
  148 valgrind-check: api-test api-test-2 differ
  149 	@VALG=1 ./compat-test-args
  150 	@VALG=1 ./compat-test
  151 	@VALG=1 ./compat-test2
  152 	@VALG=1 ./luks2-validation-test
  153 	@VALG=1 ./verity-compat-test
  154 	@VALG=1 ./integrity-compat-test
  155 	@INFOSTRING="api-test-000" ./valg-api.sh ./api-test
  156 	@INFOSTRING="api-test-002" ./valg-api.sh ./api-test-2
  157 	@VALG=1 ./luks2-reencryption-test
  158 	@VALG=1 ./luks2-reencryption-mangle-test
  159 	@VALG=1 ./bitlk-compat-test
  160 	@VALG=1 ./tcrypt-compat-test
  161 	@grep -l "ERROR SUMMARY: [^0] errors" valglog* || echo "No leaks detected."
  162 
  163 .PHONY: valgrind-check