From: Tom Rini Date: Fri, 21 Feb 2014 14:57:26 -0500 Subject: [U-Boot] common, itest: pass u-boot env variables to itest.s In-Reply-To: <1390631233-4645-2-git-send-email-hs@denx.de> References: <1390631233-4645-2-git-send-email-hs@denx.de> Message-ID: <20140221195726.GX16805@bill-the-cat> List-Id: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: u-boot@lists.denx.de On Sat, Jan 25, 2014 at 07:27:12AM +0100, Heiko Schocher wrote: > compare two U-Boot Environment variables with itest.s, example: > > => print tmp ver > tmp=U-Boot 2013.10-g75e > ver=U-Boot 2013.10-g75eb4bc (Jan 21 2014 - 10:35:39)MPC83XX > => print check_ub_ver > check_ub_ver=if itest.s \${tmp} == \${ver}; then echo equal; else echo diff ;fi > => run check_ub_ver > diff > => setenv tmp U-Boot 2013.10-g75eb4bc (Jan 21 2014 - 10:35:39)MPC83XX > => print tmp ver > tmp=U-Boot 2013.10-g75eb4bc (Jan 21 2014 - 10:35:39)MPC83XX > ver=U-Boot 2013.10-g75eb4bc (Jan 21 2014 - 10:35:39)MPC83XX > => run check_ub_ver > equal > > Signed-off-by: Heiko Schocher Applied to u-boot/master, thanks! -- Tom -------------- next part -------------- A non-text attachment was scrubbed... Name: not available Type: application/pgp-signature Size: 836 bytes Desc: Digital signature URL: