-
Notifications
You must be signed in to change notification settings - Fork 3
50 lines (46 loc) · 1.53 KB
/
unittest.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
# ************************************************************************
# @author: Andreas Kaeberlein
# @copyright: Copyright 2021
# @credits: AKAE
#
# @license: BSDv3
# @maintainer: Andreas Kaeberlein
# @email: andreas.kaeberlein@web.de
#
# @file: unittest.yml
# @date: 2021-08-25
#
# @brief: runs test and deploy
#
# ************************************************************************
name: Unittest
on:
push:
paths-ignore:
- 'doc/**'
- 'README.md'
jobs:
test:
runs-on: ubuntu-latest
env:
GHDL_OPTS: "--std=93c --ieee=synopsys --time-resolution=ps --workdir=./sim/work"
steps:
- uses: actions/checkout@v1
- uses: ghdl/setup-ghdl-ci@nightly
with:
backend: mcode
- name: Prepare
run: |
ghdl --version
mkdir -p ./sim/work
- name: eSpiStaticSlave
run: |
ghdl -a ${GHDL_OPTS} ./bfm/eSpiStaticSlave.vhd
ghdl -a ${GHDL_OPTS} ./tb/eSpiStaticSlave_tb.vhd
if [[ -z $(ghdl -r ${GHDL_OPTS} eSpiStaticSlave_tb -gDO_ALL_TEST=True | grep "Test SUCCESSFUL") ]]; then echo "[ FAIL ] eSpiStaticSlave"; exit 1; fi;
- name: eSpiMasterBfm
run: |
ghdl -a ${GHDL_OPTS} ./bfm/eSpiStaticSlave.vhd
ghdl -a ${GHDL_OPTS} ./bfm/eSpiMasterBfm.vhd
ghdl -a ${GHDL_OPTS} ./tb/eSpiMasterBfm_tb.vhd
if [[ -z $(ghdl -r ${GHDL_OPTS} eSpiMasterBfm_tb -gDO_ALL_TEST=True | grep "Test SUCCESSFUL") ]]; then echo "[ FAIL ] eSpiMasterBfm"; exit 1; fi;