main shinobi / tests / mk / gnu / targets / PHONY / t001 / test.json
 1{
 2  "case": "t001",
 3  "category": "targets/PHONY",
 4  "compare_output": true,
 5  "description": "The following tests the use of a PHONY target.  It makes\nsure that the rules under a target get executed even if\na filename of the same name of the target exists in the\ndirectory.\n",
 6  "details": "This makefile in this test declares the target clean to be a \nPHONY target.  We then create a file named \"clean\" in the \ndirectory.  Although this file exists, the rule under the target\nclean should still execute because of it's phony status.",
 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": 1778707223,
18      "path": "EXAMPLE_FILE"
19    },
20    {
21      "content": "\n",
22      "kind": "file",
23      "mode": "0644",
24      "mtime": 1778707223,
25      "path": "clean"
26    }
27  ],
28  "source_script": "targets/PHONY",
29  "stdin": "",
30  "suite": "gnu",
31  "timeout_seconds": 60
32}