Skip to content

Commit

Permalink
Add integration tests to workspace
Browse files Browse the repository at this point in the history
  • Loading branch information
RaniAgus committed Dec 13, 2023
1 parent f8a8b80 commit 33d17d1
Show file tree
Hide file tree
Showing 7 changed files with 192 additions and 0 deletions.
6 changes: 6 additions & 0 deletions commons.code-workspace
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,12 @@
},
{
"path": "tests/unit-tests"
},
{
"path": "tests/integration-tests/temporal"
},
{
"path": "tests/integration-tests/logger"
}
]
}
18 changes: 18 additions & 0 deletions tests/integration-tests/logger/.vscode/c_cpp_properties.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
{
// See https://code.visualstudio.com/docs/cpp/c-cpp-properties-schema-reference
// for the documentation about the c_cpp_properties.json format
"configurations": [
{
"name": "Linux",
"includePath": [
"${workspaceFolder}/../../../src"
],
"defines": [],
"compilerPath": "/usr/bin/gcc",
"cStandard": "gnu17",
"cppStandard": "gnu++17",
"intelliSenseMode": "linux-gcc-x64"
}
],
"version": 4
}
32 changes: 32 additions & 0 deletions tests/integration-tests/logger/.vscode/launch.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,32 @@
{
// See https://go.microsoft.com/fwlink/?linkid=830387
// for the documentation about the launch.json format
"version": "0.2.0",
"configurations": [
{
"name": "test",
"type": "cppdbg",
"request": "launch",
"program": "${workspaceFolder}/build/commons-integration-test-${workspaceFolderBasename}",
"args": [],
"stopAtEntry": false,
"cwd": "${workspaceFolder}",
"environment": [
{
"name": "LD_LIBRARY_PATH",
"value": "${workspaceFolder}/../../../src/build"
}
],
"externalConsole": false,
"MIMode": "gdb",
"setupCommands": [
{
"description": "Enable pretty-printing for gdb",
"text": "-enable-pretty-printing",
"ignoreFailures": true
}
],
"preLaunchTask": "build",
}
]
}
43 changes: 43 additions & 0 deletions tests/integration-tests/logger/.vscode/tasks.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,43 @@
{
// See https://go.microsoft.com/fwlink/?LinkId=733558
// for the documentation about the tasks.json format
"version": "2.0.0",
"tasks": [
{
"label": "build",
"dependsOn": [
"build_sources",
"build_tests"
],
},
{
"label": "build_sources",
"command": "make --no-print-directory -C ../../../src debug",
"type": "shell",
"group": {
"kind": "build",
"isDefault": true
},
"problemMatcher": ["$gcc"]
},
{
"label": "build_tests",
"command": "make debug",
"type": "shell",
"group": {
"kind": "build",
"isDefault": true
},
"problemMatcher": ["$gcc"]
},
{
"label": "clean",
"command": "make clean",
"type": "shell",
"group": {
"kind": "none"
},
"problemMatcher": []
}
]
}
18 changes: 18 additions & 0 deletions tests/integration-tests/temporal/.vscode/c_cpp_properties.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
{
// See https://code.visualstudio.com/docs/cpp/c-cpp-properties-schema-reference
// for the documentation about the c_cpp_properties.json format
"configurations": [
{
"name": "Linux",
"includePath": [
"${workspaceFolder}/../../../src"
],
"defines": [],
"compilerPath": "/usr/bin/gcc",
"cStandard": "gnu17",
"cppStandard": "gnu++17",
"intelliSenseMode": "linux-gcc-x64"
}
],
"version": 4
}
32 changes: 32 additions & 0 deletions tests/integration-tests/temporal/.vscode/launch.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,32 @@
{
// See https://go.microsoft.com/fwlink/?linkid=830387
// for the documentation about the launch.json format
"version": "0.2.0",
"configurations": [
{
"name": "test",
"type": "cppdbg",
"request": "launch",
"program": "${workspaceFolder}/build/commons-integration-test-${workspaceFolderBasename}",
"args": [],
"stopAtEntry": false,
"cwd": "${workspaceFolder}",
"environment": [
{
"name": "LD_LIBRARY_PATH",
"value": "${workspaceFolder}/../../../src/build"
}
],
"externalConsole": false,
"MIMode": "gdb",
"setupCommands": [
{
"description": "Enable pretty-printing for gdb",
"text": "-enable-pretty-printing",
"ignoreFailures": true
}
],
"preLaunchTask": "build",
}
]
}
43 changes: 43 additions & 0 deletions tests/integration-tests/temporal/.vscode/tasks.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,43 @@
{
// See https://go.microsoft.com/fwlink/?LinkId=733558
// for the documentation about the tasks.json format
"version": "2.0.0",
"tasks": [
{
"label": "build",
"dependsOn": [
"build_sources",
"build_tests"
],
},
{
"label": "build_sources",
"command": "make --no-print-directory -C ../../../src debug",
"type": "shell",
"group": {
"kind": "build",
"isDefault": true
},
"problemMatcher": ["$gcc"]
},
{
"label": "build_tests",
"command": "make debug",
"type": "shell",
"group": {
"kind": "build",
"isDefault": true
},
"problemMatcher": ["$gcc"]
},
{
"label": "clean",
"command": "make clean",
"type": "shell",
"group": {
"kind": "none"
},
"problemMatcher": []
}
]
}

0 comments on commit 33d17d1

Please sign in to comment.