Add a manual test for the calculated variables
This commit is contained in:
parent
522d8fbc99
commit
db4e60aca5
2 changed files with 25 additions and 1 deletions
24
tests/testdata/cpp/simple/.vimspector.json
vendored
24
tests/testdata/cpp/simple/.vimspector.json
vendored
|
|
@ -1,4 +1,5 @@
|
||||||
{
|
{
|
||||||
|
"$schema": "https://puremourning.github.io/vimspector/schema/vimspector.schema.json",
|
||||||
"configurations": {
|
"configurations": {
|
||||||
"run-to-entry": {
|
"run-to-entry": {
|
||||||
"adapter": "vscode-cpptools",
|
"adapter": "vscode-cpptools",
|
||||||
|
|
@ -44,6 +45,29 @@
|
||||||
"swift_throw": ""
|
"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
tests/testdata/cpp/simple/Makefile
vendored
2
tests/testdata/cpp/simple/Makefile
vendored
|
|
@ -2,7 +2,7 @@ CXXFLAGS=-g -O0 -std=c++17
|
||||||
|
|
||||||
.PHONY: all
|
.PHONY: all
|
||||||
|
|
||||||
TARGETS=simple variables struct
|
TARGETS=simple variables struct printer
|
||||||
|
|
||||||
all: $(TARGETS)
|
all: $(TARGETS)
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue