|
| 1 | +{ |
| 2 | + "version": "2.0.0", |
| 3 | + "tasks": [ |
| 4 | + { |
| 5 | + "label": "Download nlohmann/json.hpp", |
| 6 | + "type": "shell", |
| 7 | + "command": "python scripts/download_nlohmann_json.py", |
| 8 | + "options": { |
| 9 | + "cwd": "${workspaceFolder}" |
| 10 | + }, |
| 11 | + "problemMatcher": [] |
| 12 | + }, |
| 13 | + { |
| 14 | + "label": "b2: Run all tests (default)", |
| 15 | + "type": "shell", |
| 16 | + "dependsOn": ["Download nlohmann/json.hpp"], |
| 17 | + "command": "../../b2 test", |
| 18 | + "options": { |
| 19 | + "cwd": "${workspaceFolder}" |
| 20 | + }, |
| 21 | + "group": "test", |
| 22 | + "problemMatcher": { |
| 23 | + "base": "$gcc", |
| 24 | + "fileLocation": ["relative", "${workspaceFolder}"] |
| 25 | + }, |
| 26 | + "windows": { |
| 27 | + "command": "..\\..\\b2 test", |
| 28 | + "problemMatcher": { |
| 29 | + "base": "$msCompile", |
| 30 | + "fileLocation": ["relative", "${workspaceFolder}"] |
| 31 | + } |
| 32 | + } |
| 33 | + }, |
| 34 | + { |
| 35 | + "label": "b2: Run all tests (release)", |
| 36 | + "type": "shell", |
| 37 | + "dependsOn": ["Download nlohmann/json.hpp"], |
| 38 | + "command": "../../b2 test variant=release", |
| 39 | + "options": { |
| 40 | + "cwd": "${workspaceFolder}" |
| 41 | + }, |
| 42 | + "group": "test", |
| 43 | + "problemMatcher": { |
| 44 | + "base": "$gcc", |
| 45 | + "fileLocation": ["relative", "${workspaceFolder}"] |
| 46 | + }, |
| 47 | + "windows": { |
| 48 | + "command": "..\\..\\b2 test variant=release", |
| 49 | + "problemMatcher": { |
| 50 | + "base": "$msCompile", |
| 51 | + "fileLocation": ["relative", "${workspaceFolder}"] |
| 52 | + } |
| 53 | + } |
| 54 | + }, |
| 55 | + { |
| 56 | + "label": "b2: Run all tests (all configs)", |
| 57 | + "type": "shell", |
| 58 | + "dependsOn": ["Download nlohmann/json.hpp"], |
| 59 | + "command": "../../b2 test exception-handling=on,off rtti=on,off variant=debug,release link=static,shared", |
| 60 | + "options": { |
| 61 | + "cwd": "${workspaceFolder}" |
| 62 | + }, |
| 63 | + "group": "test", |
| 64 | + "problemMatcher": { |
| 65 | + "base": "$gcc", |
| 66 | + "fileLocation": ["relative", "${workspaceFolder}"] |
| 67 | + }, |
| 68 | + "windows": { |
| 69 | + "command": "..\\..\\b2 test exception-handling=on,off rtti=on,off variant=debug,release link=static,shared", |
| 70 | + "problemMatcher": { |
| 71 | + "base": "$msCompile", |
| 72 | + "fileLocation": ["relative", "${workspaceFolder}"] |
| 73 | + } |
| 74 | + } |
| 75 | + }, |
| 76 | + { |
| 77 | + "label": "b2: Run test for current editor file", |
| 78 | + "type": "shell", |
| 79 | + "dependsOn": ["Download nlohmann/json.hpp"], |
| 80 | + "command": "../../b2 test ${fileBasenameNoExtension}.test", |
| 81 | + "options": { |
| 82 | + "cwd": "${workspaceFolder}" |
| 83 | + }, |
| 84 | + "group": { |
| 85 | + "kind": "test", |
| 86 | + "isDefault": true |
| 87 | + }, |
| 88 | + "problemMatcher": { |
| 89 | + "base": "$gcc", |
| 90 | + "fileLocation": ["relative", "${workspaceFolder}"] |
| 91 | + }, |
| 92 | + "windows": { |
| 93 | + "command": "..\\..\\b2 test ${fileBasenameNoExtension}.test", |
| 94 | + "problemMatcher": { |
| 95 | + "base": "$msCompile", |
| 96 | + "fileLocation": ["relative", "${workspaceFolder}"] |
| 97 | + } |
| 98 | + } |
| 99 | + } |
| 100 | + ] |
| 101 | +} |
0 commit comments