From f5ae3a5d8d7097daffbc584597c9b4613398b1cd Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Kha=C3=AFs=20COLIN?= Date: Tue, 11 Mar 2025 16:05:10 +0100 Subject: [PATCH] tests: add a test_ prefix to all files that contain actual tests This will make it easier to differentiate with utility files, as the next change will add sevral --- tests/Makefile | 14 +++++++------- ..._after_free.c => test_cmdlist_use_after_free.c} | 0 tests/{metacharacters.c => test_metacharacters.c} | 0 ..._command_lists.c => test_parse_command_lists.c} | 0 .../{parse_pipelines.c => test_parse_pipelines.c} | 0 ...arse_simple_cmds.c => test_parse_simple_cmds.c} | 0 tests/{quote_removal.c => test_quote_removal.c} | 0 tests/{word_splitting.c => test_word_splitting.c} | 0 8 files changed, 7 insertions(+), 7 deletions(-) rename tests/{cmdlist_use_after_free.c => test_cmdlist_use_after_free.c} (100%) rename tests/{metacharacters.c => test_metacharacters.c} (100%) rename tests/{parse_command_lists.c => test_parse_command_lists.c} (100%) rename tests/{parse_pipelines.c => test_parse_pipelines.c} (100%) rename tests/{parse_simple_cmds.c => test_parse_simple_cmds.c} (100%) rename tests/{quote_removal.c => test_quote_removal.c} (100%) rename tests/{word_splitting.c => test_word_splitting.c} (100%) diff --git a/tests/Makefile b/tests/Makefile index 56f3606..a00e213 100644 --- a/tests/Makefile +++ b/tests/Makefile @@ -6,14 +6,14 @@ rawtests = \ test_here_doc \ test_wordlist_idx \ test_redirection_parsing \ - quote_removal \ - cmdlist_use_after_free \ - metacharacters \ - parse_command_lists \ - parse_pipelines \ - parse_simple_cmds \ + test_quote_removal \ + test_cmdlist_use_after_free \ + test_metacharacters \ + test_parse_command_lists \ + test_parse_pipelines \ + test_parse_simple_cmds \ test_env_manip \ - word_splitting \ + test_word_splitting \ ifeq ($(CFLAGS),) CFLAGS = -Wall -Wextra -Werror -g diff --git a/tests/cmdlist_use_after_free.c b/tests/test_cmdlist_use_after_free.c similarity index 100% rename from tests/cmdlist_use_after_free.c rename to tests/test_cmdlist_use_after_free.c diff --git a/tests/metacharacters.c b/tests/test_metacharacters.c similarity index 100% rename from tests/metacharacters.c rename to tests/test_metacharacters.c diff --git a/tests/parse_command_lists.c b/tests/test_parse_command_lists.c similarity index 100% rename from tests/parse_command_lists.c rename to tests/test_parse_command_lists.c diff --git a/tests/parse_pipelines.c b/tests/test_parse_pipelines.c similarity index 100% rename from tests/parse_pipelines.c rename to tests/test_parse_pipelines.c diff --git a/tests/parse_simple_cmds.c b/tests/test_parse_simple_cmds.c similarity index 100% rename from tests/parse_simple_cmds.c rename to tests/test_parse_simple_cmds.c diff --git a/tests/quote_removal.c b/tests/test_quote_removal.c similarity index 100% rename from tests/quote_removal.c rename to tests/test_quote_removal.c diff --git a/tests/word_splitting.c b/tests/test_word_splitting.c similarity index 100% rename from tests/word_splitting.c rename to tests/test_word_splitting.c