summaryrefslogtreecommitdiff
path: root/python/binary.go
diff options
context:
space:
mode:
author Paul Duffin <paulduffin@google.com> 2022-10-29 17:48:00 +0100
committer Paul Duffin <paulduffin@google.com> 2022-12-02 11:14:17 +0000
commit4c0765a6691f117e8c082e3bea9fe034d4f75c16 (patch)
tree99154bf4f39b5e76319d0dd72218574a3c5e295f /python/binary.go
parenta36589c4ca8580f9c13f52713d4a8a06d910ad7b (diff)
Support running bp2build tests in fixtures
Previously, the fixture test infrastructure was hard coded to initialize itself in preparation for invoking the PrepareBuildActions() method. That meant it could not be used for testing the bp2build and apiBp2build modes which required different initialization and called a different method. This change extracts that behavior into a FixtureTestRunner and adds an implementation that allows it to test the above two modes. It then uses that to implement the runBp2BuildTestCaseWithSetup method. The TestPrebuiltLibraryAdditionalAttrs was the only test which broke as it supplied an invalid path to the MockFS (it does not support using a trailing / to represent an empty build directory). So, it was modified to add a couple of files inside those directories instead. Test: m nothing Change-Id: I6798a4f761160af8d1bfed81d46de9628bda3eb9
Diffstat (limited to 'python/binary.go')
0 files changed, 0 insertions, 0 deletions