commit | 2bc2f0106cd0793199b76f7763d6cad8669ed7d2 | [log] [tgz] |
---|---|---|
author | Alphan Ulusoy <alphan@google.com> | Tue Apr 14 14:47:38 2020 -0400 |
committer | Garret Kelly <Garret.Kelly@gmail.com> | Fri Apr 24 09:22:18 2020 -0400 |
tree | 531e2801964b8e443c575321cea4a29cf12e1ad8 | |
parent | a24497bc4018a36fc94ae72cb9ad792228476750 [diff] |
Use StrictMock in MmioTest There are three types of mock objects in googlemock: nice, naggy, and strict. The difference between them is the way they handle _uninteresting_ mock method calls. Uninteresting calls are calls to mock methods that don't have any `EXPECT_CALL` specifications. `NiceMock` silently ignores such calls, `NaggyMock` prints warnings while `StrictMock` makes all uninteresting calls failures. A mock object is currently naggy by default, which can potentially hide some issues in DIF libraries because MMIO accesses without corresponding `EXPECT_CALL`s do not cause tests to fail. This change makes the mock object in `MmioTest` a `StrictMock` so that such accesses will cause tests to fail. Signed-off-by: Alphan Ulusoy <alphan@google.com>
OpenTitan is an open source silicon Root of Trust (RoT) project. OpenTitan will make the silicon RoT design and implementation more transparent, trustworthy, and secure for enterprises, platform providers, and chip manufacturers. OpenTitan is administered by lowRISC CIC as a collaborative project to produce high quality, open IP for instantiation as a full-featured product. See the OpenTitan site and OpenTitan docs for more information about the project.
This repository contains hardware, software and utilities written as part of the OpenTitan project. It is structured as monolithic repository, or “monorepo”, where all components live in one repository. It exists to enable collaboration across partners participating in the OpenTitan project.
The project contains comprehensive documentation of all IPs and tools. You can either access it online or build it locally by following the steps below.
$ sudo apt install curl python3 python3-pip $ pip3 install --user -r python-requirements.txt
$ ./util/build_docs.py --preview
This compiles the documentation into ./build/docs
and starts a local server, which allows you to access the documentation at http://127.0.0.1:1313.
Have a look at CONTRIBUTING for guidelines on how to contribute code to this repository.
Unless otherwise noted, everything in this repository is covered by the Apache License, Version 2.0 (see LICENSE for full text).