Skip to content

Commit 4a83a39

Browse files
committed
Test multiple LSL configurations
1 parent 557e187 commit 4a83a39

File tree

6 files changed

+36
-8
lines changed

6 files changed

+36
-8
lines changed

ci/azure_build_steps.yml

Lines changed: 14 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@ parameters:
22
cpack: true
33
run_tests: true
44
cmake_stepvars: ''
5+
lslcfgs: ['default', 'ipv4only', 'ipv6only', 'ipv4_lsl100', 'ipv6_lsl100']
56
steps:
67
- task: CMake@1
78
inputs:
@@ -19,14 +20,19 @@ steps:
1920
workingDirectory: 'build'
2021
displayName: 'create cpack packages'
2122
- ${{ if eq(parameters.run_tests, 'true') }}:
22-
- bash: build/install/bin/lsl_test_exported --gtest_shuffle --gtest_output=xml:test_exported_$(Agent.JobName).xml
23-
displayName: 'Run public API unit tests'
24-
timeoutInMinutes: 5
25-
continueOnError: true
26-
# - bash: build/testing/lsl_test_internal --gtest_shuffle --gtest_output=xml:test_internal_$(Agent.JobName).xml || true
27-
# displayName: 'Run internal unit tests'
28-
# timeoutInMinutes: 5
29-
# continueOnError: true
23+
- ${{ each lslcfg in parameters.lslcfgs }}:
24+
- bash: build/install/bin/lsl_test_exported --gtest_shuffle --gtest_output=xml:test_exported_$(Agent.JobName)_${{lslcfg}}.xml
25+
displayName: 'Run public API unit tests'
26+
timeoutInMinutes: 5
27+
continueOnError: true
28+
env:
29+
LSLAPICFG: testing/lslcfgs/${{lslcfg}}.cfg
30+
- bash: build/testing/lsl_test_internal --gtest_shuffle --gtest_output=xml:test_internal_$(Agent.JobName)_${{lslcfg}}.xml || true
31+
displayName: 'Run internal unit tests'
32+
timeoutInMinutes: 5
33+
continueOnError: true
34+
env:
35+
LSLAPICFG: testing/lslcfgs/${{lslcfg}}.cfg
3036
- task: PublishTestResults@2
3137
inputs:
3238
testResultsFormat: 'JUnit'

testing/lslcfgs/default.cfg

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
[lab]
2+
KnownPeers=127.0.0.1

testing/lslcfgs/ipv4_lsl100.cfg

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
[ports]
2+
IPv6=disable
3+
[multicast]
4+
ResolveScope=link
5+
[tuning]
6+
use_protocol_version=100

testing/lslcfgs/ipv4only.cfg

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
[ports]
2+
IPv6=disable
3+
[multicast]
4+
ResolveScope=link

testing/lslcfgs/ipv6_lsl100.cfg

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
[ports]
2+
IPv6=force
3+
[multicast]
4+
ResolveScope=link
5+
[tuning]
6+
use_protocol_version=100

testing/lslcfgs/ipv6only.cfg

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
[ports]
2+
IPv6=force
3+
[multicast]
4+
ResolveScope=link

0 commit comments

Comments
 (0)