-
-
Notifications
You must be signed in to change notification settings - Fork 80
56 lines (54 loc) · 1.73 KB
/
test-osvvm.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
51
52
53
54
55
56
name: Test OSVVM on Windows
on:
workflow_dispatch:
schedule:
- cron: '30 21 * * 0'
jobs:
test-osvvm:
name: Test OSVVM
runs-on: windows-2019
defaults:
run:
shell: msys2 {0}
steps:
- uses: actions/checkout@v3
with:
fetch-depth: 1
- uses: msys2/setup-msys2@v2
with:
msystem: mingw64
update: true
install: >-
base-devel
git
unzip
mingw-w64-x86_64-tcllib
- name: Download MSYS2 mingw64 package
id: download-artifact
uses: dawidd6/action-download-artifact@v2
with:
workflow: build-test.yml
workflow_conclusion: success
branch: master
name: MSYS2 mingw64 package
skip_unpack: false
if_no_artifact_found: fail
- name: Install NVC
run: |
pacman -U --noconfirm *.zst
- name: Test OSVVM
run: |
: # remove VHDL lib source from NVC repo (issue #557}
rm -rf lib/*
: # install OSVVM, run test, diff results with verified results
mkdir tmp && cd tmp
git clone --branch dev --recurse-submodules --depth=1 -j8 https://github.com/OSVVM/OsvvmLibraries.git
export OSVVM_DIR=$(realpath OsvvmLibraries)
export OSVVM_MUST_BUILD=1
tclsh ../test/test-osvvm.tcl
failures=$(xmllint --xpath 'string(/testsuites/@failures)' OsvvmLibraries_RunAllTests.xml)
failuresVti=$(xmllint --xpath 'string(/testsuites/@failures)' OsvvmLibraries_RunAllTestsVti.xml)
if [ "$failures" != "0" ] || [ "$failuresVti" != "0" ]; then
echo "*** one or more tests failed ***"
exit 1
fi