Repository navigation
Run unit tests on iOS - #3989
Conversation
|
@1ec5 how can we run this on Bitrise? There's now a new target called "test" in the default Xcode project for iOS. That target works on both actual devices and the simulator and all tests are passing. @jfirebaugh There are two OfflineDatabase tests that fail on iOS: |
The Bitrise steps are defined in bitrise.yml. It essentially does two things: it runs |
|
The eviction tests were tuned for a database page size of 1024, while on iOS the page size is 4096. I pushed a change that makes it work for both. |
|
Ah interesting. Reading the patch, it's unclear to me how this would fix the issue. Can you please explain? If our eviction is based on page size, we should enforce page size with |
|
The eviction algorithm tries to keep the total size of the database below a specified limit. The tests were setting this limit to A better way to write this test would be to query the page size and minimum number of pages dynamically, and then create a fresh database with an eviction limit greater than the product of those two. But I took the lazier route of just bumping the numbers. |
cc86742 to
2fc95e9
Compare
2fc95e9 to
5f0406d
Compare
boost's crc64 breaks on iOS
also adds a EAGL implementation for iOS
5f0406d to
220a57b
Compare
Follow up to #2150