xref: /linux/tools/testing/selftests/ublk/Makefile (revision 3d6ee575d0d49be35dbb787db4d05bdf94e2cdbb)
16aecda00SMing Lei# SPDX-License-Identifier: GPL-2.0
26aecda00SMing Lei
36aecda00SMing LeiCFLAGS += -O3 -Wl,-no-as-needed -Wall -I $(top_srcdir)
4*3d6ee575SUday Shankarifneq ($(WERROR),0)
5*3d6ee575SUday Shankar	CFLAGS += -Werror
6*3d6ee575SUday Shankarendif
7*3d6ee575SUday Shankar
86aecda00SMing LeiLDLIBS += -lpthread -lm -luring
96aecda00SMing Lei
10723977caSMing LeiTEST_PROGS := test_generic_01.sh
118c778614SMing LeiTEST_PROGS += test_generic_02.sh
12c78ae7b7SMing LeiTEST_PROGS += test_generic_03.sh
1357e13a2eSMing LeiTEST_PROGS += test_generic_04.sh
1457e13a2eSMing LeiTEST_PROGS += test_generic_05.sh
1581586652SUday ShankarTEST_PROGS += test_generic_06.sh
16730d8379SMing LeiTEST_PROGS += test_generic_07.sh
17723977caSMing Lei
18723977caSMing LeiTEST_PROGS += test_null_01.sh
198cb9b971SMing LeiTEST_PROGS += test_null_02.sh
205d95bfb5SMing LeiTEST_PROGS += test_loop_01.sh
215d95bfb5SMing LeiTEST_PROGS += test_loop_02.sh
22bedc9cbcSMing LeiTEST_PROGS += test_loop_03.sh
23bedc9cbcSMing LeiTEST_PROGS += test_loop_04.sh
248c778614SMing LeiTEST_PROGS += test_loop_05.sh
250f3ebf2dSMing LeiTEST_PROGS += test_stripe_01.sh
260f3ebf2dSMing LeiTEST_PROGS += test_stripe_02.sh
278c778614SMing LeiTEST_PROGS += test_stripe_03.sh
2857ed58c1SMing LeiTEST_PROGS += test_stripe_04.sh
296aecda00SMing Lei
30c60ac48eSMing LeiTEST_PROGS += test_stress_01.sh
31af83ccc7SMing LeiTEST_PROGS += test_stress_02.sh
32d836590dSMing LeiTEST_PROGS += test_stress_03.sh
33d836590dSMing LeiTEST_PROGS += test_stress_04.sh
342f9a30bdSMing LeiTEST_PROGS += test_stress_05.sh
35c60ac48eSMing Lei
366aecda00SMing LeiTEST_GEN_PROGS_EXTENDED = kublk
376aecda00SMing Lei
386aecda00SMing Leiinclude ../lib.mk
396aecda00SMing Lei
4081586652SUday Shankar$(TEST_GEN_PROGS_EXTENDED): kublk.c null.c file_backed.c common.c stripe.c \
4181586652SUday Shankar	fault_inject.c
42632051ffSMing Lei
43632051ffSMing Leicheck:
44632051ffSMing Lei	shellcheck -x -f gcc *.sh
45