main shinobi / tests / mk / gnu / options / dash-e / t005 / test.json
 1{
 2  "case": "t005",
 3  "category": "options/dash-e",
 4  "compare_output": true,
 5  "description": "Test the -e (environment overrides) option",
 6  "details": "",
 7  "env": {
 8    "GOOGLE": "boggle",
 9    "hello": "world"
10  },
11  "expected_exit": 0,
12  "options": "-s --environment-overrides",
13  "options_mode": "shell",
14  "output_mode": "exact",
15  "setup": [
16    {
17      "kind": "dir",
18      "mode": "0755",
19      "mtime": 1778707218,
20      "path": "lib"
21    },
22    {
23      "content": "# this file was generated from a makefile by shinobi\nrule r1\n  command = cd lib \u0026\u0026 echo \"value=world, origin=environment\"\n\nbuild lib/all: r1\n\n",
24      "kind": "file",
25      "mode": "0644",
26      "mtime": 1778707218,
27      "path": "lib/build.ninja"
28    },
29    {
30      "content": "$(info in submake value=$(hello), origin=$(origin hello))\nall:; @echo \"value=$(hello), origin=$(origin hello)\"\n",
31      "kind": "file",
32      "mode": "0644",
33      "mtime": 1778707218,
34      "path": "lib/makefile"
35    }
36  ],
37  "source_script": "options/dash-e",
38  "stdin": "",
39  "suite": "gnu",
40  "timeout_seconds": 60
41}