@@ -58,26 +58,35 @@ jobs:
58
58
README.md
59
59
RELEASE_NOTES
60
60
3rdPartyLicenses/LICENSE_1_0.txt
61
-
62
- - if : ${{ always() && !contains(matrix.os,'windows') }}
63
- name : Start MiniPlex
64
- shell : bash
65
- run : |
66
- ${{github.workspace}}/build/MiniPlex -H -p 20000 &
67
- ${{github.workspace}}/build/MiniPlex -T -p 20001 -r 127.0.0.1 -t 50000 &
68
- ${{github.workspace}}/build/MiniPlex -P -p 20002 -r 127.0.0.1 -t 50000 &
69
- ${{github.workspace}}/build/MiniPlex -P -p 20003 -r 127.0.0.1 -t 50000 -B 127.0.0.1 -b 50001 &
70
- sleep 1
71
-
61
+
72
62
- if : always() && contains(matrix.os,'macos')
73
- name : Mac ncat
63
+ name : Mac Cats
74
64
run : |
75
- brew install nmap
65
+ brew install nmap socat
76
66
77
67
- if : always() && contains(matrix.os,'ubuntu')
78
- name : Linux ncat
68
+ name : Linux Cats
69
+ run : |
70
+ sudo apt-get install -y ncat socat
71
+
72
+ - if : ${{ always() && !contains(matrix.os,'windows') }}
73
+ name : Start Test Processes
74
+ shell : bash
79
75
run : |
80
- sudo apt-get install -y ncat
76
+ build/MiniPlex -H -p 20000 &
77
+ build/MiniPlex -T -p 20001 -r 127.0.0.1 -t 50000 &
78
+ build/MiniPlex -P -p 20002 -r 127.0.0.1 -t 50000 &
79
+ build/MiniPlex -P -p 20003 -r 127.0.0.1 -t 50000 -B 127.0.0.1 -b 50001 &
80
+ socat pty,raw,echo=0,link=SerialEndpoint1 pty,raw,echo=0,link=SerialEndpoint2 &
81
+ socat pty,raw,echo=0,link=SerialEndpoint3 pty,raw,echo=0,link=SerialEndpoint4 &
82
+ socat pty,raw,echo=0,link=SerialEndpoint5 pty,raw,echo=0,link=SerialEndpoint6 &
83
+ socat pty,raw,echo=0,link=SerialEndpoint7 pty,raw,echo=0,link=SerialEndpoint8 &
84
+ sleep 0.5
85
+ build/ProtoConv -l 21000 -A 127.0.0.1 -r 21001 -D 12345 -s SerialEndpoint1 -s SerialEndpoint3 -s SerialEndpoint5 -s SerialEndpoint7 &
86
+ build/ProtoConv -l 22000 -A 127.0.0.1 -r 22001 -D 12345 -s SerialEndpoint8 -s SerialEndpoint6 -s SerialEndpoint4 -s SerialEndpoint2 &
87
+ build/ProtoConv -l 23000 -A 127.0.0.1 -r 23001 -p DNP3 -C 0 -T 127.0.0.1 -t 20000 &
88
+ sleep 0.5
89
+ build/ProtoConv -l 24000 -A 127.0.0.1 -r 24001 -p DNP3 -C 1 -T 127.0.0.1 -t 20000 &
81
90
82
91
- if : ${{ always() && !contains(matrix.os,'windows') }}
83
92
name : Test Hub Mode
@@ -98,10 +107,22 @@ jobs:
98
107
name : Test Permanent Branches
99
108
run : |
100
109
Test/PermanentBranches.sh 50000 50001 127.0.0.1 20003
110
+
111
+ - if : ${{ always() && !contains(matrix.os,'windows') }}
112
+ name : Test ProtoConv Delim
113
+ run : |
114
+ Test/ProtoConvInOut.pl Test/DNP3Hex.txt 21001 127.0.0.1 21000 22001 127.0.0.1 22000 /tmp/out.txt Test/DNP3Hex.txt
115
+
116
+ - if : ${{ always() && !contains(matrix.os,'windows') }}
117
+ name : Test ProtoConv DNP3
118
+ run : |
119
+ Test/ProtoConvInOut.pl Test/DNP3HexOutOfOrder.txt 23001 127.0.0.1 23000 24001 127.0.0.1 24000 /tmp/out.txt Test/DNP3Hex.txt
101
120
102
121
- if : ${{ always() && !contains(matrix.os,'windows') }}
103
- name : Stop MiniPlex
122
+ name : Stop Test Processes
104
123
run : |
124
+ killall ProtoConv || true
125
+ killall socat || true
105
126
killall MiniPlex || true
106
127
107
128
musl-build-job :
@@ -161,19 +182,28 @@ jobs:
161
182
3rdPartyLicenses/LICENSE_1_0.txt
162
183
163
184
- if : always()
164
- name : Start MiniPlex
185
+ name : Linux Cats
186
+ run : |
187
+ sudo apt-get install -y ncat socat
188
+
189
+ - if : always()
190
+ name : Start Test Processes
165
191
shell : bash
166
192
run : |
167
193
build/MiniPlex -H -p 20000 &
168
194
build/MiniPlex -T -p 20001 -r 127.0.0.1 -t 50000 &
169
195
build/MiniPlex -P -p 20002 -r 127.0.0.1 -t 50000 &
170
196
build/MiniPlex -P -p 20003 -r 127.0.0.1 -t 50000 -B 127.0.0.1 -b 50001 &
171
- sleep 1
172
-
173
- - if : always()
174
- name : Linux ncat
175
- run : |
176
- sudo apt-get install -y ncat
197
+ socat pty,raw,echo=0,link=SerialEndpoint1 pty,raw,echo=0,link=SerialEndpoint2 &
198
+ socat pty,raw,echo=0,link=SerialEndpoint3 pty,raw,echo=0,link=SerialEndpoint4 &
199
+ socat pty,raw,echo=0,link=SerialEndpoint5 pty,raw,echo=0,link=SerialEndpoint6 &
200
+ socat pty,raw,echo=0,link=SerialEndpoint7 pty,raw,echo=0,link=SerialEndpoint8 &
201
+ sleep 0.5
202
+ build/ProtoConv -l 21000 -A 127.0.0.1 -r 21001 -D 12345 -s SerialEndpoint1 -s SerialEndpoint3 -s SerialEndpoint5 -s SerialEndpoint7 &
203
+ build/ProtoConv -l 22000 -A 127.0.0.1 -r 22001 -D 12345 -s SerialEndpoint8 -s SerialEndpoint6 -s SerialEndpoint4 -s SerialEndpoint2 &
204
+ build/ProtoConv -l 23000 -A 127.0.0.1 -r 23001 -p DNP3 -C 0 -T 127.0.0.1 -t 20000 &
205
+ sleep 0.5
206
+ build/ProtoConv -l 24000 -A 127.0.0.1 -r 24001 -p DNP3 -C 1 -T 127.0.0.1 -t 20000 &
177
207
178
208
- if : always()
179
209
name : Test Hub Mode
@@ -194,10 +224,22 @@ jobs:
194
224
name : Test Permanent Branches
195
225
run : |
196
226
Test/PermanentBranches.sh 50000 50001 127.0.0.1 20003
227
+
228
+ - if : always()
229
+ name : Test ProtoConv Delim
230
+ run : |
231
+ Test/ProtoConvInOut.pl Test/DNP3Hex.txt 21001 127.0.0.1 21000 22001 127.0.0.1 22000 /tmp/out.txt Test/DNP3Hex.txt
232
+
233
+ - if : always()
234
+ name : Test ProtoConv DNP3
235
+ run : |
236
+ Test/ProtoConvInOut.pl Test/DNP3HexOutOfOrder.txt 23001 127.0.0.1 23000 24001 127.0.0.1 24000 /tmp/out.txt Test/DNP3Hex.txt
197
237
198
238
- if : always()
199
- name : Stop MiniPlex
239
+ name : Stop Test Processes
200
240
run : |
241
+ killall ProtoConv || true
242
+ killall socat || true
201
243
killall MiniPlex || true
202
244
203
245
deploy-job :
0 commit comments