From: Jens Axboe <axboe@kernel.dk>
To: Sitsofe Wheeler <sitsofe@gmail.com>,
Bart Van Assche <bvanassche@acm.org>
Cc: fio <fio@vger.kernel.org>, Damien Le Moal <damien.lemoal@wdc.com>
Subject: Re: [PATCH 5/5] make test: Also run zbd tests
Date: Tue, 13 Aug 2019 14:22:55 -0600 [thread overview]
Message-ID: <80f13ecd-34b1-c2c2-5802-da2a8058ab42@kernel.dk> (raw)
In-Reply-To: <CALjAwxi-NujdSFZPP48GZ=vovkmz43qyP1-8OzERJxJK0D3knQ@mail.gmail.com>
On 8/13/19 2:10 PM, Sitsofe Wheeler wrote:
> On Tue, 13 Aug 2019 at 16:06, Bart Van Assche <bvanassche@acm.org> wrote:
>>
>> On 8/12/19 9:39 PM, Sitsofe Wheeler wrote:
>>> On Tue, 13 Aug 2019 at 03:02, Bart Van Assche <bvanassche@acm.org> wrote:
>>>> 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)
>>>>
>>>
>>> I don't feel comfortable trying to clone a repo, run sudo, installing
>>> stuff as root and loading a kernel module just because someone ran
>>> "make test". Maybe we should introduce another target for this?
>>
>> Hi Sitsofe,
>>
>> How about executing the new code only on Travis, e.g. by checking
>> whether the TRAVIS environment variable has been set?
>
> That's a bit better but I still think we could introduce a test_travis
> target, have travis call that and run any extra commands we want...
I agree with that, but let's call it something like fulltest instead.
That gives travis/CI the option to run test and fulltest, where a
"normal" user would probably just do make test. If they do want
fulltest, then it's available to run.
--
Jens Axboe
prev parent reply other threads:[~2019-08-13 20:22 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 ` [PATCH 5/5] make test: Also run zbd tests Bart Van Assche
2019-08-13 4:39 ` Sitsofe Wheeler
2019-08-13 15:06 ` Bart Van Assche
2019-08-13 20:10 ` Sitsofe Wheeler
2019-08-13 20:22 ` Jens Axboe [this message]
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=80f13ecd-34b1-c2c2-5802-da2a8058ab42@kernel.dk \
--to=axboe@kernel.dk \
--cc=bvanassche@acm.org \
--cc=damien.lemoal@wdc.com \
--cc=fio@vger.kernel.org \
--cc=sitsofe@gmail.com \
/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