fix(testsuite): unit testing running
This commit is contained in:
parent
91806d926e
commit
79a73a23a0
5 changed files with 51 additions and 44 deletions
|
|
@ -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)
|
||||
|
||||
|
|
|
|||
|
|
@ -4,6 +4,7 @@
|
|||
#include <stdbool.h>
|
||||
#include <stddef.h>
|
||||
|
||||
#include "../utils/ast/ast.h"
|
||||
#include "../utils/hash_map/hash_map.h"
|
||||
|
||||
/**
|
||||
|
|
|
|||
|
|
@ -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
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue