summaryrefslogtreecommitdiff
path: root/sh/sh_binary_test.go
AgeCommit message (Collapse)Author
2021-03-22Remove usages of FixtureFactory from misc packagesPaul Duffin
These packages have already been migrated to use per test build directory so have no need for a FixtureFactory. Bug: 183235980 Test: m nothing Change-Id: I667d1d992caaf0f615de91f89efdae11c44986c2
2021-03-16Migrate sh package to a per test build directoryPaul Duffin
Bug: 182885307 Test: m nothing Change-Id: I8e379c555e48ab482c56a19630d83a3a54126fc5
2021-03-09Support test fixtures in sh packagePaul Duffin
Restructures the sh package test setup code to create FixturePreparer instances for setting up a test fixture and converts some tests to use it. The goal with this change is not to switch all the sh tests over to directly using the new model but instead to ensure that the majority of the sh tests run with the new model, to allow existing tests to easily switch to the new model when needed and to allow dependent packages to be switched to the new model. Bug: 181070625 Test: m nothing Change-Id: Ib2c6ac2842d6fafde5663d3ee63c3f934913a00e
2021-03-03cd to / before running soong_build .Lukacs T. Berki
This lets one avoid any decisions as to when to chdir there during its execution and leads to better sandboxing because the pwd doesn't leak to init() functions anymore. Test: Manual. Change-Id: I1560da8ed3a621249426f9e8908aa890c21e13ba
2021-02-19Add ctx to AndroidMkExtraEntriesFuncColin Cross
Add a ctx parameter to AndroidMkExtraEntriesFunc to allow them to access providers. Test: m checkbuild Change-Id: Id6becc1e425c3c3d8519248f8c0ce80777fac7cc Merged-In: Id6becc1e425c3c3d8519248f8c0ce80777fac7cc
2020-11-12Pass Config to NewTestContext instead of ctx.RegisterColin Cross
Prepare for using Config when adding singletons by passing Config to NewTestContext and NewContext instead of to ctx.Register. This will enable a followup change to store SingletonMakeVarsProviders registered on the Context in the Config, which is necessary to run multiple tests in parallel without data races. Test: all soong tests Change-Id: Id229629a4e42ff4487d317241673837726c075fc
2020-10-09Revert "Make lots of tests run in parallel"Colin Cross
This reverts commit 323dc60712491c71ccdc5363c42df61f0a192487. Reason for revert: Possible cause of test instability Bug: 170513220 Test: soong tests Change-Id: Iee168e9fbb4210569e6cffcc23e60d111403abb8
2020-10-06Make lots of tests run in parallelColin Cross
Putting t.Parallel() in each test makes them run in parallel. Additional t.Parallel() could be added to each subtest, although that requires making a local copy of the loop variable for table driven tests. Test: m checkbuild Change-Id: I5d9869ead441093f4d7c5757f2447385333a95a4
2020-08-18Add data bin and lib properties to sh_testJaewoong Jung
This attempts to reland I7b64de4b06e9bba3fba3712b25dd9f9d112e1625 by fixing Mac-related test issues, yet again. Test: sh_binary_test.go Test: Modified ziptool-tests Bug: 156980228 Change-Id: Id3952e136c1dabfcd34048b6c9f31d0125a623df
2020-08-18Revert "Add data bin and lib properties to sh_test"Jaewoong Jung
This reverts commit a41a8877cb0cae27f0a0e4f9b511a7641adfc1b9. Reason for revert: Broke Darwin builds Change-Id: I4371d735ffea51f7c349b4d223bc91c103163015
2020-08-17Add data bin and lib properties to sh_testJaewoong Jung
This attempts to reland I7b64de4b06e9bba3fba3712b25dd9f9d112e1625 by fixing Mac-related test issues. Test: sh_binary_test.go Test: Modified ziptool-tests Bug: 156980228 Change-Id: Icb7bfb183f6a1d429caefc05b0550aff292d7633
2020-08-14Revert "Add data bin and lib properties to sh_test"Jaewoong Jung
This reverts commit 91dbd520dec7abcca8983792df4369401e7aa963. Reason for revert: Fix CLs didn't completely fix the builds. Test: sh_binary_test.go Bug: 156980228 Bug: 164465992 Change-Id: I1ed214c2ea6cd460db909a103c4b3a9a895ad9f7
2020-08-14Fix broken darwin build.Jaewoong Jung
Offending change - I7b64de4b06e9bba3fba3712b25dd9f9d112e1625 This is in addition to Idebfdf1ed7d8e10ba867c8eaac01410d754c7131 Test: sh_binary_test.go Bug: 156980228 Bug: 164465992 Change-Id: I8d01d0e82efe764cc6901bb3e2c2767c8b25d81f
2020-08-14Fix broken darwin build.Jaewoong Jung
Offending change - I7b64de4b06e9bba3fba3712b25dd9f9d112e1625 Test: sh_binary_test.go Bug: 156980228 Fixes: 164465992 Change-Id: Idebfdf1ed7d8e10ba867c8eaac01410d754c7131
2020-08-13Add data bin and lib properties to sh_testJaewoong Jung
Test: sh_binary_test.go Test: Modified ziptool-tests Bug: 156980228 Change-Id: I7b64de4b06e9bba3fba3712b25dd9f9d112e1625
2020-06-18Add module name to sh_test install path.Jaewoong Jung
This relands Ibb1d774709ea421e18d5350009c203f83c5b2d60 after fixing a backward compatibility issue where some test configs rely on sh_tests not having a module name in their paths when sub_dir is specified. Bug: 156980228 Test: m ziptool-tests Test: sh_binary_test.go Change-Id: If0521a008e7170d94b601f3df9dd0c12d1c96d21
2020-06-11Revert "Add module name to sh_test install path."Michael Butler
This reverts commit 2d4f1a2f7e96e760216e39f36503fee2a8a97d95. Reason for revert: Droidcop: Potential culprit for Bug 158778263 - verifying through Forrest before revert submission. This is part of the standard investigation process, and does not mean your CL will be reverted. Bug: 158778263 Change-Id: I5287b3c9331b08925dd22b32c84e4c3b6f71b58a
2020-06-10Add module name to sh_test install path.Jaewoong Jung
Bug: 156980228 Test: m ziptool-tests Test: sh_binary_test.go Change-Id: Ibb1d774709ea421e18d5350009c203f83c5b2d60
2020-06-01Soong package structure refactoringJaewoong Jung
Give prebuilt_etc and sh_binary their own packages and split the gigantic main Android.bp up to small, per-package ones. Test: m nothing, TreeHugger Bug: 156980228 Change-Id: I7b00cd344b9f16861f1ff39edf0029f016b853d0