Merge branch 'testsuite' into dev

This commit is contained in:
matteo 2026-01-24 17:49:07 +01:00
commit 668bba5b02
6 changed files with 96 additions and 85 deletions

View file

@ -35,7 +35,13 @@ check_PROGRAMS = testsuite
#testsuite_CFLAGS += $(CRITERION_CFLAGS)
testsuite_SOURCES = ../tests/unit/lexer/lexer_tests.c \
../tests/unit/utils/utils_tests.c
../tests/unit/utils/utils_tests.c \
../tests/unit/expansion/expand.c \
../tests/unit/expansion/parse_var.c \
../tests/unit/io_backend/io_backend.c \
../tests/unit/utils/args.c \
../tests/unit/utils/hash_map.c \
../tests/unit/utils/insert_into.c
testsuite_CPPFLAGS = $(42sh_CPPFLAGS)

View file

@ -4,6 +4,7 @@
#include <stdbool.h>
#include <stddef.h>
#include "../utils/ast/ast.h"
#include "../utils/hash_map/hash_map.h"
/**

View file

@ -111,7 +111,7 @@ int main(int argc, char **argv)
// init lexer context
struct lexer_context ctx = { 0 };
return_code = main_loop(&ctx, &options,vars);
return_code = main_loop(&ctx, &options, vars);
// === free