maxishell
Implementation of a shell for Linux-like systems
Loading...
Searching...
No Matches
test.h File Reference
#include "shell.h"
Include dependency graph for test.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Functions

void env_tests (t_ms_data *data, char **envp)
 
void pipe_tests (t_ms_data *data)
 

Function Documentation

◆ env_tests()

void env_tests ( t_ms_data data,
char **  envp 
)

Definition at line 25 of file env_test.c.

26{
27 ft_printf("\nENV TESTS\n");
28 test_init_env(data, envp);
29 test_get_env(data, envp);
30 test_set_env(data, envp);
31 test_unset_env(data);
32 free_env(data->envp);
33}
void free_env(t_env *envp)
Definition utils.c:73
void test_set_env(t_ms_data *data, char **envp)
Definition env_test.c:72
void test_get_env(t_ms_data *data, char **envp)
Definition env_test.c:57
void test_unset_env(t_ms_data *data)
Definition env_test.c:88
void test_init_env(t_ms_data *data, char **envp)
Definition env_test.c:35
int ft_printf(const char *format,...)
Definition ft_printf.c:37
t_env * envp
Definition shell.h:24

References s_ms_data::envp, free_env(), ft_printf(), test_get_env(), test_init_env(), test_set_env(), and test_unset_env().

Referenced by main().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ pipe_tests()

void pipe_tests ( t_ms_data data)

Definition at line 22 of file pipe_test.c.

23{
24 ft_printf("\nPIPE TESTS\n");
26 ft_printf("\033[0m");
27 ft_printf("\033[0;32m");
28 ft_printf("pipe_test -> OK\n");
29 ft_printf("\033[0m");
30}
void builtin_pipe_test(t_ms_data *data)
Definition pipe_test.c:32

References builtin_pipe_test(), and ft_printf().

Referenced by main().

Here is the call graph for this function:
Here is the caller graph for this function: