SpecterDev

PS4 MUSL test results

May 22nd, 2020
429
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 3.48 KB | None | 0 0
  1. ========================================
  2. = MUSL unit test suite for the PS4 =
  3. ========================================
  4.  
  5. This application runs a suite of unit tests for MUSL for the PS4.
  6. The following tests will be ran:
  7.  
  8. - Printf + variants
  9. - File operations
  10. - Heap (malloc/free)
  11. - Memory mapping (mmap/munmap)
  12. - String functions
  13. - Sockets
  14. - Data parsing
  15. - Memory operations
  16. - Math operations
  17.  
  18. Starting unit tests with 9 sets...
  19. ========================================
  20.  
  21. ----------------------------------------
  22. - Running test set: print -
  23. ----------------------------------------
  24. [+] Test 1/2: fprintf: working
  25. [+] Test 2/2: sprintf: working 0x00001337
  26. [+] Test 2/2: snprintf: working
  27. [*] Results: 2/2 tests passed.
  28.  
  29. ----------------------------------------
  30. - Running test set: file ops -
  31. ----------------------------------------
  32. [+] Test 1/5: Attempting file write...
  33. [+] Test 2/: Attempting file read...
  34. [+] Test 3/4: Attempting fcntl...
  35. [+] Test 4/4: Attempting to open directory...
  36. [*] Results: 4/4 tests passed.
  37.  
  38. ----------------------------------------
  39. - Running test set: heap alloc -
  40. ----------------------------------------
  41. [+] Test 1/3: Testing heap malloc(64)...
  42. [+] Allocated: 0x200190a20
  43. [+] Test 2/3: Testing write, read with val '0x00004141'
  44. [+] Value read: 0x00004141
  45. [+] Test 3/3: Testing heap free...
  46. [*] Results: 3/3 tests passed.
  47.  
  48. ----------------------------------------
  49. - Running test set: memory mapping -
  50. ----------------------------------------
  51. [+] Test 1/3: Testing mmap...
  52. [+] Mapped: 0x200198000
  53. [+] Test 2/3: Testing write, read with val '0x00004141'
  54. [+] Value read: 0x00004141
  55. [+] Test 3/3: Testing munmap...
  56. [*] Results: 3/3 tests passed.
  57.  
  58. ----------------------------------------
  59. - Running test set: string -
  60. ----------------------------------------
  61. [+] Test 1/7: strcmp 'test' with 'test' = 0
  62. [+] Test 2/7: strlen 'testing' = 7
  63. [+] Test 3/7: strcpy 'strcpy test' = strcpy test
  64. [+] Test 4/7: strcat 'hello ' and 'world!' = hello world!
  65. [+] Test 5/7: strstr 'test2' on 'test1 test2' = test2
  66. [+] Test 6/7: strerr(EINVAL) = Invalid argument
  67. [+] Test 7/7: strdup 'test' = test
  68. [*] Results: 7/7 tests passed.
  69.  
  70. ----------------------------------------
  71. - Running test set: sockets -
  72. ----------------------------------------
  73. [+] Test 1/1: socket = 19
  74. [*] Results: 1/1 tests passed.
  75.  
  76. ----------------------------------------
  77. - Running test set: parsing -
  78. ----------------------------------------
  79. [+] Test 1/3: atoi('1337') = 1337
  80. [+] Test 2/3: atof('41.41') = 41.410000
  81. [+] Test 3/3: atol('4294967296') = 4294967296
  82. [*] Results: 3/3 tests passed.
  83.  
  84. ----------------------------------------
  85. - Running test set: memory operations -
  86. ----------------------------------------
  87. [+] Test 1/3: memcmp('test string a', 'test string a', 8) = 0
  88. [+] Test 1/3: memcmp('test string a', 'test string b', 8) = -1
  89. [+] Test 2/3: memcpy 'memcpy test' = memcpy test
  90. [+] Test 3/3: memset 0x42 @ buff[2-6] = 4141424242424141
  91. [*] Results: 3/3 tests passed.
  92.  
  93. ----------------------------------------
  94. - Running test set: math operations -
  95. ----------------------------------------
  96. [+] Test 1/5: sqrt(16) = 4.000000
  97. [+] Test 2/5: round(13.37) = 13.000000
  98. [+] Test 3/5: pow(2, 16) = 65536.000000
  99. [+] Test 4/5: ceil(13.37) = 14.000000
  100. [+] Test 5/5: floor(41.61) = 41.000000
  101. [*] Results: 5/5 tests passed.
  102.  
  103. ========================================
  104. 9/9 test sets passed. Hanging infinitely.
Add Comment
Please, Sign In to add comment