Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 19 Apr 2015 03:13:16 +0800
From:      Li-Wen Hsu <lwhsu@FreeBSD.org>
To:        Ed Maste <emaste@freebsd.org>
Cc:        "freebsd-testing@freebsd.org" <freebsd-testing@freebsd.org>
Subject:   Re: Adding FreeBSD/arm64 Jenkins build / QEMU job
Message-ID:  <20150418191316.GA90740@FreeBSD.cs.nctu.edu.tw>
In-Reply-To: <CAPyFy2Ajdgyry3%2B_NgqpOVSWmvYm7iD0w0xc=GZYmCn_HZAk2w@mail.gmail.com>
References:  <CAPyFy2AQwk=oSjkx8w2PqwZsdk%2BSXOGkrsXxBeojiFVrn-1s0Q@mail.gmail.com> <CAKBkRUxZ1ebm_%2BFoDPDp1ivWLzH8G3eUALwREU=Wr5gOrto1NQ@mail.gmail.com> <CAPyFy2AVYmXwRzG0HmkjZ1LpczU9bAjzEoMm9EuGPz9uYSXc-A@mail.gmail.com> <20150417152715.GA511@FreeBSD.cs.nctu.edu.tw> <CAPyFy2Ajdgyry3%2B_NgqpOVSWmvYm7iD0w0xc=GZYmCn_HZAk2w@mail.gmail.com>

next in thread | previous in thread | raw e-mail | index | archive | help
On Fri, Apr 17, 2015 at 16:47:45 -0400, Ed Maste wrote:
> On 17 April 2015 at 11:27, Li-Wen Hsu <lwhsu@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@FreeBSD.org>
http://lwhsu.org



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20150418191316.GA90740>