"Fossies" - the Fresh Open Source Software Archive

Member "cryptsetup-2.4.3/tests/Makefile.localtest" (13 Jan 2022, 1018 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 last Fossies "Diffs" side-by-side code changes report for "Makefile.localtest": 2.3.6_vs_2.4.0.

    1 #
    2 # Makefile to run tests with system binaries
    3 # USE: make -f Makefile.localtest tests CRYPTSETUP_PATH=/sbin
    4 #
    5 CPPFLAGS=-I../lib/ -I../lib/luks1 -DHAVE_DECL_DM_TASK_RETRY_REMOVE -DKERNEL_KEYRING -DHAVE_SYS_SYSMACROS_H -DNO_CRYPTSETUP_PATH
    6 CFLAGS=-O2 -g -Wall
    7 LDLIBS=-lcryptsetup -ldevmapper
    8 TESTS=$(wildcard *-test *-test2) api-test api-test-2 all-symbols-test
    9 
   10 differ: differ.o
   11 	$(CC) -o $@ $^
   12 
   13 api-test: api-test.o test_utils.o
   14 	$(CC) -o $@ $^ $(LDLIBS)
   15 
   16 api-test-2: api-test-2.o test_utils.o
   17 	$(CC) -o $@ $^ $(LDLIBS)
   18 
   19 test-symbols-list.h: generate-symbols-list
   20 	./generate-symbols-list ../lib/libcryptsetup.sym > test-symbols-list.h
   21 
   22 all-symbols-test.o: test-symbols-list.h
   23 	$(CC) -D_GNU_SOURCE -c $*.c
   24 
   25 all-symbols-test: all-symbols-test.o
   26 	$(CC) -o $@ $^ -ldl
   27 
   28 tests: differ $(TESTS)
   29 	@for test in $(sort $(TESTS)); do \
   30 		echo [$$test]; \
   31 		./$$test; \
   32 		[ $$? -ne 77 -a $$? -ne 0 ] && exit 1; \
   33 		true; \
   34 	done;
   35 
   36 clean:
   37 	rm -f *.o differ api-test api-test-2 all-symbols-test test-symbols-list.h
   38 
   39 .PHONY: clean