Skip to content

Commit

Permalink
Add a manual test for the calculated variables
Browse files Browse the repository at this point in the history
  • Loading branch information
puremourning committed Sep 11, 2020
1 parent 522d8fb commit db4e60a
Show file tree
Hide file tree
Showing 2 changed files with 25 additions and 1 deletion.
24 changes: 24 additions & 0 deletions tests/testdata/cpp/simple/.vimspector.json
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
{
"$schema": "https://puremourning.github.io/vimspector/schema/vimspector.schema.json",
"configurations": {
"run-to-entry": {
"adapter": "vscode-cpptools",
Expand Down Expand Up @@ -44,6 +45,29 @@
"swift_throw": ""
}
}
},
"calculate-some-variable": {
"adapter": "vscode-cpptools",
"variables": {
"SIMPLE": "This is some text containing: $HOME",
"CALCULATED_LIST": {
"shell": [ "uuidgen" ]
},
"CALCULATED_STR": {
"shell": [ "uuidgen" ]
}
},
"configuration": {
"request": "launch",
"program": "${workspaceRoot}/${fileBasenameNoExtension}",
"MImode": "${VIMSPECTOR_MIMODE}",
"externalConsole": false,
"args": [
"CALCULATED_LIST", "${CALCULATED_LIST}",
"SIMPLE", "${SIMPLE}",
"CALCULATED_STR", "${CALCULATED_STR}"
]
}
}
}
}
2 changes: 1 addition & 1 deletion tests/testdata/cpp/simple/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ CXXFLAGS=-g -O0 -std=c++17

.PHONY: all

TARGETS=simple variables struct
TARGETS=simple variables struct printer

all: $(TARGETS)

Expand Down

0 comments on commit db4e60a

Please sign in to comment.