commit 12b8673

shrub  ·  2026-05-13 21:58:51 +0000 UTC
parent f5d60f2
some more tests
6 files changed,  +52, -0
+2, -0
1@@ -0,0 +1,2 @@
2+all:
3+	@cd sub && $(MAKE) -f alt.mk show NAME=moon
+1, -0
1@@ -0,0 +1 @@
2+name=moon cwd=sub
+24, -0
 1@@ -0,0 +1,24 @@
 2+{
 3+  "case": "t001",
 4+  "category": "recursion",
 5+  "compare_output": true,
 6+  "description": "recursive make through cd && with an alternate makefile and assignment",
 7+  "details": "",
 8+  "env": {},
 9+  "expected_exit": 0,
10+  "options": "",
11+  "options_mode": "argv",
12+  "output_mode": "exact",
13+  "setup": [
14+    {
15+      "kind": "file",
16+      "mode": "0644",
17+      "mtime": 0,
18+      "path": "sub/alt.mk",
19+      "content": "show:\n\t@echo name=$(NAME) cwd=$(notdir $(CURDIR))\n"
20+    }
21+  ],
22+  "stdin": "",
23+  "suite": "shin",
24+  "timeout_seconds": 60
25+}
+8, -0
1@@ -0,0 +1,8 @@
2+X = hi
3+A := $(X)
4+B ::= $(X)
5+C :::= $(X)
6+X = bye
7+
8+all:
9+	@echo A=$(A) B=$(B) C=$(C)
+1, -0
1@@ -0,0 +1 @@
2+A=hi B=hi C=hi
+16, -0
 1@@ -0,0 +1,16 @@
 2+{
 3+  "case": "t001",
 4+  "category": "variables",
 5+  "compare_output": true,
 6+  "description": "accept :=, ::=, and :::= assignments",
 7+  "details": "",
 8+  "env": {},
 9+  "expected_exit": 0,
10+  "options": "",
11+  "options_mode": "argv",
12+  "output_mode": "exact",
13+  "setup": [],
14+  "stdin": "",
15+  "suite": "shin",
16+  "timeout_seconds": 60
17+}