[test spec] Add support for linux and mac tests

This change
(1) adds support to test_spec() target a VM for linux and mac tests - and adds
support test() to record test specs in this case.
(2) adds package processing logic to create host_tests.json, a manifest of host
tests included in a build, mirroring packages.json

Bug: IN-823
Test: verified locally that test() gives the desired metadata, and that
host_tests.json is produced.

Change-Id: I994b24402bb7ada8c4e68308930ef22723965a47
5 files changed