From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=Sony.onmicrosoft.com; s=selector1-Sony-onmicrosoft-com; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version; bh=1YAZTMfCTwvGyPQN/NyrS/E+juu7GCbnNvygEhFzuB4=; b=g+74rXh5UDJiU8iS4rG36XRojiJZjm2mrZSzWAa0vUXm2tQCZVXiDtlH0KvuEJwb/DX0fyiU/RDcrTAMoMTs4VZpD+9DWWqSobQWiqko85PaT3MsNMTO3z4Kn7s7qjkaGdMWvCLGX7GUAIJA0Ow23k7b2C+HzioF1QpoiWEoy+0= From: "Bird, Timothy" Date: Wed, 17 May 2017 05:06:18 +0000 Message-ID: References: , , , , , In-Reply-To: Content-Language: en-US Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 Subject: Re: [Fuego] First steps with fuego List-Id: Mailing list for the Fuego test framework List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Rafael Gago Castano Cc: "fuego@lists.linuxfoundation.org" > -----Original Message----- > From: Rafael Gago Castano on Tuesday, May 16, 2017 7:38 AM >=20 > > Add a stub function to fuego-core/engine/overlays/base/base- > board.fuegoclass, > > like so: > > function ov_board_setup() { > > =A0=A0=A0=A0=A0=A0=A0 return > > } > > By convention, functions in the base class start with "ov_" > > which is short for "overlay".=A0 I'm not sure that's required, but > > it won't hurt for now. > > > > Now, define an override function in your board file, like so: > > > > override-func ov_board_setup() { > > =A0=A0=A0=A0=A0=A0=A0 echo "do your setup operations here" > > } > > TARGET_SETUP_LINK=3D"ov_board_setup" > > > > This would go in fuego/fuego-ro/boards/.board > > > > Please let me know if this works for you. >=20 > It does. Thanks, now that you posted it I remember about reading somethin= g > about override-func on the manual. >=20 > I ended up implementing a board setup/teardown function that is only > enabled by a variable set by a setup/teardown test. So now I have a setup > test, serial rx and teardown test that are working and integrated with ou= r > environment. That it's an achievement considering the little amount of ti= me > that I have spent. >=20 > Then I added the setup and teardown tests as the first and the last ones = of a > test plan, but it looks like Jenkins doesn't respect the testplans .json = file > order on the .batch generated file, it looks like if they are sorted > alphabetically. I vaguely recall something about test ordering. I'll have to look into thi= s. I believe the latest Jenkins versions have a different pipeline model, that may allow better specification of test ordering. Does anyone else know about the batch job ordering in Jenkins? >=20 > How are test runs meant to be scheduled/triggered on jenkins without user > intervention? I tried ftc put-request but it doesn't return a request id= . 'ftc put-request' is for sending a job to the Fuego global server (which is only a prototype at the moment). I saw your jobs there. This feature is n= ot complete yet, but is eventually intended to allow developers to send tests between sites, and request a test to be run on someone else's hardware. The ftc command you probably want is 'ftc build-job'. This can be used fro= m the command line to have Jenkins initiate one of its jobs. I'm not sure if this command was working in the 1.1 release, but there's also a Jenkins command line feature that can be used to accomplish the same thing. See here: https://jenkins.io/doc/book/managing/cli/ This is if you want to start jobs from the command line. Jenkins also supports a variety of mechanisms for triggering jobs, includin= g a cron-like feature to start a job at a given time, as well as triggering based on git = commits, via various plugins. Let me know if you want links to some resources on how to= do this. (or just Google "jenkins trigger build"). Note that in Jenkins terminology a "build" is an execution of a test "job". If what you're trying to do is start one build, that then starts another on= e, and then another one, serialized in a cascade fashion, then I think you can use the = Multi-job plugin. See https://wiki.jenkins-ci.org/display/JENKINS/Multijob+Plugin I haven't used it, but it looks like it would accomplish the ordering you a= re interested in. -- Tim