tree: 4b865cff7621c0fac24cd5d1661f401f1c754503 [path history] [tgz]
  1. test_data/
  2. annotation_tokenizer.py
  3. annotation_tokenizer_test.py
  4. annotation_tools.py
  5. check_annotations.py
  6. extractor.py
  7. extractor_test.py
  8. README.md
  9. traffic_annotation_auditor_tests.py
  10. update_annotations_sheet.py
  11. update_annotations_sheet.py.vpython
tools/traffic_annotation/scripts/README.md

Traffic Annotation Scripts

This file describes the scripts in tools/traffic_annotation/scripts.

check_annotations.py

Runs traffic annotation tests on the changed files or all repository. The tests are run in error resilient mode. Requires a compiled build directory to run.

traffic_annotation_auditor_tests.py

Runs tests to ensure traffic_annotation_auditor is performing as expected. Tests include:

  • Checking if auditor and underlying clang tool run, and an expected minimum number of outputs are returned.
  • Checking if enabling or disabling heuristics that make tests faster has any effect on the output.
  • Checking if running on the whole repository (instead of only changed files) would result in any error. This test may take a few hours to run and requires a compiled build directory.

annotation_tools.py

Provides tools for annotation test scripts.

update_annotations_sheet.py

This script updates the Google sheet that presents all network traffic annotations.