util/run-gnu-testsuite.sh: shell-script tests run `../gawk` instead of our binary

Abierto
#166 0 comentarios 0 reacciones 0 asignados Ver en GitHub

Los mantenedores suelen responder en 1 día

Nadie ha tomado este issue todavía.

Evaluación

Dificultad
3/5
Tiempo estimado
1-2 días
Aptitud para principiantes
64/100
Tipo de issue
Error
Claridad
Bien especificado
Estado de actividad
Activo
Stack tecnológico
rust, shell
Área
testing

Línea de trabajo

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.

Escrito por el modelo de indexación a partir del texto del issue.

Descripción

bug good first 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).

Lenguaje dominante
Rust
Estrellas
31
Forks
13
Merge medio
23 h 42 min
PR fusionados (30 d)
29

Preparar el entorno

Este proyecto no incluye contenedor de desarrollo, Dockerfile ni guía de contribución, así que la configuración corre por tu cuenta: empieza por su README y consulta nuestra guía para la primera contribución para los pasos generales.

Primeros pasos

  1. Lee el issue completo y luego la guía de contribución del proyecto.
  2. Comenta en el issue que vas a ocuparte — evita que dos personas hagan lo mismo.
  3. Haz un fork del repositorio y trabaja en una rama.
  4. Abre un pull request que haga referencia al número del issue.

Más de uutils/awk

Todos los issues de uutils/awk

Issues similares

Más issues de Rust

Recibe los nuevos issues en tu correo

Un resumen breve de issues de GitHub para principiantes.