Skip to content

Commit

Permalink
Test multiple LSL configurations
Browse files Browse the repository at this point in the history
  • Loading branch information
tstenner committed Aug 7, 2019
1 parent 557e187 commit 4a83a39
Show file tree
Hide file tree
Showing 6 changed files with 36 additions and 8 deletions.
22 changes: 14 additions & 8 deletions ci/azure_build_steps.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@ parameters:
cpack: true
run_tests: true
cmake_stepvars: ''
lslcfgs: ['default', 'ipv4only', 'ipv6only', 'ipv4_lsl100', 'ipv6_lsl100']
steps:
- task: CMake@1
inputs:
Expand All @@ -19,14 +20,19 @@ steps:
workingDirectory: 'build'
displayName: 'create cpack packages'
- ${{ if eq(parameters.run_tests, 'true') }}:
- bash: build/install/bin/lsl_test_exported --gtest_shuffle --gtest_output=xml:test_exported_$(Agent.JobName).xml
displayName: 'Run public API unit tests'
timeoutInMinutes: 5
continueOnError: true
# - bash: build/testing/lsl_test_internal --gtest_shuffle --gtest_output=xml:test_internal_$(Agent.JobName).xml || true
# displayName: 'Run internal unit tests'
# timeoutInMinutes: 5
# continueOnError: true
- ${{ each lslcfg in parameters.lslcfgs }}:
- bash: build/install/bin/lsl_test_exported --gtest_shuffle --gtest_output=xml:test_exported_$(Agent.JobName)_${{lslcfg}}.xml
displayName: 'Run public API unit tests'
timeoutInMinutes: 5
continueOnError: true
env:
LSLAPICFG: testing/lslcfgs/${{lslcfg}}.cfg
- bash: build/testing/lsl_test_internal --gtest_shuffle --gtest_output=xml:test_internal_$(Agent.JobName)_${{lslcfg}}.xml || true
displayName: 'Run internal unit tests'
timeoutInMinutes: 5
continueOnError: true
env:
LSLAPICFG: testing/lslcfgs/${{lslcfg}}.cfg
- task: PublishTestResults@2
inputs:
testResultsFormat: 'JUnit'
Expand Down
2 changes: 2 additions & 0 deletions testing/lslcfgs/default.cfg
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
[lab]
KnownPeers=127.0.0.1
6 changes: 6 additions & 0 deletions testing/lslcfgs/ipv4_lsl100.cfg
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
[ports]
IPv6=disable
[multicast]
ResolveScope=link
[tuning]
use_protocol_version=100
4 changes: 4 additions & 0 deletions testing/lslcfgs/ipv4only.cfg
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
[ports]
IPv6=disable
[multicast]
ResolveScope=link
6 changes: 6 additions & 0 deletions testing/lslcfgs/ipv6_lsl100.cfg
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
[ports]
IPv6=force
[multicast]
ResolveScope=link
[tuning]
use_protocol_version=100
4 changes: 4 additions & 0 deletions testing/lslcfgs/ipv6only.cfg
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
[ports]
IPv6=force
[multicast]
ResolveScope=link

0 comments on commit 4a83a39

Please sign in to comment.