Skip to content

Commit

Permalink
Test fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
plvines committed Dec 27, 2024
1 parent 579c47c commit 0d2edf5
Show file tree
Hide file tree
Showing 44 changed files with 158 additions and 88 deletions.
12 changes: 12 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -159,6 +159,18 @@ jobs:
cache-from: ${{ steps.cache.outputs.cache-from }}
cache-to: ${{ steps.cache.outputs.cache-to }}

run-tests:
needs: [compile-image]
runs-on: ubuntu-latest
container:
image: ghcr.io/tst-race/raceboat/raceboat-compile:${{ github.head_ref || github.ref_name }}
steps:
- name: Checkout
uses: actions/checkout@v3

- name: Test
run: ./test.sh

runtime-image:
needs: [compile-image]
runs-on: ubuntu-latest
Expand Down
4 changes: 2 additions & 2 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -42,8 +42,8 @@ include(race/test-targets)
include(race/valgrind)
include(race/warnings)

# setup_project_test_targets(raceSdkCommon UNIT INTEGRATION)
# setup_project_format_targets(raceSdkCommon)
setup_project_test_targets(raceSdkCommon UNIT INTEGRATION)
setup_project_format_targets(raceSdkCommon)

add_subdirectory(language-shims)
add_subdirectory(source)
Expand Down
4 changes: 2 additions & 2 deletions include/race/common/ChannelProperties.h
Original file line number Diff line number Diff line change
Expand Up @@ -14,8 +14,8 @@
// limitations under the License.
//

#ifndef __CHANNEL_PROPERTIES_H_
#define __CHANNEL_PROPERTIES_H_
#ifndef CHANNEL_PROPERTIES_H
#define CHANNEL_PROPERTIES_H

#include <cstdint>
#include <nlohmann/json.hpp>
Expand Down
4 changes: 2 additions & 2 deletions include/race/common/ChannelRole.h
Original file line number Diff line number Diff line change
Expand Up @@ -14,8 +14,8 @@
// limitations under the License.
//

#ifndef __RACE_CHANNEL_ROLE_H_
#define __RACE_CHANNEL_ROLE_H_
#ifndef RACE_CHANNEL_ROLE_H
#define RACE_CHANNEL_ROLE_H

#include <string>
#include <vector>
Expand Down
4 changes: 2 additions & 2 deletions include/race/common/ChannelStatus.h
Original file line number Diff line number Diff line change
Expand Up @@ -14,8 +14,8 @@
// limitations under the License.
//

#ifndef __RACE_CHANNEL_STATUS_H_
#define __RACE_CHANNEL_STATUS_H_
#ifndef RACE_CHANNEL_STATUS_H
#define RACE_CHANNEL_STATUS_H

#include <string>

Expand Down
4 changes: 2 additions & 2 deletions include/race/common/ConnectionStatus.h
Original file line number Diff line number Diff line change
Expand Up @@ -14,8 +14,8 @@
// limitations under the License.
//

#ifndef __RACE_CONNECTION_STATUS_H_
#define __RACE_CONNECTION_STATUS_H_
#ifndef RACE_CONNECTION_STATUS_H
#define RACE_CONNECTION_STATUS_H

#include <iostream>
#include <string>
Expand Down
4 changes: 2 additions & 2 deletions include/race/common/ConnectionType.h
Original file line number Diff line number Diff line change
Expand Up @@ -14,8 +14,8 @@
// limitations under the License.
//

#ifndef __RACE_CONNECTION_TYPE_H_
#define __RACE_CONNECTION_TYPE_H_
#ifndef RACE_CONNECTION_TYPE_H
#define RACE_CONNECTION_TYPE_H

#include <string>

Expand Down
4 changes: 2 additions & 2 deletions include/race/common/EncPkg.h
Original file line number Diff line number Diff line change
Expand Up @@ -14,8 +14,8 @@
// limitations under the License.
//

#ifndef __ENC_PKG_
#define __ENC_PKG_
#ifndef ENC_PKG
#define ENC_PKG

#include <cstdint>
#include <string>
Expand Down
4 changes: 2 additions & 2 deletions include/race/common/LinkProperties.h
Original file line number Diff line number Diff line change
Expand Up @@ -14,8 +14,8 @@
// limitations under the License.
//

#ifndef __LINK_PROPERTIES_H_
#define __LINK_PROPERTIES_H_
#ifndef LINK_PROPERTIES_H
#define LINK_PROPERTIES_H

#include <cstdint>
#include <string>
Expand Down
4 changes: 2 additions & 2 deletions include/race/common/LinkPropertyPair.h
Original file line number Diff line number Diff line change
Expand Up @@ -14,8 +14,8 @@
// limitations under the License.
//

#ifndef __LINK_PROPERTY_PAIR_H_
#define __LINK_PROPERTY_PAIR_H_
#ifndef LINK_PROPERTY_PAIR_H
#define LINK_PROPERTY_PAIR_H

#include <cstdint>
#include <string>
Expand Down
4 changes: 2 additions & 2 deletions include/race/common/LinkPropertySet.h
Original file line number Diff line number Diff line change
Expand Up @@ -14,8 +14,8 @@
// limitations under the License.
//

#ifndef __LINK_PROPERTY_SET_H_
#define __LINK_PROPERTY_SET_H_
#ifndef LINK_PROPERTY_SET_H
#define LINK_PROPERTY_SET_H

#include <cstdint>
#include <string>
Expand Down
4 changes: 2 additions & 2 deletions include/race/common/LinkStatus.h
Original file line number Diff line number Diff line change
Expand Up @@ -14,8 +14,8 @@
// limitations under the License.
//

#ifndef __RACE_LINK_STATUS_H_
#define __RACE_LINK_STATUS_H_
#ifndef RACE_LINK_STATUS_H
#define RACE_LINK_STATUS_H

#include <iostream>
#include <string>
Expand Down
4 changes: 2 additions & 2 deletions include/race/common/LinkType.h
Original file line number Diff line number Diff line change
Expand Up @@ -14,8 +14,8 @@
// limitations under the License.
//

#ifndef __RACE_LINK_TYPE_H_
#define __RACE_LINK_TYPE_H_
#ifndef RACE_LINK_TYPE_H
#define RACE_LINK_TYPE_H

#include <string>

Expand Down
4 changes: 2 additions & 2 deletions include/race/common/PackageStatus.h
Original file line number Diff line number Diff line change
Expand Up @@ -14,8 +14,8 @@
// limitations under the License.
//

#ifndef __RACE_PACKAGE_STATUS_H_
#define __RACE_PACKAGE_STATUS_H_
#ifndef RACE_PACKAGE_STATUS_H
#define RACE_PACKAGE_STATUS_H

#include <string>

Expand Down
4 changes: 2 additions & 2 deletions include/race/common/PackageType.h
Original file line number Diff line number Diff line change
Expand Up @@ -14,8 +14,8 @@
// limitations under the License.
//

#ifndef __RACE_PACKAGE_TYPE_H_
#define __RACE_PACKAGE_TYPE_H_
#ifndef RACE_PACKAGE_TYPE_H
#define RACE_PACKAGE_TYPE_H

#include <string>

Expand Down
4 changes: 2 additions & 2 deletions include/race/common/PluginConfig.h
Original file line number Diff line number Diff line change
Expand Up @@ -14,8 +14,8 @@
// limitations under the License.
//

#ifndef __PLUGIN_CONFIG_H_
#define __PLUGIN_CONFIG_H_
#ifndef PLUGIN_CONFIG_H
#define PLUGIN_CONFIG_H

#include <string>

Expand Down
4 changes: 2 additions & 2 deletions include/race/common/PluginResponse.h
Original file line number Diff line number Diff line change
Expand Up @@ -14,8 +14,8 @@
// limitations under the License.
//

#ifndef __RACE_PLUGIN_RESPONSE_H_
#define __RACE_PLUGIN_RESPONSE_H_
#ifndef RACE_PLUGIN_RESPONSE_H
#define RACE_PLUGIN_RESPONSE_H

#include <string>

Expand Down
6 changes: 3 additions & 3 deletions include/race/common/RaceEnums.h
Original file line number Diff line number Diff line change
Expand Up @@ -14,8 +14,8 @@
// limitations under the License.
//

#ifndef __RACE_ENUMS_H_
#define __RACE_ENUMS_H_
#ifndef RACE_ENUMS_H
#define RACE_ENUMS_H

#include <string>

Expand Down Expand Up @@ -75,4 +75,4 @@ enum BootstrapActionType {

} // namespace RaceEnums

#endif
#endif
4 changes: 2 additions & 2 deletions include/race/common/RaceExport.h
Original file line number Diff line number Diff line change
Expand Up @@ -14,8 +14,8 @@
// limitations under the License.
//

#ifndef __EXPORTS_H_
#define __EXPORTS_H_
#ifndef EXPORTS_H
#define EXPORTS_H

#if defined(_WIN32)
#define EXPORT __declspec(dllexport)
Expand Down
4 changes: 2 additions & 2 deletions include/race/common/RacePluginExports.h
Original file line number Diff line number Diff line change
Expand Up @@ -14,8 +14,8 @@
// limitations under the License.
//

#ifndef __RACE_PLUGIN_EXPORTS_H_
#define __RACE_PLUGIN_EXPORTS_H_
#ifndef RACE_PLUGIN_EXPORTS_H
#define RACE_PLUGIN_EXPORTS_H

#include "RaceExport.h"

Expand Down
4 changes: 2 additions & 2 deletions include/race/common/SendType.h
Original file line number Diff line number Diff line change
Expand Up @@ -14,8 +14,8 @@
// limitations under the License.
//

#ifndef __RACE_SEND_TYPE_H_
#define __RACE_SEND_TYPE_H_
#ifndef RACE_SEND_TYPE_H
#define RACE_SEND_TYPE_H

#include <string>

Expand Down
4 changes: 2 additions & 2 deletions include/race/common/TransmissionType.h
Original file line number Diff line number Diff line change
Expand Up @@ -14,8 +14,8 @@
// limitations under the License.
//

#ifndef __RACE_TRANSMISSION_TYPE_H_
#define __RACE_TRANSMISSION_TYPE_H_
#ifndef RACE_TRANSMISSION_TYPE_H
#define RACE_TRANSMISSION_TYPE_H

#include <string>

Expand Down
4 changes: 2 additions & 2 deletions include/race/decomposed/ComponentTypes.h
Original file line number Diff line number Diff line change
Expand Up @@ -15,8 +15,8 @@
// limitations under the License.
//

#ifndef __I_COMPONENT_TYPES_H__
#define __I_COMPONENT_TYPES_H__
#ifndef I_COMPONENT_TYPES_H
#define I_COMPONENT_TYPES_H

#include <string>
#include <unordered_map>
Expand Down
4 changes: 2 additions & 2 deletions include/race/decomposed/IComponentBase.h
Original file line number Diff line number Diff line change
Expand Up @@ -15,8 +15,8 @@
// limitations under the License.
//

#ifndef __I_COMPONENT_BASE_H__
#define __I_COMPONENT_BASE_H__
#ifndef I_COMPONENT_BASE_H_
#define I_COMPONENT_BASE_H_

#include "ComponentTypes.h"

Expand Down
4 changes: 2 additions & 2 deletions include/race/decomposed/IComponentSdkBase.h
Original file line number Diff line number Diff line change
Expand Up @@ -15,8 +15,8 @@
// limitations under the License.
//

#ifndef __I_COMPONENT_SDK_BASE_H__
#define __I_COMPONENT_SDK_BASE_H__
#ifndef I_COMPONENT_SDK_BASE_H_
#define I_COMPONENT_SDK_BASE_H_

#include "IComponentBase.h"

Expand Down
4 changes: 2 additions & 2 deletions include/race/decomposed/IEncodingComponent.h
Original file line number Diff line number Diff line change
Expand Up @@ -15,8 +15,8 @@
// limitations under the License.
//

#ifndef __I_ENCODING_COMPONENT_H__
#define __I_ENCODING_COMPONENT_H__
#ifndef I_ENCODING_COMPONENT_H_
#define I_ENCODING_COMPONENT_H_

#include "PluginConfig.h"
#include "RacePluginExports.h"
Expand Down
4 changes: 2 additions & 2 deletions include/race/decomposed/IEncodingSdk.h
Original file line number Diff line number Diff line change
Expand Up @@ -15,8 +15,8 @@
// limitations under the License.
//

#ifndef __I_ENCODING_SDK_H__
#define __I_ENCODING_SDK_H__
#ifndef I_ENCODING_SDK_H_
#define I_ENCODING_SDK_H_

#include <vector>

Expand Down
4 changes: 2 additions & 2 deletions include/race/decomposed/ITransportComponent.h
Original file line number Diff line number Diff line change
Expand Up @@ -15,8 +15,8 @@
// limitations under the License.
//

#ifndef __I_TRANSPORT_COMPONENT_H__
#define __I_TRANSPORT_COMPONENT_H__
#ifndef I_TRANSPORT_COMPONENT_H_
#define I_TRANSPORT_COMPONENT_H_

#include "LinkProperties.h"
#include "PluginConfig.h"
Expand Down
4 changes: 2 additions & 2 deletions include/race/decomposed/ITransportSdk.h
Original file line number Diff line number Diff line change
Expand Up @@ -15,8 +15,8 @@
// limitations under the License.
//

#ifndef __I_TRANSPORT_SDK_H__
#define __I_TRANSPORT_SDK_H__
#ifndef I_TRANSPORT_SDK_H_
#define I_TRANSPORT_SDK_H_

#include "ChannelProperties.h"
#include "LinkStatus.h"
Expand Down
4 changes: 2 additions & 2 deletions include/race/decomposed/IUserModelComponent.h
Original file line number Diff line number Diff line change
Expand Up @@ -15,8 +15,8 @@
// limitations under the License.
//

#ifndef __I_USER_MODEL_COMPONENT_H__
#define __I_USER_MODEL_COMPONENT_H__
#ifndef I_USER_MODEL_COMPONENT_H_
#define I_USER_MODEL_COMPONENT_H_

#include "PluginConfig.h"
#include "RacePluginExports.h"
Expand Down
4 changes: 2 additions & 2 deletions include/race/decomposed/IUserModelSdk.h
Original file line number Diff line number Diff line change
Expand Up @@ -15,8 +15,8 @@
// limitations under the License.
//

#ifndef __I_USER_MODEL_SDK_H__
#define __I_USER_MODEL_SDK_H__
#ifndef I_USER_MODEL_SDK_H_
#define I_USER_MODEL_SDK_H_

#include "IComponentSdkBase.h"

Expand Down
4 changes: 2 additions & 2 deletions include/race/unified/IRacePluginComms.h
Original file line number Diff line number Diff line change
Expand Up @@ -14,8 +14,8 @@
// limitations under the License.
//

#ifndef __I_RACE_PLUGIN_COMMS_H_
#define __I_RACE_PLUGIN_COMMS_H_
#ifndef I_RACE_PLUGIN_COMMS_H
#define I_RACE_PLUGIN_COMMS_H

#include <string>

Expand Down
4 changes: 2 additions & 2 deletions include/race/unified/IRaceSdkCommon.h
Original file line number Diff line number Diff line change
Expand Up @@ -14,8 +14,8 @@
// limitations under the License.
//

#ifndef __I_RACE_SDK_COMMON_H_
#define __I_RACE_SDK_COMMON_H_
#ifndef I_RACE_SDK_COMMON_H
#define I_RACE_SDK_COMMON_H

#include <cstdint>
#include <limits>
Expand Down
4 changes: 2 additions & 2 deletions include/race/unified/IRaceSdkComms.h
Original file line number Diff line number Diff line change
Expand Up @@ -14,8 +14,8 @@
// limitations under the License.
//

#ifndef __I_RACE_SDK_COMMS_H_
#define __I_RACE_SDK_COMMS_H_
#ifndef I_RACE_SDK_COMMS_H
#define I_RACE_SDK_COMMS_H

#include <vector>

Expand Down
1 change: 0 additions & 1 deletion race-cmake-modules/race/lint.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,6 @@ function(setup_clang_tidy_for_target)
set(CLANG_TIDY_CMD
clang-tidy-15
-checks=${CLANG_TIDY_CHECKS}
-warnings-as-errors=*
-header-filter=.*
)
set_target_properties(${CLANG_TIDY_TARGET} PROPERTIES CXX_CLANG_TIDY "${CLANG_TIDY_CMD}")
Expand Down
Loading

0 comments on commit 0d2edf5

Please sign in to comment.