#!/usr/bin/env python3 # -*- coding: utf-8 -*- """Host unit-test runner for the IEC104 [comm] configuration segment.""" import os import sys HERE = os.path.dirname(os.path.abspath(__file__)) ROOT = os.path.dirname(os.path.dirname(os.path.dirname(HERE))) sys.path.insert(0, os.path.join(ROOT, "test", "host", "common")) from unit_test_harness import TestBuild, run_host_unit_test # noqa: E402 BUILD = TestBuild( name="IEC104 Comm Tests", src=os.path.join(HERE, "iec104_comm_test.c"), include_dirs=[ os.path.join(ROOT, "App", "cfg"), os.path.join(ROOT, "App", "iec60870", "104_port"), HERE, ], summary_marker="=== IEC104 Comm Tests:", ) if __name__ == "__main__": sys.exit(run_host_unit_test(BUILD))