Flexible I/O Tester development
 help / color / mirror / Atom feed
From: Bart Van Assche <bvanassche@acm.org>
To: Jens Axboe <axboe@kernel.dk>
Cc: fio@vger.kernel.org, Damien Le Moal <damien.lemoal@wdc.com>,
	Bart Van Assche <bvanassche@acm.org>
Subject: [PATCH 5/5] make test: Also run zbd tests
Date: Mon, 12 Aug 2019 19:01:36 -0700	[thread overview]
Message-ID: <20190813020136.15798-6-bvanassche@acm.org> (raw)
In-Reply-To: <20190813020136.15798-1-bvanassche@acm.org>

Include the ZBD tests in Travis runs such that the ZBD tests are run when
a fio pull request is submitted from the github website.

Signed-off-by: Bart Van Assche <bvanassche@acm.org>
---
 .travis.yml |  3 +++
 Makefile    | 14 ++++++++++++++
 2 files changed, 17 insertions(+)

diff --git a/.travis.yml b/.travis.yml
index 4a87fe6c45f8..26ed74ab7416 100644
--- a/.travis.yml
+++ b/.travis.yml
@@ -1,4 +1,7 @@
 language: c
+sudo: required
+# Choose trusty because the default dist (xenial) does not have null_blk
+dist: trusty
 os:
   - linux
 compiler:
diff --git a/Makefile b/Makefile
index fe02bf1df86f..803074e7db7f 100644
--- a/Makefile
+++ b/Makefile
@@ -530,6 +530,20 @@ doc: tools/plot/fio2gnuplot.1
 
 test: fio
 	./fio --minimal --thread --exitall_on_error --runtime=1s --name=nulltest --ioengine=null --rw=randrw --iodepth=2 --norandommap --random_generator=tausworthe64 --size=16T --name=verifyfstest --filename=fiotestfile.tmp --unlink=1 --rw=write --verify=crc32c --verify_state_save=0 --size=16K
+	if modinfo null_blk >/dev/null 2>&1 &&				       \
+		sudo modprobe null_blk &&				       \
+		[ -e /sys/kernel/config/nullb ]; then			       \
+		git clone https://github.com/hgst/libzbc &&		       \
+		(cd libzbc &&						       \
+		./autogen.sh &&						       \
+		./configure --prefix=/usr &&				       \
+		make -j &&						       \
+		sudo make install) &&					       \
+		sudo t/zbd/run-tests-against-regular-nullb &&		       \
+		if modinfo null_blk | grep -q '^parm:[[:blank:]]*zoned:'; then \
+			sudo t/zbd/run-tests-against-zoned-nullb;	       \
+		fi;							       \
+	fi
 
 install: $(PROGS) $(SCRIPTS) tools/plot/fio2gnuplot.1 FORCE
 	$(INSTALL) -m 755 -d $(DESTDIR)$(bindir)
-- 
2.22.0



  parent reply	other threads:[~2019-08-13  2:01 UTC|newest]

Thread overview: 16+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2019-08-13  2:01 [PATCH 0/5] Five fio patches Bart Van Assche
2019-08-13  2:01 ` [PATCH 1/5] Optimize the code that copies strings Bart Van Assche
2019-08-13  2:01 ` [PATCH 2/5] Verify the size of struct jobs_eta at compile time Bart Van Assche
2019-08-13  2:01 ` [PATCH 3/5] Refine packed annotations in stat.h Bart Van Assche
2019-08-13  2:53   ` Jens Axboe
2019-08-13 15:12     ` Bart Van Assche
2019-08-13 20:25       ` Jens Axboe
2019-08-13 20:51         ` Bart Van Assche
2019-08-13 21:04           ` Jens Axboe
2019-08-13 21:46             ` Bart Van Assche
2019-08-13  2:01 ` [PATCH 4/5] Revert "eta: Fix compiler warning" Bart Van Assche
2019-08-13  2:01 ` Bart Van Assche [this message]
2019-08-13  4:39   ` [PATCH 5/5] make test: Also run zbd tests Sitsofe Wheeler
2019-08-13 15:06     ` Bart Van Assche
2019-08-13 20:10       ` Sitsofe Wheeler
2019-08-13 20:22         ` Jens Axboe

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20190813020136.15798-6-bvanassche@acm.org \
    --to=bvanassche@acm.org \
    --cc=axboe@kernel.dk \
    --cc=damien.lemoal@wdc.com \
    --cc=fio@vger.kernel.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox