-
Notifications
You must be signed in to change notification settings - Fork 172
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add Code workspace configuration + missing test case (#177)
* Add Code workspace configuration * Add test case for string.h * Add integration tests to workspace
- Loading branch information
Showing
12 changed files
with
335 additions
and
3 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,23 @@ | ||
{ | ||
"settings": { | ||
"debug.onTaskErrors": "abort", | ||
"files.associations": { | ||
"*.h": "c", | ||
}, | ||
"C_Cpp.errorSquiggles": "disabled", | ||
}, | ||
"folders": [ | ||
{ | ||
"path": "src" | ||
}, | ||
{ | ||
"path": "tests/unit-tests" | ||
}, | ||
{ | ||
"path": "tests/integration-tests/temporal" | ||
}, | ||
{ | ||
"path": "tests/integration-tests/logger" | ||
} | ||
] | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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}" | ||
], | ||
"defines": [], | ||
"compilerPath": "/usr/bin/gcc", | ||
"cStandard": "gnu17", | ||
"cppStandard": "gnu++17", | ||
"intelliSenseMode": "linux-gcc-x64" | ||
} | ||
], | ||
"version": 4 | ||
} |
18 changes: 18 additions & 0 deletions
18
tests/integration-tests/logger/.vscode/c_cpp_properties.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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", | ||
} | ||
] | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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
18
tests/integration-tests/temporal/.vscode/c_cpp_properties.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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", | ||
} | ||
] | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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": [] | ||
} | ||
] | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
{ | ||
// 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", | ||
"${workspaceFolder}/../../cspec" | ||
], | ||
"defines": [], | ||
"compilerPath": "/usr/bin/gcc", | ||
"cStandard": "gnu17", | ||
"cppStandard": "gnu++17", | ||
"intelliSenseMode": "linux-gcc-x64" | ||
} | ||
], | ||
"version": 4 | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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-unit-test", | ||
"args": [], | ||
"stopAtEntry": false, | ||
"cwd": "${workspaceFolder}", | ||
"environment": [ | ||
{ | ||
"name": "LD_LIBRARY_PATH", | ||
"value": "${workspaceFolder}/../../src/build:${workspaceFolder}/../../cspec/release" | ||
} | ||
], | ||
"externalConsole": false, | ||
"MIMode": "gdb", | ||
"setupCommands": [ | ||
{ | ||
"description": "Enable pretty-printing for gdb", | ||
"text": "-enable-pretty-printing", | ||
"ignoreFailures": true | ||
} | ||
], | ||
"preLaunchTask": "build", | ||
} | ||
] | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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": [] | ||
} | ||
] | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters