xref: /tools/testing/selftests/ublk/Makefile
  • Home
  • Annotate
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
  • current directory
1# SPDX-License-Identifier: GPL-2.0
2
3CFLAGS += -O3 -Wl,-no-as-needed -Wall -I $(top_srcdir)/usr/include
4ifneq ($(WERROR),0)
5	CFLAGS += -Werror
6endif
7
8LDLIBS += -lpthread -lm -luring
9
10TEST_PROGS := test_generic_01.sh
11TEST_PROGS += test_generic_02.sh
12TEST_PROGS += test_generic_03.sh
13TEST_PROGS += test_generic_04.sh
14TEST_PROGS += test_generic_05.sh
15TEST_PROGS += test_generic_06.sh
16TEST_PROGS += test_generic_07.sh
17
18TEST_PROGS += test_generic_08.sh
19TEST_PROGS += test_generic_09.sh
20TEST_PROGS += test_generic_10.sh
21TEST_PROGS += test_generic_11.sh
22TEST_PROGS += test_generic_12.sh
23
24TEST_PROGS += test_null_01.sh
25TEST_PROGS += test_null_02.sh
26TEST_PROGS += test_loop_01.sh
27TEST_PROGS += test_loop_02.sh
28TEST_PROGS += test_loop_03.sh
29TEST_PROGS += test_loop_04.sh
30TEST_PROGS += test_loop_05.sh
31TEST_PROGS += test_stripe_01.sh
32TEST_PROGS += test_stripe_02.sh
33TEST_PROGS += test_stripe_03.sh
34TEST_PROGS += test_stripe_04.sh
35
36TEST_PROGS += test_stress_01.sh
37TEST_PROGS += test_stress_02.sh
38TEST_PROGS += test_stress_03.sh
39TEST_PROGS += test_stress_04.sh
40TEST_PROGS += test_stress_05.sh
41
42TEST_GEN_PROGS_EXTENDED = kublk
43
44include ../lib.mk
45
46$(TEST_GEN_PROGS_EXTENDED): kublk.c null.c file_backed.c common.c stripe.c \
47	fault_inject.c
48
49check:
50	shellcheck -x -f gcc *.sh
51

Last Index update Fri Aug 22 10:33:58 CST 2025