OkiBry

abc

Jan 19th, 2022
35
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.30 KB | None | 0 0
  1. {
  2. // See https://go.microsoft.com/fwlink/?LinkId=733558
  3. // for the documentation about the tasks.json format
  4. "version": "2.0.0",
  5. "tasks": [
  6. {
  7. "type": "cppbuild",
  8. "label": "Build file",
  9. "command": "/usr/bin/g++",
  10. "args": [
  11. "-fdiagnostics-color=always",
  12. "-g",
  13. "${file}",
  14. "-o",
  15. "${fileDirname}/${fileBasenameNoExtension}"
  16. ],
  17. "options": {
  18. "cwd": "${fileDirname}"
  19. },
  20. "problemMatcher": [
  21. "$gcc"
  22. ],
  23. "group": "build",
  24. "detail": "compiler: /usr/bin/g++"
  25. },
  26. {
  27. "type": "shell",
  28. "label": "Test file",
  29. "command": "cat input.txt | ${fileDirname}/${fileBasenameNoExtension} >> output.txt",
  30. "options": {
  31. "cwd": "${fileDirname}"
  32. },
  33. "group": "build",
  34. },
  35. {
  36. "type": "shell",
  37. "label": "Compare result",
  38. "command": "diff ./output.txt ./expect_output.txt",
  39. "options": {
  40. "cwd": "${fileDirname}"
  41. },
  42. "group": "build",
  43. }
  44. ]
  45. }
Advertisement
Add Comment
Please, Sign In to add comment