Skip to content

Commit

Permalink
Allow tests to work on multiple RT platforms using a configuration fi…
Browse files Browse the repository at this point in the history
…le (#52)

Introduces the notion of a targets.ini file that can be specified per test-class. This file is applied after the overrides, and supports changing the target operating system and hostname.

The file format is shown below for a test class supporting PharLap and Linux on PXI.

```ini
[Supported Targets]
PharLap = 10.2.64.14
Linux64PXI = 10.2.64.21

[Active Configuration]
Platform = Linux64PXI
```
rtzoeller authored Dec 5, 2019

Verified

This commit was created on GitHub.com and signed with GitHub’s verified signature. The key has expired.
1 parent d2ca295 commit 5eaa2b9
Showing 15 changed files with 306 additions and 278 deletions.
Binary file modified VeriStandTestCase/AddConfigurationFiles.vi
Binary file not shown.
Binary file modified VeriStandTestCase/OpenVeriStandConnection.vi
Binary file not shown.
Binary file added VeriStandTestCase/ReadActiveConfiguration.vi
Binary file not shown.
Binary file modified VeriStandTestCase/SetMultipleChannelValues.vi
Binary file not shown.
Binary file modified VeriStandTestCase/Tests/Unit/testOpenCloseVeriStandConnection.vi
Binary file not shown.
Binary file not shown.
Binary file modified VeriStandTestCase/Utilities/PatchSystemDefinitionFile.vi
Binary file not shown.
579 changes: 301 additions & 278 deletions VeriStandTestCase/VeriStandTestCase.lvclass

Large diffs are not rendered by default.

Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file added VeriStandTestUtilities/TargetPlatform.ctl
Binary file not shown.
Binary file added VeriStandTestUtilities/TargetsConfiguration.ctl
Binary file not shown.
5 changes: 5 additions & 0 deletions VeriStandTestUtilities/VeriStandTestUtilities.lvlib
Original file line number Diff line number Diff line change
@@ -41,6 +41,7 @@
</Item>
<Item Name="SetSystemDefinitionPropertyValueFromString.vi" Type="VI" URL="../SetSystemDefinitionPropertyValue/SetSystemDefinitionPropertyValueFromString.vi"/>
</Item>
<Item Name="ApplyTargetConfiguration.vi" Type="VI" URL="../ApplyTargetConfiguration.vi"/>
<Item Name="AssertConnectorPanesMatchExpected.vi" Type="VI" URL="../AssertConnectorPanesMatchExpected.vi"/>
<Item Name="AssertConnectorPanesMatchTemplateFiles.vi" Type="VI" URL="../AssertConnectorPanesMatchTemplateFiles.vi">
<Property Name="NI.LibItem.Scope" Type="Int">2</Property>
@@ -72,6 +73,7 @@
<Item Name="ConvertSystemDefinitionPropertyTypeToEnum.vi" Type="VI" URL="../ConvertSystemDefinitionPropertyTypeToEnum.vi">
<Property Name="NI.LibItem.Scope" Type="Int">2</Property>
</Item>
<Item Name="ConvertTargetPlatformToOperatingSystem.vi" Type="VI" URL="../ConvertTargetPlatformToOperatingSystem.vi"/>
<Item Name="FilterCustomDeviceVIs.vi" Type="VI" URL="../FilterCustomDeviceVIs.vi">
<Property Name="NI.LibItem.Scope" Type="Int">2</Property>
</Item>
@@ -124,6 +126,7 @@
<Property Name="NI.LibItem.Scope" Type="Int">2</Property>
</Item>
<Item Name="ReadSystemDefinitionOverrideFile.vi" Type="VI" URL="../ReadSystemDefinitionOverrideFile.vi"/>
<Item Name="ReadTargetsConfigurationFile.vi" Type="VI" URL="../ReadTargetsConfigurationFile.vi"/>
<Item Name="ReadTDMSFileFromDataLogConfiguration.vi" Type="VI" URL="../../VeriStandTestCase/Utilities/ReadTDMSFileFromDataLogConfiguration.vi">
<Property Name="NI.LibItem.Scope" Type="Int">2</Property>
</Item>
@@ -135,4 +138,6 @@
<Property Name="NI.LibItem.Scope" Type="Int">2</Property>
</Item>
<Item Name="TargetInformation.ctl" Type="VI" URL="../TargetInformation.ctl"/>
<Item Name="TargetPlatform.ctl" Type="VI" URL="../TargetPlatform.ctl"/>
<Item Name="TargetsConfiguration.ctl" Type="VI" URL="../TargetsConfiguration.ctl"/>
</Library>

0 comments on commit 5eaa2b9

Please sign in to comment.