1{
2 "case": "t002",
3 "category": "features/echoing",
4 "compare_output": true,
5 "description": "The following test creates a makefile to test command\nechoing. It tests that when a command line starts with\na '@', the echoing of that line is suppressed. It also\ntests the -n option which tells make to ONLY echo the\ncommands and no execution happens. In this case, even\nthe commands with '@' are printed. Lastly, it tests the\n-s flag which tells make to prevent all echoing, as if\nall commands started with a '@'.",
6 "details": "This test is similar to the 'clean' test except that a '@' has\nbeen placed in front of the delete command line. Four tests\nare run here. First, make is run normally and the first echo\ncommand should be executed. In this case there is no '@' so\nwe should expect make to display the command AND display the\nechoed message. Secondly, make is run with the clean target,\nbut since there is a '@' at the beginning of the command, we\nexpect no output; just the deletion of a file which we check\nfor. Third, we give the clean target again except this time\nwe give make the -n option. We now expect the command to be\ndisplayed but not to be executed. In this case we need only\nto check the output since an error message would be displayed\nif it actually tried to run the delete command again and the\nfile didn't exist. Lastly, we run the first test again with\nthe -s option and check that make did not echo the echo\ncommand before printing the message.\n",
7 "env": {},
8 "expected_exit": 0,
9 "options": "clean",
10 "options_mode": "shell",
11 "output_mode": "exact",
12 "setup": [
13 {
14 "content": "\n",
15 "kind": "file",
16 "mode": "0644",
17 "mtime": 1778707191,
18 "path": "EXAMPLE_FILE"
19 }
20 ],
21 "source_script": "features/echoing",
22 "stdin": "",
23 "suite": "gnu",
24 "timeout_seconds": 60
25}