Adding FreeBSD/arm64 Jenkins build / QEMU job

Li-Wen Hsu lwhsu at FreeBSD.org
Sat Apr 18 19:13:25 UTC 2015


On Fri, Apr 17, 2015 at 16:47:45 -0400, Ed Maste wrote:
> On 17 April 2015 at 11:27, Li-Wen Hsu <lwhsu at freebsd.org> wrote:
> >
> > That will be great.  And I am interested to know what do you plan for
> > booting QEMU machine, running test inside VM then getting results
> > archived to outside.  There are many approaches, and I wanted to know
> > the most suitable one for us.
> 
> Good question. Are we doing this for other targets today (QEMU, bhyve,
> or metal)?

Yes.

For kuya/QEMU, it builds a image which executes tests upon launch:

    https://svnweb.freebsd.org/base/user/jmmv/autotest/node/iterate.sh?view=markup&pathrev=271564#l154

and mounts the image to extract results:

   https://svnweb.freebsd.org/base/user/jmmv/autotest/node/iterate.sh?view=markup&pathrev=271564#l284

For bhyve, it uses expect-like library to login and executes tests

    https://github.com/freebsd/freebsd-ci/blob/master/scripts/test/run-tests.py

it also extracts log from image by mounting VM image:

    https://github.com/freebsd/freebsd-ci/blob/master/scripts/test/extract-test-logs.py

It would be more awesome if we can have everything automate to create
test VM from an unmodifed image, just like what we put to
release/snapshot, setup test env, and run tests on them, then extracting
results.  I think expect solution is good for this.  And I am interested
to know if there is any other approache.

Li-Wen

-- 
Li-Wen Hsu <lwhsu at FreeBSD.org>
http://lwhsu.org


More information about the freebsd-testing mailing list