Changeset a000878c in mainline for uspace/app/tester
- Timestamp:
- 2010-02-25T19:11:25Z (16 years ago)
- Branches:
- lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
- Children:
- 958de16
- Parents:
- a634485
- Location:
- uspace/app/tester
- Files:
-
- 19 edited
-
console/console1.c (modified) (2 diffs)
-
fault/fault1.c (modified) (1 diff)
-
fault/fault2.c (modified) (1 diff)
-
fault/fault3.c (modified) (1 diff)
-
ipc/connect.c (modified) (1 diff)
-
ipc/ping_pong.c (modified) (1 diff)
-
ipc/register.c (modified) (1 diff)
-
loop/loop1.c (modified) (1 diff)
-
mm/malloc1.c (modified) (3 diffs)
-
print/print1.c (modified) (1 diff)
-
print/print2.c (modified) (1 diff)
-
print/print3.c (modified) (1 diff)
-
print/print4.c (modified) (1 diff)
-
stdio/stdio1.c (modified) (1 diff)
-
stdio/stdio2.c (modified) (1 diff)
-
tester.c (modified) (1 diff)
-
tester.h (modified) (1 diff)
-
thread/thread1.c (modified) (1 diff)
-
vfs/vfs1.c (modified) (3 diffs)
Legend:
- Unmodified
- Added
- Removed
-
uspace/app/tester/console/console1.c
ra634485 ra000878c 36 36 #include "../tester.h" 37 37 38 const char *color_name[] = {38 static const char *color_name[] = { 39 39 [COLOR_BLACK] = "black", 40 40 [COLOR_BLUE] = "blue", … … 47 47 }; 48 48 49 c har *test_console1(void)49 const char *test_console1(void) 50 50 { 51 51 if (!test_quiet) { -
uspace/app/tester/fault/fault1.c
ra634485 ra000878c 30 30 #include "../tester.h" 31 31 32 c har *test_fault1(void)32 const char *test_fault1(void) 33 33 { 34 34 ((int *)(0))[1] = 0; -
uspace/app/tester/fault/fault2.c
ra634485 ra000878c 32 32 typedef int __attribute__((may_alias)) aliasing_int; 33 33 34 c har *test_fault2(void)34 const char *test_fault2(void) 35 35 { 36 36 volatile long long var; -
uspace/app/tester/fault/fault3.c
ra634485 ra000878c 30 30 #include <stdlib.h> 31 31 32 c har *test_fault3(void)32 const char *test_fault3(void) 33 33 { 34 34 abort(); -
uspace/app/tester/ipc/connect.c
ra634485 ra000878c 39 39 } 40 40 41 c har *test_connect(void)41 const char *test_connect(void) 42 42 { 43 43 TPRINTF("Connecting to %u...", IPC_TEST_SERVICE); -
uspace/app/tester/ipc/ping_pong.c
ra634485 ra000878c 38 38 #define COUNT_GRANULARITY 100 39 39 40 c har *test_ping_pong(void)40 const char *test_ping_pong(void) 41 41 { 42 42 TPRINTF("Pinging ns server for %d seconds...", DURATION_SECS); -
uspace/app/tester/ipc/register.c
ra634485 ra000878c 74 74 } 75 75 76 c har *test_register(void)76 const char *test_register(void) 77 77 { 78 78 async_set_client_connection(client_connection); -
uspace/app/tester/loop/loop1.c
ra634485 ra000878c 31 31 #include "../tester.h" 32 32 33 c har *test_loop1(void)33 const char *test_loop1(void) 34 34 { 35 35 TPRINTF("Looping..."); -
uspace/app/tester/mm/malloc1.c
ra634485 ra000878c 73 73 74 74 typedef struct { 75 c har *name;75 const char *name; 76 76 sp_term_cond_s cond; 77 77 sp_action_prob_s prob; … … 90 90 91 91 typedef struct { 92 c har *name;92 const char *name; 93 93 ph_alloc_size_s alloc; 94 94 subphase_s *subphases; … … 628 628 } 629 629 630 c har *test_malloc1(void)630 const char *test_malloc1(void) 631 631 { 632 632 init_mem(); -
uspace/app/tester/print/print1.c
ra634485 ra000878c 31 31 #include "../tester.h" 32 32 33 c har *test_print1(void)33 const char *test_print1(void) 34 34 { 35 35 TPRINTF("Testing printf(\"%%*.*s\", 5, 3, \"text\"):\n"); -
uspace/app/tester/print/print2.c
ra634485 ra000878c 31 31 #include "../tester.h" 32 32 33 c har *test_print2(void)33 const char *test_print2(void) 34 34 { 35 35 TPRINTF("Testing printf(\"%%c %%3.2c %%-3.2c %%2.3c %%-2.3c\", 'a', 'b', 'c', 'd', 'e'):\n"); -
uspace/app/tester/print/print3.c
ra634485 ra000878c 34 34 #define BUFFER_SIZE 32 35 35 36 c har *test_print3(void)36 const char *test_print3(void) 37 37 { 38 38 char buffer[BUFFER_SIZE]; -
uspace/app/tester/print/print4.c
ra634485 ra000878c 31 31 #include "../tester.h" 32 32 33 c har *test_print4(void)33 const char *test_print4(void) 34 34 { 35 35 TPRINTF("ASCII printable characters (32 - 127) using printf(\"%%c\") and printf(\"%%lc\"):\n"); -
uspace/app/tester/stdio/stdio1.c
ra634485 ra000878c 36 36 static char buf[BUF_SIZE + 1]; 37 37 38 c har *test_stdio1(void)38 const char *test_stdio1(void) 39 39 { 40 40 FILE *file; 41 c har *file_name = "/readme";41 const char *file_name = "/readme"; 42 42 43 43 TPRINTF("Open file \"%s\"...", file_name); -
uspace/app/tester/stdio/stdio2.c
ra634485 ra000878c 32 32 #include "../tester.h" 33 33 34 c har *test_stdio2(void)34 const char *test_stdio2(void) 35 35 { 36 36 FILE *file; 37 c har *file_name = "/test";37 const char *file_name = "/test"; 38 38 39 39 TPRINTF("Open file \"%s\" for writing...", file_name); -
uspace/app/tester/tester.c
ra634485 ra000878c 69 69 { 70 70 /* Execute the test */ 71 c har *ret = test->entry();71 const char *ret = test->entry(); 72 72 73 73 if (ret == NULL) { -
uspace/app/tester/tester.h
ra634485 ra000878c 54 54 } 55 55 56 typedef c har *(*test_entry_t)(void);56 typedef const char *(*test_entry_t)(void); 57 57 58 58 typedef struct { 59 c har *name;60 c har *desc;59 const char *name; 60 const char *desc; 61 61 test_entry_t entry; 62 62 bool safe; 63 63 } test_t; 64 64 65 extern c har *test_thread1(void);66 extern c har *test_print1(void);67 extern c har *test_print2(void);68 extern c har *test_print3(void);69 extern c har *test_print4(void);70 extern c har *test_console1(void);71 extern c har *test_stdio1(void);72 extern c har *test_stdio2(void);73 extern c har *test_fault1(void);74 extern c har *test_fault2(void);75 extern c har *test_fault3(void);76 extern c har *test_vfs1(void);77 extern c har *test_ping_pong(void);78 extern c har *test_register(void);79 extern c har *test_connect(void);80 extern c har *test_loop1(void);81 extern c har *test_malloc1(void);65 extern const char *test_thread1(void); 66 extern const char *test_print1(void); 67 extern const char *test_print2(void); 68 extern const char *test_print3(void); 69 extern const char *test_print4(void); 70 extern const char *test_console1(void); 71 extern const char *test_stdio1(void); 72 extern const char *test_stdio2(void); 73 extern const char *test_fault1(void); 74 extern const char *test_fault2(void); 75 extern const char *test_fault3(void); 76 extern const char *test_vfs1(void); 77 extern const char *test_ping_pong(void); 78 extern const char *test_register(void); 79 extern const char *test_connect(void); 80 extern const char *test_loop1(void); 81 extern const char *test_malloc1(void); 82 82 83 83 extern test_t tests[]; -
uspace/app/tester/thread/thread1.c
ra634485 ra000878c 50 50 } 51 51 52 c har *test_thread1(void)52 const char *test_thread1(void) 53 53 { 54 54 unsigned int i; -
uspace/app/tester/vfs/vfs1.c
ra634485 ra000878c 54 54 static char text[] = "Lorem ipsum dolor sit amet, consectetur adipisicing elit"; 55 55 56 static c har *read_root(void)56 static const char *read_root(void) 57 57 { 58 58 TPRINTF("Opening the root directory..."); … … 73 73 } 74 74 75 c har *test_vfs1(void)75 const char *test_vfs1(void) 76 76 { 77 77 if (mkdir(MOUNT_POINT, 0) != 0) … … 121 121 close(fd0); 122 122 123 c har *rv = read_root();123 const char *rv = read_root(); 124 124 if (rv != NULL) 125 125 return rv;
Note:
See TracChangeset
for help on using the changeset viewer.
