-
Notifications
You must be signed in to change notification settings - Fork 18
111 lines (96 loc) · 4.9 KB
/
tests.yml
File metadata and controls
111 lines (96 loc) · 4.9 KB
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
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
name: Unit and Regression Tests
on:
push:
branches: [ master,development ]
pull_request:
types: [opened, synchronize, reopened]
defaults:
run:
working-directory: build
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
# install Boost Graph Library
- name: bgl
run: sudo apt-get update && sudo apt-get install -yq libboost-graph-dev
# configure and build Simulator
- name: configure
run: cmake ..
- id: build
name: build
run: make -j
- name: run unit tests
run: ./tests
# simulator runs
- id: tt
name: run test-tiny
if: always() && steps.build.conclusion == 'success'
run: ./cgraphitti -c ../Testing/RegressionTesting/configfiles/test-tiny.xml
- name: verify test-tiny
if: always() && steps.tt.conclusion == 'success'
run: diff ../Testing/RegressionTesting/TestOutput/test-tiny-out.xml ../Testing/RegressionTesting/GoodOutput/Cpu/test-tiny-out.xml
- id: ts
name: run test-small
if: always() && steps.build.conclusion == 'success'
run: ./cgraphitti -c ../Testing/RegressionTesting/configfiles/test-small.xml
- name: verify test-small
if: always() && steps.ts.conclusion == 'success'
run: diff ../Testing/RegressionTesting/TestOutput/test-small-out.xml ../Testing/RegressionTesting/GoodOutput/Cpu/test-small-out.xml
- id: tsc
name: run test-small-connected
if: always() && steps.build.conclusion == 'success'
run: ./cgraphitti -c ../Testing/RegressionTesting/configfiles/test-small-connected.xml
- name: verify test-small-connected
if: always() && steps.tsc.conclusion == 'success'
run: diff ../Testing/RegressionTesting/TestOutput/test-small-connected-out.xml ../Testing/RegressionTesting/GoodOutput/Cpu/test-small-connected-out.xml
- id: tsl
name: run test-small-long
if: always() && steps.build.conclusion == 'success'
run: ./cgraphitti -c ../Testing/RegressionTesting/configfiles/test-small-long.xml
- name: verify test-small-long
if: always() && steps.tsl.conclusion == 'success'
run: diff ../Testing/RegressionTesting/TestOutput/test-small-long-out.xml ../Testing/RegressionTesting/GoodOutput/Cpu/test-small-long-out.xml
- id: tscl
name: run test-small-connected-long
if: always() && steps.build.conclusion == 'success'
run: ./cgraphitti -c ../Testing/RegressionTesting/configfiles/test-small-connected-long.xml
- name: verify test-small-connected-long
if: always() && steps.tscl.conclusion == 'success'
run: diff ../Testing/RegressionTesting/TestOutput/test-small-connected-long-out.xml ../Testing/RegressionTesting/GoodOutput/Cpu/test-small-connected-long-out.xml
- id: ts911
name: run test-small-911
if: always() && steps.build.conclusion == 'success'
run: ./cgraphitti -c ../Testing/RegressionTesting/configfiles/test-small-911.xml
- name: verify test-small-911
if: always() && steps.tt.conclusion == 'success'
run: diff ../Testing/RegressionTesting/TestOutput/test-small-911-out.xml ../Testing/RegressionTesting/GoodOutput/Cpu/test-small-911-out.xml
- id: tm
name: run test-medium
if: always() && steps.build.conclusion == 'success'
run: ./cgraphitti -c ../Testing/RegressionTesting/configfiles/test-medium.xml
- name: verify test-medium
if: always() && steps.tm.conclusion == 'success'
run: diff ../Testing/RegressionTesting/TestOutput/test-medium-out.xml ../Testing/RegressionTesting/GoodOutput/Cpu/test-medium-out.xml
- id: tmc
name: run test-medium-connected
if: always() && steps.build.conclusion == 'success'
run: ./cgraphitti -c ../Testing/RegressionTesting/configfiles/test-medium-connected.xml
- name: verify test-medium-connected
if: always() && steps.tmc.conclusion == 'success'
run: diff ../Testing/RegressionTesting/TestOutput/test-medium-connected-out.xml ../Testing/RegressionTesting/GoodOutput/Cpu/test-medium-connected-out.xml
- id: tml
name: run test-medium-long
if: always() && steps.build.conclusion == 'success'
run: ./cgraphitti -c ../Testing/RegressionTesting/configfiles/test-medium-long.xml
- name: verify test-medium-long
if: always() && steps.tml.conclusion == 'success'
run: diff ../Testing/RegressionTesting/TestOutput/test-medium-long-out.xml ../Testing/RegressionTesting/GoodOutput/Cpu/test-medium-long-out.xml
- id: tmcl
name: run test-medium-connected-long
if: always() && steps.build.conclusion == 'success'
run: ./cgraphitti -c ../Testing/RegressionTesting/configfiles/test-medium-connected-long.xml
- name: verify test-medium-connected-long
if: always() && steps.tmcl.conclusion == 'success'
run: diff ../Testing/RegressionTesting/TestOutput/test-medium-connected-long-out.xml ../Testing/RegressionTesting/GoodOutput/Cpu/test-medium-connected-long-out.xml