@@ -279,6 +279,22 @@ const char *timeout_messages[] = {
279279
280280#endif
281281
282+ static const char * FOSSIL_TEST_OPTIONS [] = {
283+ "--version - Displays the current version of Fossil Test\n" ,
284+ "--help - Shows help message with usage\n" ,
285+ "--info - Displays detailed information about the test run\n" ,
286+ };
287+
288+ static const char * FOSSIL_TEST_COMMANDS [] = {
289+ "reverse [enable|disable] - Enables or disables reverse order of test execution\n" ,
290+ "repeat [count] - Repeats the test suite a specified number of times\n" ,
291+ "shuffle [enable|disable] - Enables or disables shuffling of test execution order\n" ,
292+ };
293+
294+ static const char * FOSSIL_TEST_VERSION = "1.1.4" ; // Version of Fossil Test
295+ static const char * FOSSIL_TEST_AUTHOR = "Michael Gene Brockus (Dreamer)" ; // Author of Fossil Test
296+ static const char * FOSSIL_TEST_LICENSE = "Mozilla Public License 2.0" ; // License of Fossil Test
297+
282298jmp_buf test_jump_buffer ; // This will hold the jump buffer for longjmp
283299static int _ASSERT_COUNT = 0 ; // Counter for the number of assertions
284300
@@ -308,24 +324,25 @@ fossil_options_t init_options(void) {
308324}
309325
310326void usage_info (void ) {
311- printf (FOSSIL_TEST_COLOR_CYAN FOSSIL_TEST_ATTR_ITATIC "Usage: fossil [options] [command]\n" FOSSIL_TEST_COLOR_RESET );
312- printf (FOSSIL_TEST_COLOR_BLUE FOSSIL_TEST_ATTR_BOLD "===================================================================\n" FOSSIL_TEST_COLOR_RESET );
313- printf (FOSSIL_TEST_COLOR_CYAN FOSSIL_TEST_ATTR_BOLD "Options:\n" FOSSIL_TEST_COLOR_RESET );
314- printf (FOSSIL_TEST_COLOR_CYAN FOSSIL_TEST_ATTR_ITATIC " --version\t\tDisplays the current version of Fossil Test\n" FOSSIL_TEST_COLOR_RESET );
315- printf (FOSSIL_TEST_COLOR_CYAN FOSSIL_TEST_ATTR_ITATIC " --help\t\tShows help message with usage\n" FOSSIL_TEST_COLOR_RESET );
316- printf (FOSSIL_TEST_COLOR_CYAN FOSSIL_TEST_ATTR_ITATIC " --info\t\tDisplays detailed information about the test run.\n" FOSSIL_TEST_COLOR_RESET );
317- printf (FOSSIL_TEST_COLOR_CYAN FOSSIL_TEST_ATTR_BOLD "Commands:\n" FOSSIL_TEST_COLOR_RESET );
318- printf (FOSSIL_TEST_COLOR_CYAN FOSSIL_TEST_ATTR_ITATIC " reverse [enable|disable]\tEnables or disables reverse order of test execution\n" FOSSIL_TEST_COLOR_RESET );
319- printf (FOSSIL_TEST_COLOR_CYAN FOSSIL_TEST_ATTR_ITATIC " repeat [count]\t\tRepeats the test suite a specified number of times\n" FOSSIL_TEST_COLOR_RESET );
320- printf (FOSSIL_TEST_COLOR_CYAN FOSSIL_TEST_ATTR_ITATIC " shuffle [enable|disable]\tEnables or disables shuffling of test execution order\n" FOSSIL_TEST_COLOR_RESET );
321- printf (FOSSIL_TEST_COLOR_BLUE FOSSIL_TEST_ATTR_BOLD "===================================================================\n" FOSSIL_TEST_COLOR_RESET );
327+ puts (FOSSIL_TEST_COLOR_CYAN FOSSIL_TEST_ATTR_ITATIC "Usage: fossil [options] [command]" FOSSIL_TEST_COLOR_RESET );
328+ puts (FOSSIL_TEST_COLOR_BLUE FOSSIL_TEST_ATTR_BOLD "===================================================================" FOSSIL_TEST_COLOR_RESET );
329+ puts (FOSSIL_TEST_COLOR_CYAN FOSSIL_TEST_ATTR_BOLD "\tOptions:" FOSSIL_TEST_COLOR_RESET );
330+ for (size_t i = 0 ; i < sizeof (FOSSIL_TEST_OPTIONS ) / sizeof (FOSSIL_TEST_OPTIONS [0 ]); i ++ ) {
331+ printf (FOSSIL_TEST_COLOR_CYAN FOSSIL_TEST_ATTR_ITATIC "\t>\t%s" FOSSIL_TEST_COLOR_RESET , FOSSIL_TEST_OPTIONS [i ]);
332+ }
333+
334+ puts (FOSSIL_TEST_COLOR_CYAN FOSSIL_TEST_ATTR_BOLD "\tCommands:" FOSSIL_TEST_COLOR_RESET );
335+ for (size_t i = 0 ; i < sizeof (FOSSIL_TEST_COMMANDS ) / sizeof (FOSSIL_TEST_COMMANDS [0 ]); i ++ ) {
336+ printf (FOSSIL_TEST_COLOR_CYAN FOSSIL_TEST_ATTR_ITATIC "\t>\t%s" FOSSIL_TEST_COLOR_RESET , FOSSIL_TEST_COMMANDS [i ]);
337+ }
338+ puts (FOSSIL_TEST_COLOR_BLUE FOSSIL_TEST_ATTR_BOLD "===================================================================" FOSSIL_TEST_COLOR_RESET );
322339}
323340
324341void version_info (void ) {
325- printf (FOSSIL_TEST_COLOR_BLUE FOSSIL_TEST_ATTR_BOLD "Fossil Logic Test Framework\n " );
326- printf (FOSSIL_TEST_COLOR_CYAN FOSSIL_TEST_ATTR_ITATIC "Version: 1.1.4 \n" );
327- printf (FOSSIL_TEST_COLOR_CYAN FOSSIL_TEST_ATTR_ITATIC "Author: Michael Gene Brockus (Dreamer) \n" );
328- printf (FOSSIL_TEST_COLOR_CYAN FOSSIL_TEST_ATTR_ITATIC "License: Mozila Public License 2.0 \n" );
342+ puts (FOSSIL_TEST_COLOR_BLUE FOSSIL_TEST_ATTR_BOLD "Fossil Logic Test Framework" );
343+ printf (FOSSIL_TEST_COLOR_CYAN FOSSIL_TEST_ATTR_ITATIC "\tVersion: %s \n" , FOSSIL_TEST_VERSION );
344+ printf (FOSSIL_TEST_COLOR_CYAN FOSSIL_TEST_ATTR_ITATIC "\tAuthor: %s \n" , FOSSIL_TEST_AUTHOR );
345+ printf (FOSSIL_TEST_COLOR_CYAN FOSSIL_TEST_ATTR_ITATIC "\tLicense: %s \n" , FOSSIL_TEST_LICENSE );
329346}
330347
331348// Parse command-line arguments
0 commit comments