util/run-gnu-testsuite.sh: shell-script tests run `../gawk` instead of our binary
維護者通常 1 天內回覆
還沒有人認領這個 Issue。
評估
研究方向
Start with util/run-gnu-testsuite.sh and the AWK/AWKPROG setup in gawk's test/Makefile, then check how beginfile2 and fflush invoke ../gawk from the test directory. Update the runner to pass the wrapper through AWKPROG and make the wrapper available to those relative-path tests. Run the affected GNU tests and confirm they reach the Rust binary.
由索引模型根據 Issue 內容生成。
描述
util/run-gnu-testsuite.sh runs make check AWK="$WRAPPER". gawk's
test/Makefile builds AWK from AWKPROG (AWK = $(LOCALES) ... $(AWKPROG) $(GAWK_TEST_ARGS)), and its .sh tests use AWKPROG directly:
fflush:
@-$(LOCALES) AWK="$(AWKPROG) $(GAWK_TEST_ARGS)" "$(srcdir)"/[email protected] > _$@ 2>&1 ...
AWKPROG defaults to ../gawk, which does not exist in the extracted tree,
so these tests run nothing and fail with ../gawk: not found. Overriding
AWK also drops the LOCALES and AWKLIBPATH settings for every other test.
Fix
Pass AWKPROG="$WRAPPER" instead of AWK="$WRAPPER" in the make -k ... check call. With that, the tests reach the Rust binary (they then fail on
printf, -v, built-ins, --lint, next, which the other issues cover).
beginfile2 and fflush still call ../gawk by a relative path from the test
directory and need the wrapper there too (or a gawk symlink in the parent
of test/).
Affected tests: beginfile2, cmdlinefsbacknl, cmdlinefsbacknl2, exit, fflush,
localenl, modifiers, next, pid, poundbang, randtest, rtlen, rtlen01 (jarebug
passes by accident).
- 主要語言
- Rust
- 星號
- 31
- 分支
- 13
- 平均合併
- 23 小時 42 分鐘
- 30 天內合併 PR
- 29
環境準備
這個專案沒有提供開發容器、Dockerfile 或貢獻指南,環境需要你自己搭建:先看它的 README,通用步驟見我們的新手貢獻指南。
從這裡開始
- 先讀完整個 Issue,再讀專案的貢獻指南。
- 在 Issue 下留言說明你要接手 —— 這能避免兩個人做同樣的事。
- Fork 儲存庫,在一個分支上完成修改。
- 送出 Pull Request,並在描述裡引用這個 Issue 編號。
uutils/awk 的其他 Issue
-
bug gnu-compat good first issue
難度 2/5 1-3 小時 新手友好度 82/100
維護者通常 1 天內回覆
-
bug crash gnu-compat good first issue
難度 2/5 1-3 小時 新手友好度 78/100
維護者通常 1 天內回覆
-
bug gnu-compat good first issue
難度 2/5 1-3 小時 新手友好度 85/100
維護者通常 1 天內回覆
-
bug gnu-compat good first issue
難度 2/5 1-3 小時 新手友好度 82/100
維護者通常 1 天內回覆
-
awk: `-f missing-file` and `--source` panic可能已有人在做 @VanshajPoonia 於 4 天前認領。 未關閉bug crash gnu-compat good first issue
難度 2/5 1-3 小時 新手友好度 80/100
維護者通常 1 天內回覆
相似的 Issue
-
難度 1/5 1 小時以內 新手友好度 62/100
維護者通常 1 天內回覆
-
難度 2/5 半天 新手友好度 62/100
維護者通常 1 天內回覆
-
code-quality parser
難度 2/5 1-3 小時 新手友好度 88/100
eventflux-io/eventflux#218 ·
維護者通常 1 天內回覆
-
StartSso docs say an option requires the built-in AuthnRequest renderer, which is now the only one未關閉documentation needs-triage
難度 1/5 1 小時以內 新手友好度 88/100
維護者通常 1 天內回覆
-
marketing
難度 2/5 半天 新手友好度 62/100
維護者通常 1 天內回覆