Makefile: add test using the null ioengine
authorSitsofe Wheeler <sitsofe@yahoo.com>
Sat, 11 Feb 2017 10:05:15 +0000 (10:05 +0000)
committerSitsofe Wheeler <sitsofe@yahoo.com>
Thu, 16 Feb 2017 07:04:06 +0000 (07:04 +0000)
Signed-off-by: Sitsofe Wheeler <sitsofe@yahoo.com>
Makefile

index a2842a0acdde2a8f2c8a149cc27ac19cef63b042..41124102442040feac88f5dccea17c50161f4750 100644 (file)
--- a/Makefile
+++ b/Makefile
@@ -303,7 +303,7 @@ endif
 
 all: $(PROGS) $(T_TEST_PROGS) $(SCRIPTS) FORCE
 
-.PHONY: all install clean
+.PHONY: all install clean test
 .PHONY: FORCE cscope
 
 FIO-VERSION-FILE: FORCE
@@ -448,7 +448,8 @@ doc: tools/plot/fio2gnuplot.1
        @man -t tools/plot/fio2gnuplot.1 | ps2pdf - fio2gnuplot.pdf
        @man -t tools/hist/fiologparser_hist.py.1 | ps2pdf - fiologparser_hist.pdf
 
-test:
+test: fio
+       ./fio --minimal --ioengine=null --runtime=1s --name=nulltest --rw=randrw --iodepth=2 --norandommap --random_generator=tausworthe64 --size=16T --name=verifynulltest --rw=write --verify=crc32c --verify_state_save=0 --size=100M
 
 install: $(PROGS) $(SCRIPTS) tools/plot/fio2gnuplot.1 FORCE
        $(INSTALL) -m 755 -d $(DESTDIR)$(bindir)