-
Notifications
You must be signed in to change notification settings - Fork 8
feat: Full abstraction of note-cpp from note-arduino
#83
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
Merged
Changes from all commits
Commits
Show all changes
5 commits
Select commit
Hold shift + click to select a range
2a00429
feat: Full abstraction of NoteLog_Arduino
zfields 7136247
feat: Full abstraction of NoteSerial_Arduino
zfields 2c6bb89
feat: bash completion in Dockerfile
zfields 4532cc3
feat: Full abstraction of NoteI2c_Arduino
zfields 4e37f0b
fix: Arduino variable typo
zfields File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or 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
This file contains hidden or 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 |
|---|---|---|
|
|
@@ -14,6 +14,7 @@ FROM alpine:3.14 | |
| RUN ["ash", "-c", "\ | ||
| apk add --no-cache \ | ||
| g++ \ | ||
| gdb \ | ||
| valgrind \ | ||
| "] | ||
|
|
||
|
|
||
This file contains hidden or 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 |
|---|---|---|
| @@ -1,10 +1,10 @@ | ||
| .vscode/ | ||
| .DS_Store | ||
| *.gch | ||
| *.out | ||
| *.gcda | ||
| *.gcno | ||
| *.gcov | ||
| vgcore.* | ||
|
|
||
| coverage/ | ||
|
|
||
|
|
||
This file contains hidden or 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,78 @@ | ||
| { | ||
| // Use IntelliSense to learn about possible attributes. | ||
| // Hover to view descriptions of existing attributes. | ||
| // For more information, visit: https://go.microsoft.com/fwlink/?linkid=830387 | ||
| "version": "0.2.0", | ||
| "configurations": [ | ||
| { | ||
| "name": "Debug Failed Unit-tests", | ||
| "type": "cppdbg", | ||
| "request": "launch", | ||
| "program": "${workspaceRoot}/failed_test_run", | ||
| "args": [], | ||
| "cwd": "${workspaceRoot}", | ||
| "MIMode": "gdb", | ||
| "miDebuggerPath": "/usr/bin/gdb" | ||
| }, | ||
| { | ||
| "name": "Debug Notecard Unit-tests", | ||
| "type": "cppdbg", | ||
| "request": "launch", | ||
| "program": "${workspaceRoot}/notecard.tests", | ||
| "args": [], | ||
| "cwd": "${workspaceRoot}", | ||
| "preLaunchTask": "Compile Notecard Tests", | ||
| "postDebugTask": "Clear Test Binaries", | ||
| "MIMode": "gdb", | ||
| "miDebuggerPath": "/usr/bin/gdb" | ||
| }, | ||
| { | ||
| "name": "Debug NoteI2c Arduino Unit-tests", | ||
| "type": "cppdbg", | ||
| "request": "launch", | ||
| "program": "${workspaceRoot}/notei2c_arduino.tests", | ||
| "args": [], | ||
| "cwd": "${workspaceRoot}", | ||
| "preLaunchTask": "Compile NoteI2c Arduino Tests", | ||
| "postDebugTask": "Clear Test Binaries", | ||
| "MIMode": "gdb", | ||
| "miDebuggerPath": "/usr/bin/gdb" | ||
| }, | ||
| { | ||
| "name": "Debug NoteI2c Arduino Unit-tests (-DWIRE_HAS_END)", | ||
| "type": "cppdbg", | ||
| "request": "launch", | ||
| "program": "${workspaceRoot}/notei2c_arduino_wire_has_end.tests", | ||
| "args": [], | ||
| "cwd": "${workspaceRoot}", | ||
| "preLaunchTask": "Compile NoteI2c Arduino Tests (-DWIRE_HAS_END)", | ||
| "postDebugTask": "Clear Test Binaries", | ||
| "MIMode": "gdb", | ||
| "miDebuggerPath": "/usr/bin/gdb" | ||
| }, | ||
| { | ||
| "name": "Debug NoteLog Arduino Unit-tests", | ||
| "type": "cppdbg", | ||
| "request": "launch", | ||
| "program": "${workspaceRoot}/notelog_arduino.tests", | ||
| "args": [], | ||
| "cwd": "${workspaceRoot}", | ||
| "preLaunchTask": "Compile NoteLog Arduino Tests", | ||
| "postDebugTask": "Clear Test Binaries", | ||
| "MIMode": "gdb", | ||
| "miDebuggerPath": "/usr/bin/gdb" | ||
| }, | ||
| { | ||
| "name": "Debug NoteSerial Arduino Unit-tests", | ||
| "type": "cppdbg", | ||
| "request": "launch", | ||
| "program": "${workspaceRoot}/noteserial_arduino.tests", | ||
| "args": [], | ||
| "cwd": "${workspaceRoot}", | ||
| "preLaunchTask": "Compile NoteSerial Arduino Tests", | ||
| "postDebugTask": "Clear Test Binaries", | ||
| "MIMode": "gdb", | ||
| "miDebuggerPath": "/usr/bin/gdb" | ||
| }, | ||
| ] | ||
| } | ||
This file contains hidden or 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,191 @@ | ||
| { | ||
| "version": "2.0.0", | ||
| "tasks": [ | ||
| { | ||
| "type": "cppbuild", | ||
| "label": "Compile and Run ALL Tests", | ||
| "command": "./test/run_all_tests.sh", | ||
| "args": [], | ||
| "options": { | ||
| "cwd": "${workspaceFolder}" | ||
| }, | ||
| "problemMatcher": [ | ||
| "$gcc" | ||
| ], | ||
| "group": { | ||
| "kind": "build", | ||
| "isDefault": true | ||
| } | ||
| }, | ||
| { | ||
| "type": "cppbuild", | ||
| "label": "Compile Notecard Tests", | ||
| "command": "g++", | ||
| "args": [ | ||
| "-Wall", | ||
| "-Wextra", | ||
| "-Wpedantic", | ||
| "test/mock/mock-arduino.cpp", | ||
| "test/mock/mock-note-c-note.c", | ||
| "test/mock/NoteI2c_Mock.cpp", | ||
| "test/mock/NoteLog_Mock.cpp", | ||
| "test/mock/NoteSerial_Mock.cpp", | ||
| "src/Notecard.cpp", | ||
| "test/Notecard.test.cpp", | ||
| "-std=c++11", | ||
| "-Itest", | ||
| "-Isrc", | ||
| "-DNOTE_MOCK", | ||
| "-o", | ||
| "notecard.tests", | ||
| "-g", | ||
| ], | ||
| "options": { | ||
| "cwd": "${workspaceFolder}" | ||
| }, | ||
| "problemMatcher": [ | ||
| "$gcc" | ||
| ], | ||
| "group": { | ||
| "kind": "build", | ||
| "isDefault": false | ||
| } | ||
| }, | ||
| { | ||
| "type": "cppbuild", | ||
| "label": "Compile NoteI2c Arduino Tests", | ||
| "command": "g++", | ||
| "args": [ | ||
| "-Wall", | ||
| "-Wextra", | ||
| "-Wpedantic", | ||
| "test/mock/mock-arduino.cpp", | ||
| "test/mock/mock-note-c-note.c", | ||
| "src/NoteI2c_Arduino.cpp", | ||
| "test/NoteI2c_Arduino.test.cpp", | ||
| "-std=c++11", | ||
| "-Itest", | ||
| "-Isrc", | ||
| "-DNOTE_MOCK", | ||
| "-o", | ||
| "notei2c_arduino.tests", | ||
| "-g", | ||
| ], | ||
| "options": { | ||
| "cwd": "${workspaceFolder}" | ||
| }, | ||
| "problemMatcher": [ | ||
| "$gcc" | ||
| ], | ||
| "group": { | ||
| "kind": "build", | ||
| "isDefault": false | ||
| } | ||
| }, | ||
| { | ||
| "type": "cppbuild", | ||
| "label": "Compile NoteI2c Arduino Tests (-DWIRE_HAS_END)", | ||
| "command": "g++", | ||
| "args": [ | ||
| "-Wall", | ||
| "-Wextra", | ||
| "-Wpedantic", | ||
| "test/mock/mock-arduino.cpp", | ||
| "test/mock/mock-note-c-note.c", | ||
| "src/NoteI2c_Arduino.cpp", | ||
| "test/NoteI2c_Arduino.test.cpp", | ||
| "-std=c++11", | ||
| "-Itest", | ||
| "-Isrc", | ||
| "-DNOTE_MOCK", | ||
| "-DWIRE_HAS_END", | ||
| "-o", | ||
| "notei2c_arduino_wire_has_end.tests", | ||
| "-g", | ||
| ], | ||
| "options": { | ||
| "cwd": "${workspaceFolder}" | ||
| }, | ||
| "problemMatcher": [ | ||
| "$gcc" | ||
| ], | ||
| "group": { | ||
| "kind": "build", | ||
| "isDefault": false | ||
| } | ||
| }, | ||
| { | ||
| "type": "cppbuild", | ||
| "label": "Compile NoteLog Arduino Tests", | ||
| "command": "g++", | ||
| "args": [ | ||
| "-Wall", | ||
| "-Wextra", | ||
| "-Wpedantic", | ||
| "test/mock/mock-arduino.cpp", | ||
| "test/mock/mock-note-c-note.c", | ||
| "src/NoteLog_Arduino.cpp", | ||
| "test/NoteLog_Arduino.test.cpp", | ||
| "-std=c++11", | ||
| "-Itest", | ||
| "-Isrc", | ||
| "-DNOTE_MOCK", | ||
| "-o", | ||
| "notelog_arduino.tests", | ||
| "-g", | ||
| ], | ||
| "options": { | ||
| "cwd": "${workspaceFolder}" | ||
| }, | ||
| "problemMatcher": [ | ||
| "$gcc" | ||
| ], | ||
| "group": { | ||
| "kind": "build", | ||
| "isDefault": false | ||
| } | ||
| }, | ||
| { | ||
| "type": "cppbuild", | ||
| "label": "Compile NoteSerial Arduino Tests", | ||
| "command": "g++", | ||
| "args": [ | ||
| "-Wall", | ||
| "-Wextra", | ||
| "-Wpedantic", | ||
| "test/mock/mock-arduino.cpp", | ||
| "test/mock/mock-note-c-note.c", | ||
| "src/NoteSerial_Arduino.cpp", | ||
| "test/NoteSerial_Arduino.test.cpp", | ||
| "-std=c++11", | ||
| "-Itest", | ||
| "-Isrc", | ||
| "-DNOTE_MOCK", | ||
| "-o", | ||
| "noteserial_arduino.tests", | ||
| "-g", | ||
| ], | ||
| "options": { | ||
| "cwd": "${workspaceFolder}" | ||
| }, | ||
| "problemMatcher": [ | ||
| "$gcc" | ||
| ], | ||
| "group": { | ||
| "kind": "build", | ||
| "isDefault": false | ||
| } | ||
| }, | ||
| { | ||
| "type": "shell", | ||
| "label": "Clear Test Binaries", | ||
| "command": "rm -rf *.tests", | ||
| "options": { | ||
| "cwd": "${workspaceFolder}" | ||
| }, | ||
| "problemMatcher": [ | ||
| "$gcc" | ||
| ], | ||
| }, | ||
| ] | ||
| } |
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.