nn: Implement presubmits to keep generated tests up to date

There are a set of generated tests that live in runtime/tests, and when
new ones are added, there is no check to see if they get added to our
test suite.

This CL introduces a script that sets up test files that ensure that all
the generated tests are loaded into our test suite. It also adds a
presubmit that checks this upon every upload to ensure this doesn't get
stale again.

Tests before: 14092 tests from 7 test suites ran.
Tests after: 34775 tests from 7 test suites ran.

Coverage before: http://shortn/_FMOCsOJ5El
Coverage after: http://shortn/_fDgFY557Oa
Coverage before: 58%, 45% (function, line)
Coverage after: 81%, 88% (function, line)

BUG=b:177409032
TEST=FEATURES=test emerge-betty aosp-frameworks-ml-nn

Change-Id: I0d4826316eb4fdb93f3698cc50387f0b7e447085
Reviewed-on: https://chromium-review.googlesource.com/c/aosp/platform/frameworks/ml/+/2627276
Tested-by: Jim Pollock <jmpollock@chromium.org>
Auto-Submit: Jim Pollock <jmpollock@chromium.org>
Commit-Queue: Michael Pishchagin <mblsha@google.com>
Reviewed-by: Michael Pishchagin <mblsha@google.com>
7 files changed