summaryrefslogtreecommitdiff
path: root/units/cpu
diff options
authorJonathan Cave <jonathan.cave@canonical.com>2018-06-26 12:25:50 +0100
committerJonathan Cave <jonathan.cave@canonical.com>2018-06-26 12:25:50 +0100
commit9508299b25a90eb556fb4fcef6c878a2fb968e44 (patch)
tree366e29d391736851fd0a2d5392264f2fbda06b0f /units/cpu
parent9eeddb666d6eed2bf69bdd9e03ddd9a0b8f42d7f (diff)
cpu: split arm vfp test between arch versions
Don't rely on syslog output for the test and use features reported by the kernel
Diffstat (limited to 'units/cpu')
-rw-r--r--units/cpu/jobs.pxu31
1 files changed, 25 insertions, 6 deletions
diff --git a/units/cpu/jobs.pxu b/units/cpu/jobs.pxu
index db0dd8f..adf34b9 100644
--- a/units/cpu/jobs.pxu
+++ b/units/cpu/jobs.pxu
@@ -100,18 +100,37 @@ command: nice -n -20 frequency_governors_test --debug
_description:
This test checks that CPU frequency governors are obeyed when set.
+unit: template
+template-resource: cpuinfo
+template-filter: cpuinfo.platform == 'armv7l'
+template-unit: job
plugin: shell
category_id: com.canonical.plainbox::cpu
-id: cpu/arm_vfp_support
+id: cpu/arm_vfp_support_{platform}
estimated_duration: 1.0
-requires:
- cpuinfo.platform in ("armv7l", "aarch64")
user: root
-command: grep VFP /var/log/syslog
+command:
+ echo "{other}" | grep "vfp\|vfpv3\|vfpv4\|vfpd32"
+_summary:
+ Validate that the Vector Floating Point Unit is running on {platform} device
+_description:
+ Validate that the Vector Floating Point Unit is running on {platform} device.
+
+unit: template
+template-resource: cpuinfo
+template-filter: cpuinfo.platform == 'aarch64'
+template-unit: job
+plugin: shell
+category_id: com.canonical.plainbox::cpu
+id: cpu/arm_vfp_support_{platform}
+estimated_duration: 1.0
+user: root
+command:
+ echo "{other}" | grep "fp"
_summary:
- Validate that the Vector Floating Point Unit is running on ARM device
+ Validate that the Floating Point Unit is running on {platform} device
_description:
- Validate that the Vector Floating Point Unit is running on ARM device.
+ Validate that the Floating Point Unit is running on {platform} device.
plugin:shell
id: cpu/cstates