Skip to content

Files

Latest commit

0a7c549 · Oct 9, 2024

History

History

tests

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
Jan 4, 2023
Jul 12, 2024
Oct 9, 2024
Oct 6, 2023
Feb 3, 2023
Jul 12, 2024
Oct 4, 2023
Nov 19, 2020
Jan 4, 2023
Jul 9, 2019
Jan 4, 2023
Jun 3, 2019
Mar 29, 2024
========================================================================
README for Basic Tests

May 2019
========================================================================

Contents
========
  - Dependencies
  - Virtual Environment
  - Environment File
  - Running tests
  - Additional Parameters
  - Legal Disclaimer

Dependencies
=============
  - python 3.6
  - pipenv
  - pytest
  - python-pexpect
  - memtester

Virtual Environment
===================
To run tests without installation of additional python packages it is possible
to use virtual environment.

To setup virtual environment:
	make setup


Environment File
===============
In order to run unit tests, it is required to crerate environment file describing
hardware features. Please, follow schema env.json for full documentation.

The example.json contains example environment file for Intel(R) Xeon(R) Gold 6252N CPU.


Running tests
=============
It is assumed that pqos library will be installed in the system.

Run tests without virtualenv:
	sudo py.test --env=example.json testcases

Run tests using virtualenv:
	sudo TEST_ENV=example.json make run

Additional Parameters
=====================
Custom py.test options:
  --pqos=PQOS           Path to pqos utility
  --rdtset=RDTSET       Path to rdtset utility
  --membw=MEMBW         Path to membw tool
  --env=ENV             Path to environment file
  --iface-msr           MSR interface
  -I, --iface-os        OS interface


Legal Disclaimer
================

THIS SOFTWARE IS PROVIDED BY INTEL"AS IS". NO LICENSE, EXPRESS OR
IMPLIED, BY ESTOPPEL OR OTHERWISE, TO ANY INTELLECTUAL PROPERTY RIGHTS
ARE GRANTED THROUGH USE. EXCEPT AS PROVIDED IN INTEL'S TERMS AND
CONDITIONS OF SALE, INTEL ASSUMES NO LIABILITY WHATSOEVER AND INTEL
DISCLAIMS ANY EXPRESS OR IMPLIED WARRANTY, RELATING TO SALE AND/OR
USE OF INTEL PRODUCTS INCLUDING LIABILITY OR WARRANTIES RELATING TO
FITNESS FOR A PARTICULAR PURPOSE, MERCHANTABILITY, OR INFRINGEMENT
OF ANY PATENT, COPYRIGHT OR OTHER INTELLECTUAL PROPERTY RIGHT.