added test

This commit is contained in:
Guilleag01
2025-02-18 21:31:19 +01:00
parent 4565b9cc3e
commit b4f683a812
10 changed files with 42 additions and 0 deletions

BIN
test/build/dir/test1.o Normal file

Binary file not shown.

BIN
test/build/dir/test2.o Normal file

Binary file not shown.

BIN
test/build/main.o Normal file

Binary file not shown.

8
test/c_config.toml Normal file
View File

@@ -0,0 +1,8 @@
[general]
target = "main"
main = "main.c"
[build]
build_dir = "build"
cc = "gcc"
cflags = "-Wall"

8
test/dir/test1.c Normal file
View File

@@ -0,0 +1,8 @@
#include "test1.h"
#include "test2.h"
#include <stdio.h>
void test1() {
printf("Hola desde test1\n");
test2();
}

6
test/dir/test1.h Normal file
View File

@@ -0,0 +1,6 @@
#ifndef TEST1_HEADER
#define TEST1_HEADER
void test1();
#endif

6
test/dir/test2.c Normal file
View File

@@ -0,0 +1,6 @@
#include "test2.h"
#include <stdio.h>
void test2() {
printf("Hola desde test2\n");
}

6
test/dir/test2.h Normal file
View File

@@ -0,0 +1,6 @@
#ifndef TEST2_HEADER
#define TEST2_HEADER
void test2();
#endif

BIN
test/main Executable file

Binary file not shown.

8
test/main.c Normal file
View File

@@ -0,0 +1,8 @@
#include <stdio.h>
#include "test1.h"
int main() {
printf("Hola desde main\n");
test1();
}