3 # Copyright (C) 2010 - 2014, Linaro Limited.
5 # This program is free software; you can redistribute it and/or
6 # modify it under the terms of the GNU General Public License
7 # as published by the Free Software Foundation; either version 2
8 # of the License, or (at your option) any later version.
10 # This program is distributed in the hope that it will be useful,
11 # but WITHOUT ANY WARRANTY; without even the implied warranty of
12 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
13 # GNU General Public License for more details.
15 # You should have received a copy of the GNU General Public License
16 # along with this program; if not, write to the Free Software
17 # Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
21 if grep -E 'core' lshw.txt
23 lava-test-case user-space-lshw-core-present --result pass
25 lava-test-case user-space-lshw-core-present --result fail
28 if grep 'firmware' lshw.txt
30 lava-test-case user-space-lshw-firmware-has-info --result pass
32 lava-test-case user-space-lshw-firmware-has-info --result fail
35 if grep 'cpu' lshw.txt
37 lava-test-case user-space-lshw-cpu-has-info --result pass
39 lava-test-case user-space-lshw-cpu-has-info --result fail
42 if grep 'network' lshw.txt
44 lava-test-case user-space-lshw-network-has-info --result pass
46 lava-test-case user-space-lshw-network-has-info --result fail
49 if grep 'storage' lshw.txt
51 lava-test-case user-space-lshw-storage-has-info --result pass
53 lava-test-case user-space-lshw-storage-has-info --result fail