integck_SOURCES = tests/fs-tests/integrity/integck.c
integck_LDADD = libubi.a libmissing.a
integck_CPPFLAGS = $(AM_CPPFLAGS) -I$(top_srcdir)/ubi-utils/include

test_1_SOURCES = tests/fs-tests/simple/test_1.c tests/fs-tests/lib/tests.c
test_1_SOURCES += tests/fs-tests/lib/tests.h
test_1_CPPFLAGS = $(AM_CPPFLAGS) -I$(top_srcdir)/tests/fs-tests/lib

test_2_SOURCES = tests/fs-tests/simple/test_2.c tests/fs-tests/lib/tests.c
test_2_SOURCES += tests/fs-tests/lib/tests.h
test_2_CPPFLAGS = $(AM_CPPFLAGS) -I$(top_srcdir)/tests/fs-tests/lib

ftrunc_SOURCES = tests/fs-tests/simple/ftrunc.c tests/fs-tests/lib/tests.c
ftrunc_SOURCES += tests/fs-tests/lib/tests.h
ftrunc_CPPFLAGS = $(AM_CPPFLAGS) -I$(top_srcdir)/tests/fs-tests/lib

perf_SOURCES = tests/fs-tests/simple/perf.c tests/fs-tests/lib/tests.c
perf_SOURCES += tests/fs-tests/lib/tests.h
perf_CPPFLAGS = $(AM_CPPFLAGS) -I$(top_srcdir)/tests/fs-tests/lib

orph_SOURCES = tests/fs-tests/simple/orph.c tests/fs-tests/lib/tests.c
orph_SOURCES += tests/fs-tests/lib/tests.h
orph_CPPFLAGS = $(AM_CPPFLAGS) -I$(top_srcdir)/tests/fs-tests/lib

stress_1_SOURCES = tests/fs-tests/stress/atoms/stress_1.c
stress_1_SOURCES += tests/fs-tests/lib/tests.c tests/fs-tests/lib/tests.h
stress_1_CPPFLAGS = $(AM_CPPFLAGS) -I$(top_srcdir)/tests/fs-tests/lib

stress_2_SOURCES = tests/fs-tests/stress/atoms/stress_2.c
stress_2_SOURCES += tests/fs-tests/lib/tests.c tests/fs-tests/lib/tests.h
stress_2_CPPFLAGS = $(AM_CPPFLAGS) -I$(top_srcdir)/tests/fs-tests/lib

stress_3_SOURCES = tests/fs-tests/stress/atoms/stress_3.c
stress_3_SOURCES += tests/fs-tests/lib/tests.c tests/fs-tests/lib/tests.h
stress_3_CPPFLAGS = $(AM_CPPFLAGS) -I$(top_srcdir)/tests/fs-tests/lib

pdfrun_SOURCES = tests/fs-tests/stress/atoms/pdfrun.c
pdfrun_SOURCES += tests/fs-tests/lib/tests.c tests/fs-tests/lib/tests.h
pdfrun_CPPFLAGS = $(AM_CPPFLAGS) -I$(top_srcdir)/tests/fs-tests/lib

rndwrite00_SOURCES = tests/fs-tests/stress/atoms/rndwrite00.c
rndwrite00_SOURCES += tests/fs-tests/lib/tests.c tests/fs-tests/lib/tests.h
rndwrite00_CPPFLAGS = $(AM_CPPFLAGS) -I$(top_srcdir)/tests/fs-tests/lib

fwrite00_SOURCES = tests/fs-tests/stress/atoms/fwrite00.c
fwrite00_SOURCES += tests/fs-tests/lib/tests.c tests/fs-tests/lib/tests.h
fwrite00_CPPFLAGS = $(AM_CPPFLAGS) -I$(top_srcdir)/tests/fs-tests/lib

rmdir00_SOURCES = tests/fs-tests/stress/atoms/rmdir00.c
rmdir00_SOURCES += tests/fs-tests/lib/tests.c tests/fs-tests/lib/tests.h
rmdir00_CPPFLAGS = $(AM_CPPFLAGS) -I$(top_srcdir)/tests/fs-tests/lib

rndrm00_SOURCES = tests/fs-tests/stress/atoms/rndrm00.c
rndrm00_SOURCES += tests/fs-tests/lib/tests.c tests/fs-tests/lib/tests.h
rndrm00_CPPFLAGS = $(AM_CPPFLAGS) -I$(top_srcdir)/tests/fs-tests/lib

rndrm99_SOURCES = tests/fs-tests/stress/atoms/rndrm99.c
rndrm99_SOURCES += tests/fs-tests/lib/tests.c tests/fs-tests/lib/tests.h
rndrm99_CPPFLAGS = $(AM_CPPFLAGS) -I$(top_srcdir)/tests/fs-tests/lib

gcd_hupper_SOURCES = tests/fs-tests/stress/atoms/gcd_hupper.c
gcd_hupper_SOURCES += tests/fs-tests/lib/tests.c tests/fs-tests/lib/tests.h
gcd_hupper_CPPFLAGS = $(AM_CPPFLAGS) -I$(top_srcdir)/tests/fs-tests/lib

fstest_monitor_SOURCES = tests/fs-tests/utils/fstest_monitor.c

free_space_SOURCES = tests/fs-tests/utils/free_space.c

test_PROGRAMS += \
	integck test_1 test_2 ftrunc perf orph \
	stress_1 stress_2 stress_3 pdfrun gcd_hupper \
	rndwrite00 fwrite00 rmdir00 rndrm00 rndrm99 \
	fstest_monitor free_space

test_SCRIPTS += \
	tests/fs-tests/fs_help_all.sh tests/fs-tests/fs_run_all.sh \
	tests/fs-tests/stress/fs_stress00.sh \
	tests/fs-tests/stress/fs_stress01.sh