Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- ========================================
- = MUSL unit test suite for the PS4 =
- ========================================
- This application runs a suite of unit tests for MUSL for the PS4.
- The following tests will be ran:
- - Printf + variants
- - File operations
- - Heap (malloc/free)
- - Memory mapping (mmap/munmap)
- - String functions
- - Sockets
- - Data parsing
- - Memory operations
- - Math operations
- Starting unit tests with 9 sets...
- ========================================
- ----------------------------------------
- - Running test set: print -
- ----------------------------------------
- [+] Test 1/2: fprintf: working
- [+] Test 2/2: sprintf: working 0x00001337
- [+] Test 2/2: snprintf: working
- [*] Results: 2/2 tests passed.
- ----------------------------------------
- - Running test set: file ops -
- ----------------------------------------
- [+] Test 1/5: Attempting file write...
- [+] Test 2/: Attempting file read...
- [+] Test 3/4: Attempting fcntl...
- [+] Test 4/4: Attempting to open directory...
- [*] Results: 4/4 tests passed.
- ----------------------------------------
- - Running test set: heap alloc -
- ----------------------------------------
- [+] Test 1/3: Testing heap malloc(64)...
- [+] Allocated: 0x200190a20
- [+] Test 2/3: Testing write, read with val '0x00004141'
- [+] Value read: 0x00004141
- [+] Test 3/3: Testing heap free...
- [*] Results: 3/3 tests passed.
- ----------------------------------------
- - Running test set: memory mapping -
- ----------------------------------------
- [+] Test 1/3: Testing mmap...
- [+] Mapped: 0x200198000
- [+] Test 2/3: Testing write, read with val '0x00004141'
- [+] Value read: 0x00004141
- [+] Test 3/3: Testing munmap...
- [*] Results: 3/3 tests passed.
- ----------------------------------------
- - Running test set: string -
- ----------------------------------------
- [+] Test 1/7: strcmp 'test' with 'test' = 0
- [+] Test 2/7: strlen 'testing' = 7
- [+] Test 3/7: strcpy 'strcpy test' = strcpy test
- [+] Test 4/7: strcat 'hello ' and 'world!' = hello world!
- [+] Test 5/7: strstr 'test2' on 'test1 test2' = test2
- [+] Test 6/7: strerr(EINVAL) = Invalid argument
- [+] Test 7/7: strdup 'test' = test
- [*] Results: 7/7 tests passed.
- ----------------------------------------
- - Running test set: sockets -
- ----------------------------------------
- [+] Test 1/1: socket = 19
- [*] Results: 1/1 tests passed.
- ----------------------------------------
- - Running test set: parsing -
- ----------------------------------------
- [+] Test 1/3: atoi('1337') = 1337
- [+] Test 2/3: atof('41.41') = 41.410000
- [+] Test 3/3: atol('4294967296') = 4294967296
- [*] Results: 3/3 tests passed.
- ----------------------------------------
- - Running test set: memory operations -
- ----------------------------------------
- [+] Test 1/3: memcmp('test string a', 'test string a', 8) = 0
- [+] Test 1/3: memcmp('test string a', 'test string b', 8) = -1
- [+] Test 2/3: memcpy 'memcpy test' = memcpy test
- [+] Test 3/3: memset 0x42 @ buff[2-6] = 4141424242424141
- [*] Results: 3/3 tests passed.
- ----------------------------------------
- - Running test set: math operations -
- ----------------------------------------
- [+] Test 1/5: sqrt(16) = 4.000000
- [+] Test 2/5: round(13.37) = 13.000000
- [+] Test 3/5: pow(2, 16) = 65536.000000
- [+] Test 4/5: ceil(13.37) = 14.000000
- [+] Test 5/5: floor(41.61) = 41.000000
- [*] Results: 5/5 tests passed.
- ========================================
- 9/9 test sets passed. Hanging infinitely.
Add Comment
Please, Sign In to add comment