aboutsummaryrefslogtreecommitdiff
path: root/xml/xml_test.go
Commit message (Collapse)AuthorAgeFilesLines
* Remove usages of FixtureFactory from misc packagesPaul Duffin2021-03-221-4/+2
| | | | | | | | | 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
* Convert xml package to fixturesPaul Duffin2021-03-181-48/+18
| | | | | | Bug: 182885307 Test: m nothing Change-Id: I9aad3e4e6dbec9c25e8a0aeaf8e0ec1d82e39400
* Pass Config to NewTestContext instead of ctx.RegisterColin Cross2020-11-121-2/+2
| | | | | | | | | | | 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
* Revert "Make lots of tests run in parallel"Colin Cross2020-10-091-1/+0
| | | | | | | | | | This reverts commit 323dc60712491c71ccdc5363c42df61f0a192487. Reason for revert: Possible cause of test instability Bug: 170513220 Test: soong tests Change-Id: Iee168e9fbb4210569e6cffcc23e60d111403abb8
* Make lots of tests run in parallelColin Cross2020-10-061-0/+1
| | | | | | | | | | 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
* Soong package structure refactoringJaewoong Jung2020-06-011-1/+2
| | | | | | | | | 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
* Move filesystem into ConfigColin Cross2019-12-181-11/+9
| | | | | | | | | | | | The filesystem object was available through ModuleContext.Fs(), but gives too much access to the filesystem without enforicing correct dependencies. In order to support sandboxing the soong_build process move the filesystem into the Config. The next change will make it private. Bug: 146437378 Test: all Soong tests Change-Id: I5d3ae9108f120fd335b21efd612aefa078378813
* Use empty string for core image variantColin Cross2019-12-131-2/+2
| | | | | | | | | | | Use the empty string for the core image variant so that modules added to imageMutator do not change their build directory. Bug: 142286466 Test: m checkbuild Change-Id: Ida4534d9a4d6176236aaa480fed359ce27acfaa1 Merged-In: Ida4534d9a4d6176236aaa480fed359ce27acfaa1 (cherry picked from commit 72d685ee7f45e5393be44ae4159edf083ac918de)
* Move ImageMutator after archMutatorColin Cross2019-12-061-2/+2
| | | | | | | | | | | | Move the ImageMutator to be registered just after the archMutator in preparation for moving it between osMutator and archMutator. Requries updating variants in a few tests that now run the ImageMutator. Bug: 142286466 Test: no change to build.ninja Test: all soong tests Change-Id: Ia9d2a7bc0e225bedec3c9a83ea04f471a931bf47
* Make TestContext.RegisterModuleType take an android.ModuleFactoryColin Cross2019-11-251-2/+2
| | | | | | | | Avoid having to pass ModuleFactoryAdaptor to every call to RegisterModuleType in a test by wrapping RegisterModuleType. Test: all soong tests Change-Id: If8847d16487de0479cc3020b728256922b3cadba
* Replace RelPathString() with ToMakePath()Colin Cross2019-10-031-19/+29
| | | | | | | | | | | | Add a ToMakePath() method that returns a new path that points out out/ instead of out/soong/, and replace the "$(OUT_DIR)/" + path.RelPathString() pattern with path.ToMakePath().String() Bug: 141877526 Test: m checkbuild Change-Id: I391b9f2ed78c83a58d905d48355ce9b01d610d16
* fix: prebuilt_etc_xmlJooyung Han2019-07-221-8/+29
| | | | | | | | | | | | | | Since aosp/872653 and aosp/904233 landed, prebuilt_etc_xml has been broken. aosp/872653: Enable arch variant properties in prebuilt_etc. aosp/904233: Add a prebuilt module type for usr/share. This change fixes 1) pass baseDir "etc" to initialize PrebuiltEtc struct 2) change "multlib" argument to MultilibFirst to reflect aosp/872653 Bug: 138082739 Test: m com.google.vr.platform.xml && see if it is installed in /system/etc Change-Id: I4802107fd8ccf28a1170d7d165700c92df32e341
* Add prebuilt_etc_xmlJiyong Park2018-04-281-0/+86
prebuilt_etc_xml installs an xml file to <partition>/etc[/<subdir>] and validates the xml file against the given DTD file before installing it. This change also includes some fixes for prebuilt_etc which is the super module of prebuilt_etc_xml: 1) The module is changed to arch-specific module as the prebuilts are only for devices (installed under the etc dir), but not for hosts. 2) Dependency to android.Prebuilt is removed because android.Prebuilt is intended to be used for the case when a module can exist as prebuilts, source or both. These prebuilt_etc_* modules are prebuilt only. 3) srcs property which accepts a list of source files is changed to src that only accepts single source file, which makes more sense for prebuilts. Bug: 65686190 Test: m -j (xml_test.go) Change-Id: I40484f3f6615b99f6b8d43176db0c40c5bfd838e