mirror of
git://git.yoctoproject.org/meta-intel.git
synced 2025-07-05 05:04:45 +02:00
runtime/isal: Enable sanity test
isal test validate that intel intelligent storage acceleration library can provide accelerated compression using igzip executable. Signed-off-by: Yeoh Ee Peng <ee.peng.yeoh@intel.com> Signed-off-by: Anuj Mittal <anuj.mittal@intel.com>
This commit is contained in:
parent
e7520b119c
commit
36b7c0a3c6
24
lib/oeqa/runtime/cases/isal.py
Normal file
24
lib/oeqa/runtime/cases/isal.py
Normal file
|
@ -0,0 +1,24 @@
|
|||
import os
|
||||
from oeqa.runtime.decorator.package import OEHasPackage
|
||||
from oeqa.runtime.case import OERuntimeTestCase
|
||||
from oeqa.core.decorator.depends import OETestDepends
|
||||
|
||||
class IsalTest(OERuntimeTestCase):
|
||||
|
||||
@OEHasPackage(['isa-l'])
|
||||
def test_isal_igzip_version(self):
|
||||
command = 'igzip -V'
|
||||
(status, output) = self.target.run(command)
|
||||
self.assertEqual(status, 0, msg="Error messages: %s" % output)
|
||||
|
||||
@OETestDepends(['isal.IsalTest.test_isal_igzip_version'])
|
||||
def test_isal_igzip_can_compress(self):
|
||||
command = 'echo "hello" > /tmp/igzip_sample'
|
||||
(status, output) = self.target.run(command)
|
||||
self.assertEqual(status, 0, msg="Error messages: %s" % output)
|
||||
command = 'igzip -z /tmp/igzip_sample'
|
||||
(status, output) = self.target.run(command)
|
||||
self.assertEqual(status, 0, msg="Error messages: %s" % output)
|
||||
command = 'rm /tmp/igzip_sample*'
|
||||
(status, output) = self.target.run(command)
|
||||
self.assertEqual(status, 0, msg="Error messages: %s" % output)
|
Loading…
Reference in New Issue
Block a user