From 9508299b25a90eb556fb4fcef6c878a2fb968e44 Mon Sep 17 00:00:00 2001 From: Jonathan Cave Date: Tue, 26 Jun 2018 12:25:50 +0100 Subject: cpu: split arm vfp test between arch versions Don't rely on syslog output for the test and use features reported by the kernel --- units/cpu/jobs.pxu | 31 +++++++++++++++++++++++++------ 1 file 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 -- cgit v1.2.3