Граф коммитов

24 Коммитов

Автор SHA1 Сообщение Дата
Nikita Patskov 95db16339a Refactored integration tests
Summary:
These test binaries should not be in idb folder in fbobjc
Moving them to fixtures folder of listing target

Reviewed By: jbardini

Differential Revision: D43305011

fbshipit-source-id: 4bdf2ea6c6f0cdb4fd6bf259b179005de911f6c1
2023-02-15 09:56:45 -08:00
Nikita Patskov ff90440c0a Implement method extraction for `objc_reference_method`s
Summary:
There are two types of objc methods declarations.
        Big:
            `objc_method` with 3 fields by 8 bit.
            It contains absolute references (file offset from beginning of file)
            to information and we simply can extract reference and fetch the data.
        Example:
            `Name: address 0x00001234, value 0x00FCFF18` -> we can just fetch method name from `0x00FCFF18`

        Small:
            `objc_relative_method` with 3 fields by 4 bit.
            It contains relative references (file offset from itself's declaration).
            To get info by relative offset we need to take value of reference,
            add this to offset of reference itself and then fetch the data.
        Example:
            `Name: address 0x00001234, value 0x00FCFF18` -> we should `0x00001234 + 0x00FCFF18 = 0xFD114C`
            and then we can fetch method name from `0xFD114C`

Differential Revision: D40382051

fbshipit-source-id: 978d2dd754c65fe81a9bcc981a4de1252be6bc51
2022-10-17 01:46:24 -07:00
Nikita Patskov 0e4e93bc3c Add MixedTests binary fixture
Summary: Add test fixture for static listing tests

Reviewed By: fgasperij

Differential Revision: D39015934

fbshipit-source-id: cf01aba05dce0570a7d5b89a61bb024571e9a350
2022-08-26 03:29:43 -07:00
Andres Suarez 43a3eccc13 Update copyright headers from Facebook to Meta
Reviewed By: aaronabramov

Differential Revision: D33357161

fbshipit-source-id: 3e27660d7eb63fd4a40c366d6b226cac694396d5
2021-12-29 18:51:28 -08:00
Lawrence Lomax c401fa9d7c Add Async Expectations to Unit Test Fixtures
Summary: Adds additional test methods for async expectation pass/fails. Useful for additional shim features that we want to ship.

Reviewed By: c-ryan747

Differential Revision: D26146934

fbshipit-source-id: d8c4453b963d80b3e43220d7c2d629e0dd007e24
2021-02-03 09:17:11 -08:00
Lawrence Lomax 7a1b4a7dd1 Orthogonalize FBLaunchedApplication from FBLaunchedProcess
Summary:
We've never had the ability to consistently get the exit status of a launched application in the same way as we can for launched binaries. This relates to the richness of the APIs available for doing so. For mac and iOS sim tasks we will always get the value that is returned in `waitpid(2)` which is a bitmask containing both the exit code and the signal. This is not true for applications.

As such, it is misleading to have an `exitCode` future that may well "faked". Instead of doing this, let's constrain the interface to the actual implementations and keep a separate interface for the process that we can expand in the future.

Reviewed By: c-ryan747

Differential Revision: D26099131

fbshipit-source-id: 5490800f8167f30e732e3df61acd28ec00aa57e5
2021-02-01 01:23:12 -08:00
Adam Ernst 0996f9da8b Codemod to beginBackgroundTaskWithName:expirationHandler:
Summary: This applies all the lint suggestions from my new lint that enforces you use the name variant.

Reviewed By: naftaly

Differential Revision: D21594212

fbshipit-source-id: 25a5d2089b532ea8635e0ef313b39daa58a842e9
2020-05-15 09:14:00 -07:00
Lawrence Lomax a04ddcd320 Fix TableSearch.app fixture on iOS 13
Summary: We need the bundle short version

Reviewed By: zeyadsalloum

Differential Revision: D19831097

fbshipit-source-id: f3f423df43bdc3e6570d027a35062de217758975
2020-02-11 03:54:01 -08:00
Andres Suarez 68dc6fd7c6 Yearless license header
Differential Revision: D18292977

fbshipit-source-id: 726c66fe753450cc6500180bb8e158e66713ebd0
2019-11-03 13:03:11 -08:00
Zeyad Salloum 43fd9c5407 update iOSAppFixture.app bundle id
Reviewed By: c-ryan747

Differential Revision: D15134151

fbshipit-source-id: 405e2fd695c5fa239ac5106a274ea8909fa58c35
2019-04-29 15:58:18 -07:00
Lawrence Lomax 41d93dabe9 Add copyright headers in scripts
Summary: These need the header applied

Reviewed By: zeyadsalloum

Differential Revision: D14383785

fbshipit-source-id: 37de4864a47069e6ff92adc44c8c4339af013268
2019-03-08 04:10:56 -08:00
Lawrence Lomax ff8691e4d4 Re-license as MIT
Summary: $TITLE

Reviewed By: zeyadsalloum, JoelMarcey

Differential Revision: D14365624

fbshipit-source-id: 803f4b69f8df5c45ac02ded04a4fd8f61bd502d7
2019-03-08 01:10:44 -08:00
Callum Ryan 7f67791556 Add image fixture
Reviewed By: zeyadsalloum

Differential Revision: D13275603

fbshipit-source-id: d6c6052a9919b274c18b113488fa3de9e0a5c80c
2018-12-04 07:58:58 -08:00
Marek Cirkos 7ce7c61a75 Add FBTestRunnerApp binaries
Summary: Added binaries from previous diff

Reviewed By: antiarchit

Differential Revision: D8447284

fbshipit-source-id: f610a2f912ff2e2d0eaff38317ea9297c0a8d095
2018-06-18 06:52:50 -07:00
Marek Cirkos 6f2db35b62 Add FBTestRunner app to test fixtures
Summary:
Since new iOS is much more aggressive on killing apps, we cannot use random apps for our integrations tests anymore (as they get killed).

This diff adds app that uses some system hooks in order to avoid that (eg. by adding `unboundedTaskCompletion`, `continuous` as `UIBackgroundModes` in it's `Info.Plist`) and requesting background task via app delegate.

Reviewed By: antiarchit

Differential Revision: D8348520

fbshipit-source-id: e419774f09a30c57e0eedcb54efdaef10b2bfcc7
2018-06-18 06:52:49 -07:00
Marek Cirkos 62cb8dfd37 Add an app test binary bundle
Summary: Add an app test binary bundle as fixture of unit tests.

Reviewed By: antiarchit

Differential Revision: D6483514

fbshipit-source-id: 0b673a25b5a9f84645c3353f14c8704b9e741ed8
2017-12-07 03:21:49 -08:00
Marek Cirkos bac14c312a Add Mac OSX UITest fixtures
Summary: We can use them for XCUITest test exectiution on OSX

Reviewed By: lawrencelomax

Differential Revision: D6232327

fbshipit-source-id: afdeac6002d92cbb01eb311f018c29fd05f36e93
2017-12-06 01:51:02 -08:00
Marek Cirkos fda0729f4b Add Fixtures for XCUITest
Summary:
Added two fixtures for testing XCUITests:
1) XCUITest target application
2) XCUITest it self

Reviewed By: lawrencelomax

Differential Revision: D6232199

fbshipit-source-id: a2b4a231bb8c9f90a8286bc012c1badc047c5bd9
2017-11-09 14:11:44 -08:00
Lawrence Lomax 2e9d043354 Fat Binary for TableSearch.app
Summary: iOS11 requires a 64-bit slice. Updates the `TableSearch.app` fixture for tests, to be a fat-binary

Reviewed By: marekcirkos

Differential Revision: D6258515

fbshipit-source-id: f6aa741f9d068f33411bd5d3ee6453ac42e3b262
2017-11-07 02:06:27 -08:00
Lawrence Lomax be36350152 Re-Add Fixutres for a Stalling Test
Summary: This adds the necessary test methods in the Test Fixture. This can then be used for testing stalling.

Reviewed By: marekcirkos

Differential Revision: D4232783

fbshipit-source-id: 99498cdc88f8cafd6a61eacec4a40632bff3062b
2016-11-28 06:34:09 -08:00
Lawrence Lomax a2071fed73 Revert fbxctest changes
Summary: There are is some occasional flakyness in listing tests. Revert for the time being.

Differential Revision: D4161692

fbshipit-source-id: 6397ec10a841cac030e9c9e0e0403ab3f23fe274
2016-11-10 12:04:14 -08:00
Lawrence Lomax ccd2066b11 Add testPossibleStallingOfHostProcess to Test Fixtures
Summary: This additional fixture will enable writing a test for the behaviour when a single test hangs, or would otherwise stop producing meaningful output.

Reviewed By: k21

Differential Revision: D4073844

fbshipit-source-id: 7960df3c66be9b9378595da18283d811d33a8847
2016-11-10 07:34:38 -08:00
Lawrence Lomax 5e82e74773 Commit Fixtures Project
Summary: It's in the `hgignore` so I need to manually `hg add`

Reviewed By: marekcirkos

Differential Revision: D3741645

fbshipit-source-id: 581034571b723a07bea365180582d38bc38e2987
2016-08-19 03:49:17 -07:00
Lawrence Lomax d0bac6e029 Create separate iOS & Mac Test Fixtures
Summary: Being able to disambiguate between iOS and Mac tests is crucial. Adding a target that will allow us to test against these targets.

Reviewed By: k21

Differential Revision: D3716233

fbshipit-source-id: a65c03d6965f33615d0c8fc3cf27e31c76f216b5
2016-08-16 03:19:27 -07:00