From: Wolfgang Denk Date: Mon, 10 Dec 2012 13:06:37 +0100 Subject: [U-Boot] U-boot : compare read and expect value In-Reply-To: <50C5C063.2020600@planar.com> References: <50C5C063.2020600@planar.com> Message-ID: <20121210120637.D3344200FDD@gemini.denx.de> List-Id: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: u-boot@lists.denx.de Dear Khalid Tourabi, In message <50C5C063.2020600@planar.com> you wrote: > > I'm newbie and I want to use scripts to test the board peripherals (I2C, > SPI, LAN, PCIe, USB, ...) using u-boot. > My problem is how to compare the reading with the expected value? > the reading is in an environment variable? If so which one? > I searched the forums and docs without success. Have a look at the setexpr command... Best regards, Wolfgang Denk -- DENX Software Engineering GmbH, MD: Wolfgang Denk & Detlev Zundel HRB 165235 Munich, Office: Kirchenstr.5, D-82194 Groebenzell, Germany Phone: (+49)-8142-66989-10 Fax: (+49)-8142-66989-80 Email: wd at denx.de Ein weiser Herrscher kann in einem gro?en Land mehr Gutes bewirken als in einem kleinen - ein dummer Herrscher aber auch viel mehr Un- fug. Da weise Herrscher seltener sind als dumme, war ich schon immer gegen gro?e Reiche skeptisch. - Herbert Rosendorfer