Commit Graph

34131 Commits

Author SHA1 Message Date
Dennis Shen
22860d2f33 Update codelab system app to use native code
Bug: b/291771121
Test: tested on local devices
Change-Id: I1532d89ef185c584d3cc76c0541a0f47e622e3fb
Merged-In: I1532d89ef185c584d3cc76c0541a0f47e622e3fb
2023-08-16 17:21:29 +00:00
Treehugger Robot
e64a580e9f Merge "Make tests configuration option optional." into main 2023-08-15 18:52:25 +00:00
Treehugger Robot
4266276d42 Merge "Add test for generating Android.bp from list of crates." into main 2023-08-15 18:51:45 +00:00
Treehugger Robot
3c9af85e16 Merge "Remove emit_list." into main 2023-08-15 18:36:13 +00:00
Andrew Walbran
8e86dfe14e Make tests configuration option optional.
Bug: 293289578
Test: atest cargo_embargo.test
Change-Id: Ia35acdcad920e0f585cc5be650f1d1e3b6aa176d
2023-08-15 17:47:06 +01:00
Andrew Walbran
3da057735e Add test for generating Android.bp from list of crates.
Bug: 293289578
Test: atest cargo_embargo.test
Change-Id: I2be01cee617913d429ceb5f41f81126d38301ede
2023-08-15 17:47:06 +01:00
Andrew Walbran
2a4c28bf67 Remove emit_list.
It's not used anywhere.

Bug: 293289578
Test: atest cargo_embargo.test
Change-Id: I8ab1cbec7fe05997c9b24a8e0b658c092a6046ae
2023-08-15 16:54:00 +01:00
Zoe Tsou
3492dd1d35 Merge "The script parse_cts_report.py converts single cts report into \ three files: info.json result.csv summary.csv" into main 2023-08-15 09:41:30 +00:00
Zoe Tsou
c864e8880b The script parse_cts_report.py converts single cts report into \
three files:
    info.json
    result.csv
    summary.csv

The class Report() is implemented so that parse_cts_report.py \
can be easily used by another script aggregate_reports.py.

The script aggregate_reports.py converts multiple cts reports into \
three files:
    info.json
    result.csv
    summary.csv

Assumptions:
    1. If the input is a zip file, the struture should be
        abc.zip
        |----abc/
        |    |----test_result.xml
    2. The input file and the output directory must have existed.

Bug: 293809772
Test: `./parse_cts_report.py --report-file [a.zip, test_result.xml] \
    -d output_directory`
Test: `./aggregate_reports.py --report-files a.zip b.zip -d \
    output_directory`
Change-Id: I8e5481ecc1ebf7f370debb59cb3c065cf9edcfad
2023-08-15 08:42:03 +00:00
Dennis Shen
6c53c6aab9 Merge "Add the first flag to core_experiments_team_internal" into main 2023-08-11 20:08:22 +00:00
Dennis Shen
a117eb53ed Add the first flag to core_experiments_team_internal
Add an internal dir to host an aconfig file that is dedicated to
trunk_stable_workflow testing. We should use this one, instead the one
dedicated to the demo app.

Bug: 294537090
Change-Id: I1a28da8e202f5f454df35f298c8c962d3b9b229b
2023-08-11 14:15:34 +00:00
Zhi Dou
50f1ed2988 Merge "Rename MockFlagsRule" into main 2023-08-09 19:39:31 +00:00
Zoe Tsou
0a48327c6c Merge "Convert single cts report into three files: info.json result.csv summary.csv" into main 2023-08-09 07:21:44 +00:00
Zoe Tsou
82deafccbf Convert single cts report into three files:
info.json
    result.csv
    summary.csv

Assumptions:
    1. If the input is a zip file, the struture should be
        abc.zip
        |----abc/
        |    |----test_result.xml
    2. The input file and the output directory must have existed.

Bug: 293809772
Test: ./parse_cts_report.py --report-file [a.zip, test_result.xml] \
    -d output_directory
Change-Id: I19dabdaed02408b7bf4a030394b99ed42925aa55
2023-08-09 05:48:40 +00:00
Zhi Dou
d20064a3ad Rename MockFlagsRule
The testing rule MockFlagsRule is not a "Mock". Rename the class name.

Bug: 280833463
Test: presubmit
Change-Id: I644537163e07dcf55cd69af3690e435251149349
2023-08-07 15:37:29 +00:00
Treehugger Robot
6cfc1eae6d Merge "Add tests for crate_to_bp_modules." into main 2023-08-04 22:29:44 +00:00
Andrew Walbran
0277236ce5 Add tests for crate_to_bp_modules.
Bug: 293289578
Test: atest cargo_embargo.test
Change-Id: I9063a2dffea3a716224a1bd6a722e408b5eb0494
2023-08-04 18:02:21 +01:00
Treehugger Robot
bedaae5b24 Merge "STT: simple build.trace.gz comparison tool" into main 2023-08-03 03:22:35 +00:00
Justin Yun
512af8216c STT: simple build.trace.gz comparison tool
compare_build_trace.py finds additional modules that exists in the
target_build.trace.gz file compared to the ref_build.trace.gz file.

Bug: 289003298
Test: compare_build_trace.py build.trace.gz target_name \
                             ref_build.trace.gz ref_name \
                             ignore_text
Change-Id: Ib6b17b8107583ecd76a0e1216293ac903e0b54b9
2023-08-03 11:23:14 +09:00
Zoe Tsou
4c2345a3c3 Merge "migrated the script from python2 to python3." into main 2023-08-02 08:08:40 +00:00
Matthias Männich
b417397c18 Merge "ndkabidump: switch to .stg format" into main 2023-08-01 21:36:36 +00:00
Frederick Mayle
f7f1f74960 Merge "Split out JSON configuration reading to a separate module." into main 2023-08-01 19:23:38 +00:00
Matthias Maennich
273a2c88ee ndkabidump: switch to .stg format
Bug: 156513478
Change-Id: I1250aca298894851039b058f286b21d4c1f46716
Signed-off-by: Matthias Maennich <maennich@google.com>
2023-08-01 17:23:22 +00:00
Andrew Walbran
a314f8e3fd Split out JSON configuration reading to a separate module.
Bug: 293289578
Test: m cargo_embargo
Change-Id: I993da0c666a2dd90fa46f697553b9778e1e3ad37
2023-08-01 16:00:29 +01:00
Treehugger Robot
b990c79f5c Merge "STT build test builds trunk_staging release by default" into main 2023-08-01 05:42:16 +00:00
Justin Yun
db03719264 STT build test builds trunk_staging release by default
Add `TARGET_RELEASE=trunk_staging` for the base build command to
build the trunk_staging targets for the STT build tests.

Bug: 293964685
Test: combined_build_test.sh -t <target> -v <variant>
Change-Id: I1bc449ad6790dc56860983ae80c4beb20c0621aa
2023-08-01 11:39:27 +09:00
Zhi Dou
d9009e5ebe Merge "Add usage of test mode" into main 2023-07-31 15:09:09 +00:00
Zoe Tsou
2baeec3a8e migrated the script from python2 to python3.
Bug: 292454054
Test: 'python3 compare_failed_tests.py test_result_a.xml
test_result_b.xml'

Change-Id: I84c5a1523c80a7672492f6c6487982ae777eef28
2023-07-31 03:35:51 +00:00
Zhi Dou
4a8cecd0f6 Add usage of test mode
Add usage of test mode of java_aconfig_library.

Add local host unit test of contentlibs

Test: atest ContentLibs_test_host --host
Bug: 287644619
Change-Id: Ib99a3f2b692d3251d445a2e188325ee0b0b6b268
2023-07-28 21:39:45 +00:00
Treehugger Robot
9259a177a1 Merge "Add support for product_available and vendor_available flags." into main 2023-07-28 18:31:47 +00:00
Andrew Walbran
8b488a9338 Add support for product_available and vendor_available flags.
Bug: 293289578
Test: Ran on external/rust/crates/either
Change-Id: Iaf357dc2a9e036689c07005f2f9ca3879e3e71ee
2023-07-28 11:10:59 +01:00
Treehugger Robot
fcfc138048 Merge "AconfigDemo: associate each flag with exactly one bug" into main 2023-07-28 07:14:42 +00:00
Hsin-Yi Chen
7d300d7652 Merge "Handle lsdump paths containing soong config hash" into main 2023-07-28 03:20:47 +00:00
Matthew Maurer
5e1afb9e78 Merge "clang-tools: Re-enable bindgen prebuilt" into main 2023-07-28 02:01:22 +00:00
Mårten Kongstad
dc5f6e451e AconfigDemo: associate each flag with exactly one bug
aconfig now requires that each flag is associated with exactly one bug.
Update aconfig_demo_flags.aconfig accordingly.

Also standardize use of whitespace.

Bug: 293156797
Test: presubmit
Change-Id: I3e10f7055ffb2776fbe825f0902b735ca4674b58
2023-07-27 13:54:18 +02:00
Matthew Maurer
6937e35e01 clang-tools: Re-enable bindgen prebuilt
We turned this off for a bit because not all deps were mapped in to the
clang-tools build. Re-enabling now to produce a fresh prebuilt.

Bug: 251506715
Test: ABTD aosp-clang-tools
Change-Id: Ia843be55894946ff0803c43057e58899f99b580f
2023-07-26 23:01:40 +00:00
Hsin-Yi Chen
04cf4d41e9 Handle lsdump paths containing soong config hash
An arch variant directory may contain a soong host config subdirectory.
The ABI dump script extracts the last two directory names from an
intermediate lsdump path. It builds the lsdump if any of the directory
names matches the variant.

Test: ./create_reference_dumps.py -libs libmemtrack \
      -products aosp_arm64
Bug: 291850413
Change-Id: I3dafc68b0dc7bb7faf708e3adfd24082a12a691b
2023-07-25 17:33:29 +08:00
Yuyang Huang
d7a415e5ba Merge "Add NsdManagerSampleApps to show how to usd NsdManager API" into main 2023-07-25 03:05:01 +00:00
Yuyang Huang
3dd4037e6d Add NsdManagerSampleApps to show how to usd NsdManager API
The TestDiscoverService app covers the API for service discover. The
TestAdvertiseService app covers the APT for service advertisement.

Test: ./gradlew build
Change-Id: I6a8d94bbe88a9a20b1adcda8e0916898c68e7ea5
2023-07-24 17:15:34 +09:00
Treehugger Robot
6f7ecff37c Merge "Update OWNERS to add new per-file line for script" into main 2023-07-21 13:24:42 +00:00
Treehugger Robot
3062194792 Merge "scripts: Add cargo2rulesmk.py to generate rules.mk" into main 2023-07-20 13:58:57 +00:00
Nikita Putikhin
a3a0af9a93 Merge "Print adb output if pushing gdbserver fails" into main 2023-07-20 11:21:39 +00:00
Nikita Putikhin
3803ec7f07 Print adb output if pushing gdbserver fails
Right now the raised exception only shows the command and return code.
Printing the output should make the error more clear.

Test: adb root, then in adb shell touch the server and make immutable
  touch /data/local/tmp/x86_64-lldb-server
  chattr +i /data/local/tmp/x86_64-lldb-server
  Then on host lldbclient.py -r test
  Fails as expected with with "operation not permitted"

Change-Id: Ie22f41bb90809c2f9bafaee0be6a151d9b017502
2023-07-20 10:06:41 +00:00
Per Larsen
e1a65278e9 Update OWNERS to add new per-file line for script
Adding per-file line for cargo2rulesmk.py such that
it can be maintained by members of the platsec Rust
and Trusty teams.

Bug: 281857510
Change-Id: I9aedee5a76c4d463d4cf3d0851c60193d96a7696
2023-07-20 00:49:43 +00:00
Per Larsen
7b03617a54 scripts: Add cargo2rulesmk.py to generate rules.mk
Add script that generates rules.mk files from Rust crates.
Based on and inspired by cargo2android.py script to generate
blueprint files for the Android build system.

The script has only been tested on the vendored crates used to
build Trusty (see external/rust/crates) and does not support
the full range of crate types or cargo features.

Bug: 281857510
Change-Id: I1951f75476c36b9a1b794c4a51483f2c7387b1f5
2023-07-20 00:15:39 +00:00
Nikita Putikhin
eea06cf609 Merge "Add --vscode-launch-file to gdbclient.py" into main 2023-07-18 14:24:18 +00:00
Aditya Kumar
a1133e904c Merge "Clarify meaning of --port flag" into main 2023-07-15 00:52:33 +00:00
AdityaK
50c9af7a63 Clarify meaning of --port flag
Also, edited error message when lunch menu is incorrect.

Change-Id: Ie9f5a00b8560d938212eb2b38713a6343d175958
2023-07-14 16:55:55 -07:00
Treehugger Robot
03760adbee Merge "Remove timestamps from sdk_repo zips" into main 2023-07-14 00:18:33 +00:00
Cole Faust
127efd8ad1 Remove timestamps from sdk_repo zips
Switch to using soong_zip instead of regular zip because soong_zip
doesn't add timestamps.

Also remove mk-sdk-repo-pkg-3 because it was unused.

Test: m sdk sdk_repo dist
Change-Id: Ic41fab8475ac22e43128af2b60017932ee2aee89
2023-07-13 15:37:39 -07:00