main shinobi / tests / mk / gnu / features / mult_rules / t001 / test.json
 1{
 2  "case": "t001",
 3  "category": "features/mult_rules",
 4  "compare_output": true,
 5  "description": "\nThe following test creates a makefile to test the presence\nof multiple rules for one target.  One file can be the\ntarget of several rules if at most one rule has commands;\nthe other rules can only have dependencies.",
 6  "details": "\nThe makefile created in this test contains two hardcoded rules\nfor foo.o and bar.o.  It then gives another multiple target rule\nwith the same names as above but adding more dependencies.\nAdditionally, another variable extradeps is listed as a\ndependency but is defined to be null.  It can however be defined\non the make command line as extradeps=extra.h which adds yet\nanother dependency to the targets.",
 7  "env": {},
 8  "expected_exit": 512,
 9  "options": "extradeps=extra.h",
10  "options_mode": "shell",
11  "output_mode": "exact",
12  "setup": [
13    {
14      "content": "\n",
15      "kind": "file",
16      "mode": "0644",
17      "mtime": 1778707195,
18      "path": "config.h"
19    },
20    {
21      "content": "\n",
22      "kind": "file",
23      "mode": "0644",
24      "mtime": 1778707195,
25      "path": "defs.h"
26    },
27    {
28      "content": "\n",
29      "kind": "file",
30      "mode": "0644",
31      "mtime": 1778707195,
32      "path": "test.h"
33    }
34  ],
35  "source_script": "features/mult_rules",
36  "stdin": "",
37  "suite": "gnu",
38  "timeout_seconds": 60
39}