File tree 5 files changed +296
-341
lines changed
5 files changed +296
-341
lines changed Original file line number Diff line number Diff line change 8
8
9
9
jobs :
10
10
test :
11
- # runs-on: 'ubuntu-latest' currently not working because we don't have omc-diff on ubuntu
12
- runs-on : ' windows-latest'
11
+ runs-on : ' ubuntu-latest'
12
+ env :
13
+ OPENMODELICAHOME : ' /usr'
13
14
timeout-minutes : 60
14
15
15
16
steps :
16
17
- uses : actions/checkout@v3
17
18
18
19
- name : " Set up OpenModelica Compiler"
19
- uses : AnHeuermann/setup-openmodelica@main
20
+ uses : AnHeuermann/setup-openmodelica@v0.6
20
21
with :
21
22
version : ' stable'
22
23
packages : |
23
24
omc
24
25
libraries : |
25
- 'Modelica 3.2.3'
26
+ 'Modelica 4.0.0'
27
+ omc-diff : true
26
28
27
29
- name : " Test OpenModelica"
28
30
run : " make -C Testing openmodelica"
29
31
30
32
- name : " Upload openmodelica.log"
31
33
uses : actions/upload-artifact@v3
32
34
with :
33
- name : openmodelicar.- log
35
+ name : openmodelica. log
34
36
path : Testing/openmodelica.log
35
37
38
+ - name : " Look for failing tests"
39
+ run : |
40
+ grep "\(^ - \)\|\(... equation mismatch\)" Testing/openmodelica.log | true
41
+ grep -i "^== 0 out of [0-9]* tests failed" Testing/openmodelica.log
Original file line number Diff line number Diff line change @@ -19,7 +19,7 @@ The main package PNlib is divided into the following sub-packages:
19
19
## Current release
20
20
Download [ PNlib v2.2 (2019-10-24)] ( ../../archive/v2.2.zip )
21
21
22
- ## Compatibility
22
+ ## Compatibility [ ![ Test ] ( https://github.com/AMIT-HSBI/PNlib/actions/workflows/Test.yml/badge.svg )] ( https://github.com/AMIT-HSBI/PNlib/actions/workflows/Test.yml )
23
23
* Works in OpenModelica (latest release) ([ trend] ( http://libraries.openmodelica.org/branches/history/master/PNlib.svg ) , [ coverage] ( http://libraries.openmodelica.org/branches/master/PNlib/PNlib.html ) )
24
24
* Works in Dymola 2017/2019/2020
25
25
Original file line number Diff line number Diff line change
1
+ # Source files
2
+ * .bin
3
+ * .c
4
+ * .h
5
+ * .json
6
+ * .libs
7
+ * .log
8
+ * .o
9
+ * .o.tmp
10
+ * .makefile
11
+ * .xml
12
+
Original file line number Diff line number Diff line change @@ -72,7 +72,7 @@ PNlib.Examples.ExtTest.TDSuniform.mos \
72
72
PNlib.Examples.ExtTest.TDStruncatednormal.mos \
73
73
PNlib.Examples.ExtTest.TDSdiscrete.mos \
74
74
PNlib.Examples.ExtTest.TFDStest.mos \
75
- PNlib.Examples.ExtTest.TEStest .mos \
75
+ PNlib.Examples.ExtTest.TESTest .mos \
76
76
PNlib.Examples.ExtTest.NoTokens.mos \
77
77
PNlib.Examples.HybTest.ConflictPrio.mos \
78
78
PNlib.Examples.HybTest.ConflictProb.mos \
@@ -113,8 +113,6 @@ CLEAN = `ls | grep -w -v -f deps.tmp`
113
113
test :
114
114
@echo
115
115
@echo Running tests...
116
- @echo
117
- @echo " OPENMODELICAHOME = $( OPENMODELICAHOME) "
118
116
@$(TEST ) $(TESTFILES )
119
117
120
118
# Cleans all files that are not listed as dependencies
@@ -137,5 +135,4 @@ getdeps:
137
135
failingtest :
138
136
@echo
139
137
@echo Running failing tests...
140
- @echo
141
138
@$(TEST ) $(FAILINGTESTFILES )
You can’t perform that action at this time.
0 commit comments