fix(testsuite): unit testing running

This commit is contained in:
matteo 2026-01-24 16:36:23 +01:00
parent 91806d926e
commit 79a73a23a0
5 changed files with 51 additions and 44 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