main shinobi / tests / mk / gnu / options / dash-e / t010 / test.json
 1{
 2  "case": "t010",
 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    "MAKEFLAGS": "r -Iextramk -ke bye=moon",
10    "hello": "world"
11  },
12  "expected_exit": 0,
13  "options": "-s",
14  "options_mode": "shell",
15  "output_mode": "exact",
16  "setup": [
17    {
18      "kind": "dir",
19      "mode": "0755",
20      "mtime": 1778707218,
21      "path": "lib"
22    },
23    {
24      "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",
25      "kind": "file",
26      "mode": "0644",
27      "mtime": 1778707218,
28      "path": "lib/build.ninja"
29    },
30    {
31      "content": "$(info in submake value=$(hello), origin=$(origin hello))\nall:; @echo \"value=$(hello), origin=$(origin hello)\"\n",
32      "kind": "file",
33      "mode": "0644",
34      "mtime": 1778707218,
35      "path": "lib/makefile"
36    }
37  ],
38  "source_script": "options/dash-e",
39  "stdin": "",
40  "suite": "gnu",
41  "timeout_seconds": 60
42}