Commit 8d6672d7 authored by Archit Tamarapu's avatar Archit Tamarapu
Browse files

[fix] remove unsupported split rendering testcases and fix LC3plus unit test issue

parent 13aea674
Loading
Loading
Loading
Loading
Loading
+16 −1
Original line number Diff line number Diff line
@@ -64,6 +64,7 @@ TESTCASES = [
]

RENDERER_PYTEST_FILE = "tests/renderer/test_renderer.py"
SPLIT_RENDERING_PYTEST_FILE = "tests/split_rendering/test_split_rendering.py"


def remove_testcases(cfg: Path, testcases: list):
@@ -107,7 +108,7 @@ def find_function(lines: list[str], function_name: str) -> int:
            found_function = True
            continue

        if found_function and "run_renderer(" in line:
        if found_function and "run_" in line:
            return i


@@ -137,6 +138,19 @@ def remove_testcases_renderer():
    with open(RENDERER_PYTEST_FILE, "w") as f:
        f.writelines(lines)

def remove_testcases_split_rendering():
    with open(SPLIT_RENDERING_PYTEST_FILE) as f:
        lines = f.readlines()
    
    lines = skip_testcase(
        lines,
        function_name="test_omasa_external_split",
        condition="True",
        reason="Unsupported for BASOP"
    )

    with open(SPLIT_RENDERING_PYTEST_FILE, "w") as f:
        f.writelines(lines)

if __name__ == "__main__":
    parser = argparse.ArgumentParser()
@@ -149,3 +163,4 @@ if __name__ == "__main__":
        remove_testcases(f, testcases)

    remove_testcases_renderer()
    remove_testcases_split_rendering()
+0 −2
Original line number Diff line number Diff line
@@ -38,7 +38,6 @@ the United Nations Convention on Contracts on the International Sales of Goods.
#include "isar_lc3plus_common.h"
#include "options.h"

#ifdef ISAR_BITSTREAM_UPDATE_LC3PLUS

/* included by ivas_lc3plus_unit_test.c */

@@ -448,4 +447,3 @@ static int run_all_payload_tests( void )
    }
    return 0;
}
#endif