main shinobi / tests / mk / gnu / options / dash-I / t008 / test.json
 1{
 2  "case": "t008",
 3  "category": "options/dash-I",
 4  "compare_output": true,
 5  "description": "The following test creates a makefile to test the -I option.",
 6  "details": "\nThis test tests the -I option by including a filename in\nanother directory and giving make that directory name\nunder -I in the command line.  Without this option, the make\nwould fail to find the included file.  It also checks to make\nsure that the -I option gets passed to recursive makes.",
 7  "env": {},
 8  "expected_exit": 0,
 9  "options": "-I idir2 -I - -I idir recurse",
10  "options_mode": "shell",
11  "output_mode": "exact",
12  "setup": [
13    {
14      "kind": "dir",
15      "mode": "0755",
16      "mtime": 1778707218,
17      "path": "idir"
18    },
19    {
20      "content": "\nANOTHER:\n\t@echo This is another included makefile\nrecurse:\n\t@$(MAKE) ANOTHER -f $(main_makefile)\n",
21      "kind": "file",
22      "mode": "0644",
23      "mtime": 1778707218,
24      "path": "idir/ifile.mk"
25    },
26    {
27      "kind": "dir",
28      "mode": "0755",
29      "mtime": 1778707218,
30      "path": "idir2"
31    },
32    {
33      "content": "This is a bad makefile!!\n",
34      "kind": "file",
35      "mode": "0644",
36      "mtime": 1778707218,
37      "path": "idir2/ifile.mk"
38    }
39  ],
40  "source_script": "options/dash-I",
41  "stdin": "",
42  "suite": "gnu",
43  "timeout_seconds": 60
44}