Add test makefile for easy execution

This commit is contained in:
jaby 2022-09-12 22:18:56 +02:00
parent bbe5bdcb2f
commit d872de3f46
2 changed files with 18 additions and 0 deletions

7
src/Tools/Tests/Test.mk Normal file
View File

@ -0,0 +1,7 @@
export PATH := $(HOME)/.cargo/bin/:$(PATH)
test_cpp_out: always
@cargo build --manifest-path ../cpp_out/Cargo.toml --release
@./../cpp_out/target/release/cpp_out
always: ;

View File

@ -23,6 +23,17 @@
"group": {
"kind": "build",
}
},
{
"label": "run test make",
"type": "shell",
"command": "wsl make -f Test.mk test_${input:project}",
"group": {
"kind": "build",
},
"options": {
"cwd": "${workspaceFolder}/Tests"
}
}
],
"inputs": [