summaryrefslogtreecommitdiff
path: root/test
diff options
context:
space:
mode:
authorOskar <>2024-03-22 17:33:55 +0100
committerOskar <>2024-03-22 17:33:55 +0100
commiteb0556f79fec4b7faaa374c702aa78bceb089334 (patch)
treeee1fd3c27589d74df70e76eed7647fb5a5b81e81 /test
parent6f162676864f6972c302ecab71e44149fa039551 (diff)
Fixed some more stuff
Diffstat (limited to 'test')
-rw-r--r--test/Makefile13
-rw-r--r--test/validate_check_imm.c2
-rw-r--r--test/validate_check_p_m.c2
-rw-r--r--test/validate_plus_continue_tests.c2
4 files changed, 14 insertions, 5 deletions
diff --git a/test/Makefile b/test/Makefile
index 3bdbc68..0e0e3c4 100644
--- a/test/Makefile
+++ b/test/Makefile
@@ -1,4 +1,7 @@
MAKEFLAGS += -s
+CFLAGS_ALLTESTS=-fsanitize=address -Wfatal-errors -Wall -Wextra -g
+CFLAGS_SMODE=-fsanitize=address -Wfatal-errors -Wall -Werror -Wextra -g
+CC=gcc
all: 7ed-TESTING
7ed-TESTING:
@@ -17,13 +20,13 @@ clean:
smode:
echo "CC input.c ---> smode"
- cd .. && gcc -Wfatal-errors -Wall -Werror -Wextra -g -fsanitize=address input.c i_validation.c -o test/smode
+ cd .. && $(CC) $(CFLAGS_SMODE) input.c i_validation.c -o test/smode
alltests:
cd .. && make tests
- gcc validate_check_p_m.c ../i_validation.c -o vcpm
+ $(CC) $(CFLAGS_ALLTESTS) validate_check_p_m.c ../i_validation.c -o vcpm
echo "CC ---> vcpm"
- gcc validate_check_imm.c ../i_validation.c -o vcimm
+ $(CC) $(CFLAGS_ALLTESTS) validate_check_imm.c ../i_validation.c -o vcimm
echo "CC ---> vcimm"
- gcc validate_plus_continue_tests.c ../i_validation.c -o vpct
- echo "CC ---> vpct" \ No newline at end of file
+ $(CC) $(CFLAGS_ALLTESTS) validate_plus_continue_tests.c ../i_validation.c -o vpct
+ echo "CC ---> vpct"
diff --git a/test/validate_check_imm.c b/test/validate_check_imm.c
index 57c0cdb..789cf70 100644
--- a/test/validate_check_imm.c
+++ b/test/validate_check_imm.c
@@ -25,4 +25,6 @@ int main () {
printf("valid plusonly\n");
}
+ return 0;
+
} \ No newline at end of file
diff --git a/test/validate_check_p_m.c b/test/validate_check_p_m.c
index 5a4c135..fe54bd9 100644
--- a/test/validate_check_p_m.c
+++ b/test/validate_check_p_m.c
@@ -32,4 +32,6 @@ int main () {
printf("valid\n");
}
+ return 0;
+
} \ No newline at end of file
diff --git a/test/validate_plus_continue_tests.c b/test/validate_plus_continue_tests.c
index 6817203..b8c9769 100644
--- a/test/validate_plus_continue_tests.c
+++ b/test/validate_plus_continue_tests.c
@@ -25,4 +25,6 @@ int main () {
printf("valid\n");
}
+ return 0;
+
} \ No newline at end of file