commit | a5bc08a6244224f2516eb49440ed4129a8ccd979 | [log] [tgz] |
---|---|---|
author | Max Dashouk <mdashouk@google.com> | Fri Sep 24 12:11:53 2021 -0700 |
committer | Max Dashouk <mdashouk@google.com> | Mon Sep 27 10:42:19 2021 -0700 |
tree | 90f32c02f3acbb7beeb9c6174322390fb4ff012a | |
parent | 0e989cac4b2f67ec63e10abbf0a80eaa5849a740 [diff] |
Enable passing of publishedData to scripts. Modifies and adds tests accordingly. Removed hello_world test because it is redundant and other existing tests do the same and more. Also solves inconsistency issue that output integer arrays are always arrays of longs, but individual long and int output field are converted into int type. Now we treat both as long type. The reason why it is happening in this CL is because published data test case that sums up a very large array inside a script produces an integer that does not fit into 32 bit. Putting it into Java int fails the test due to integer overflow. This inconsistency was fixed in this CL in order to make the test pass. Fixes: 189241508 Fixes: 199921035 Fixes: 192285332 Test: atest ScriptExecutorUnitTest:ScriptExecutorTest Change-Id: I1f685098f5c14e83f5bd8c7a0cd5448353fafb93
Native (C++) code format is required to be compatible with .clang-format file. Run
git clang-format --style=file --extension='h,cpp,cc' HEAD~
Note that clang-format is not desirable for Android java files. Therefore the command line above is limited to specific extensions.