plugin: shell
name: cpu/scaling_test
requires:
 package.name == 'fwts'
user: root
environ: CHECKBOX_DATA
command: fwts_test -t cpufreq -l ${CHECKBOX_DATA}/scaling_test.log
description:
 Test the CPU scaling capabilities using Firmware Test Suite (fwts cpufreq).

plugin: attachment
name: cpu/scaling_test-log-attach
depends: cpu/scaling_test
command: [[ -e ${CHECKBOX_DATA}/scaling_test.log ]] && cat ${CHECKBOX_DATA}/scaling_test.log
description:
 Attaches the log generated by cpu/scaling_test to the results

plugin: shell
name: cpu/clocktest
command: clocktest
description:
 Test for clock jitter.

plugin: shell
name: cpu/offlining_test
user: root
command: cpu_offlining
description:
 Test offlining CPUs in a multicore system.

plugin: shell
name: cpu/topology
requires: int(cpuinfo.count) > 1 and (cpuinfo.platform == 'i386' or cpuinfo.platform == 'x86_64')
command: cpu_topology
description:
 This test checks cpu topology for accuracy

plugin: shell
name: cpu/frequency_governors
user: root
command: nice -n -20 frequency_governors_test --debug
description:
 This test checks that CPU frequency governors are obeyed when set.

plugin: shell
name: cpu/arm_vfp_support
requires: 'arm' in cpuinfo.type
command: grep VFP /var/log/syslog
description:
 Validate that the Vector Floating Point Unit is running on ARM device
