Merge lp:~bladernr/opencompute/checkbox-merge-nelsons-pch-jobs into lp:opencompute/checkbox

Proposed by Jeff Lane 
Status: Merged
Approved by: Jeff Lane 
Approved revision: 2169
Merged at revision: 2169
Proposed branch: lp:~bladernr/opencompute/checkbox-merge-nelsons-pch-jobs
Merge into: lp:opencompute/checkbox
Diff against target: 158 lines (+131/-0)
5 files modified
data/whitelists/opencompute-certify-local.whitelist (+43/-0)
jobs/TC-001-0002-Platform_Controller_Hub.txt (+13/-0)
jobs/local.txt.in (+7/-0)
scripts/check_sata_port (+34/-0)
scripts/check_usb_port (+34/-0)
To merge this branch: bzr merge lp:~bladernr/opencompute/checkbox-merge-nelsons-pch-jobs
Reviewer Review Type Date Requested Status
Jeff Lane  Approve
Review via email: mp+205811@code.launchpad.net

Commit message

Merges Nelson Chu's PCH tests with a couple minor typo corrections in the scripts.

Description of the change

Merges Nelson Chu's PCH tests with a couple minor typo corrections in the scripts.

To post a comment you must log in.
Revision history for this message
Jeff Lane  (bladernr) wrote :

This is Nelson's branch with a typo fix in the shell scripts.

review: Approve

Preview Diff

[H/L] Next/Prev Comment, [J/K] Next/Prev File, [N/P] Next/Prev Hunk
=== added file 'data/whitelists/opencompute-certify-local.whitelist'
--- data/whitelists/opencompute-certify-local.whitelist 1970-01-01 00:00:00 +0000
+++ data/whitelists/opencompute-certify-local.whitelist 2014-02-11 16:37:12 +0000
@@ -0,0 +1,43 @@
1# Resource Jobs
2block_device
3cdimage
4cpuinfo
5device
6dmi
7dpkg
8efi
9environment
10gconf
11lsb
12meminfo
13module
14optical_drive
15package
16sleep
17uname
18#Info attachment jobs
19__info__
20cpuinfo_attachment
21dmesg_attachment
22dmi_attachment
23dmidecode_attachment
24efi_attachment
25lspci_attachment
26lshw_attachment
27mcelog_attachment
28meminfo_attachment
29modprobe_attachment
30modules_attachment
31sysctl_attachment
32sysfs_attachment
33udev_attachment
34lsmod_attachment
35acpi_sleep_attachment
36info/hdparm
37info/hdparm_.*.txt
38installer_debug.gz
39info/disk_partitions
40# Actual test cases
41__TC-001-0002-Platform_Controller_Hub__
42TC-001-0002-001-SATA_port
43TC-001-0002-002-USB_2.0
044
=== added file 'jobs/TC-001-0002-Platform_Controller_Hub.txt'
--- jobs/TC-001-0002-Platform_Controller_Hub.txt 1970-01-01 00:00:00 +0000
+++ jobs/TC-001-0002-Platform_Controller_Hub.txt 2014-02-11 16:37:12 +0000
@@ -0,0 +1,13 @@
1plugin: shell
2name: TC-001-0002-001-SATA_port
3command: check_sata_port
4description:
5 1. Use dmesg command to gather SATA information.
6 2. Criteria: SATA port speed up to 6.0Gps.
7
8plugin: shell
9name: TC-001-0002-002-USB_2.0
10command: check_usb_port
11description:
12 1. Use dmesg command to gather USB information.
13 2. Criteria: USB version must be 2.0.
014
=== modified file 'jobs/local.txt.in'
--- jobs/local.txt.in 2013-10-01 00:55:26 +0000
+++ jobs/local.txt.in 2014-02-11 16:37:12 +0000
@@ -109,3 +109,10 @@
109command:109command:
110 shopt -s extglob110 shopt -s extglob
111 cat $CHECKBOX_SHARE/jobs/sniff.txt?(.in)111 cat $CHECKBOX_SHARE/jobs/sniff.txt?(.in)
112
113name: __TC-001-0002-Platform_Controller_Hub__
114plugin: local
115_description: Verify platform controller hub functionality
116command:
117 shopt -s extglob
118 cat $CHECKBOX_SHARE/jobs/TC-001-0002-Platform_Controller_Hub.txt?(.in)
112119
=== added file 'scripts/check_sata_port'
--- scripts/check_sata_port 1970-01-01 00:00:00 +0000
+++ scripts/check_sata_port 2014-02-11 16:37:12 +0000
@@ -0,0 +1,34 @@
1#!/bin/bash
2#
3# Copyright (C) 2010-2013 by Cloud Computing Center for Mobile Applications
4# Industrial Technology Research Institute
5#
6# check_sata_port
7# 1. Use dmesg command to gather SATA information.
8# 2. Criteria: SATA port speed up to 6.0Gps.
9#
10# Authors
11# Nelson Chu <Nelson.Chu@itri.org.tw>
12#
13# This program is free software: you can redistribute it and/or modify
14# it under the terms of the GNU General Public License version 3,
15# as published by the Free Software Foundation.
16#
17# This program is distributed in the hope that it will be useful,
18# but WITHOUT ANY WARRANTY; without even the implied warranty of
19# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
20# GNU General Public License for more details.
21#
22# You should have received a copy of the GNU General Public License
23# along with this program. If not, see <http://www.gnu.org/licenses/>.
24#
25
26output=`dmesg |grep -i "SATA link up"| awk '{print $7}'`
27
28if [ "$output" == "6.0" ]; then
29 echo "Support SATA 6Gps ports"
30 exit 0
31fi
32
33echo "Do not support SATA 6Gps ports"
34exit 1
035
=== added file 'scripts/check_usb_port'
--- scripts/check_usb_port 1970-01-01 00:00:00 +0000
+++ scripts/check_usb_port 2014-02-11 16:37:12 +0000
@@ -0,0 +1,34 @@
1#!/bin/bash
2#
3# Copyright (C) 2010-2013 by Cloud Computing Center for Mobile Applications
4# Industrial Technology Research Institute
5#
6# check_usb_port
7# 1. Use dmesg command to gather USB information.
8# 2. Criteria: USB version must be 2.0.
9#
10# Authors
11# Nelson Chu <Nelson.Chu@itri.org.tw>
12#
13# This program is free software: you can redistribute it and/or modify
14# it under the terms of the GNU General Public License version 3,
15# as published by the Free Software Foundation.
16#
17# This program is distributed in the hope that it will be useful,
18# but WITHOUT ANY WARRANTY; without even the implied warranty of
19# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
20# GNU General Public License for more details.
21#
22# You should have received a copy of the GNU General Public License
23# along with this program. If not, see <http://www.gnu.org/licenses/>.
24#
25
26output=`dmesg |grep -i ehci_hcd:| awk '{print $5}'`
27
28if [ "$output" == "2.0" ]; then
29 echo "Support USB 2.0 ports"
30 exit 0
31fi
32
33echo "Do not support USB 2.0 ports"
34exit 1

Subscribers

People subscribed via source and target branches