Software APIs
sw
device
tests
closed_source
test_hooks_1.c
1
// Copyright lowRISC contributors (OpenTitan project).
2
// Licensed under the Apache License, Version 2.0, see LICENSE for details.
3
// SPDX-License-Identifier: Apache-2.0
4
5
#include <
stdbool.h
>
6
7
#include "
sw/device/lib/runtime/log.h
"
8
9
bool
manufacturer_pre_test_hook
(
void
) {
10
LOG_INFO
(
"Manufacturer pre-test hook running ..."
);
11
12
// Perform whatever pre-test setup needs to be done.
13
// Return true if successful, false if unsuccessful.
14
return
true
;
15
}
16
17
bool
manufacturer_post_test_hook
(
void
) {
18
LOG_INFO
(
"Manufacturer post-test hook running ..."
);
19
20
// Perform whatever post-test teardown needs to be done.
21
// Return true if successful, false if unsuccessful.
22
return
true
;
23
}
Return to
OpenTitan Documentation