ci: add tool to check for Cargo features
When running tests from .travis.yml, the passed in features are first
checked locally for support in the current simulator. The list of
supported features was manually maintained, allowing newly implemented
features to be skipped, also skipping the related test (without
warnings). This adds a new tool that parses and prints the list of
features directly from the given Cargo.toml.
Signed-off-by: Fabio Utzig <utzig@apache.org>
diff --git a/ci/sim_install.sh b/ci/sim_install.sh
index b9a4cae..8ec96cf 100755
--- a/ci/sim_install.sh
+++ b/ci/sim_install.sh
@@ -12,6 +12,8 @@
# See the License for the specific language governing permissions and
# limitations under the License.
+pip3 install --user -r ci/requirements.txt
+
pushd sim && cargo fetch
[[ $? -ne 0 ]] && exit 1
popd