Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- {
- // See https://go.microsoft.com/fwlink/?LinkId=733558
- // for the documentation about the tasks.json format
- "version": "2.0.0",
- "tasks": [
- {
- "type": "cppbuild",
- "label": "Build file",
- "command": "/usr/bin/g++",
- "args": [
- "-fdiagnostics-color=always",
- "-g",
- "${file}",
- "-o",
- "${fileDirname}/${fileBasenameNoExtension}"
- ],
- "options": {
- "cwd": "${fileDirname}"
- },
- "problemMatcher": [
- "$gcc"
- ],
- "group": "build",
- "detail": "compiler: /usr/bin/g++"
- },
- {
- "type": "shell",
- "label": "Test file",
- "command": "cat input.txt | ${fileDirname}/${fileBasenameNoExtension} >> output.txt",
- "options": {
- "cwd": "${fileDirname}"
- },
- "group": "build",
- },
- {
- "type": "shell",
- "label": "Compare result",
- "command": "diff ./output.txt ./expect_output.txt",
- "options": {
- "cwd": "${fileDirname}"
- },
- "group": "build",
- }
- ]
- }
Advertisement
Add Comment
Please, Sign In to add comment