Commit bdd825dc authored by norvell's avatar norvell
Browse files

Fix to regression script generation

parent 329d9f55
Loading
Loading
Loading
Loading
+15 −18
Original line number Diff line number Diff line
@@ -26,7 +26,7 @@ DUT_ENC2={DUT_ENC2}
DUT_DEC2={DUT_DEC2}

# Obtain executables from past reference
git checkout 'ivas-float-update@{$MIN_DATE 22:00:00}'
git checkout 'ivas-float-update@{{$MIN_DATE 22:00:00}}'
make clean
make -j
mv IVAS_cod IVAS_cod_ref_1
@@ -58,7 +58,7 @@ mv IVAS_dec IVAS_dec_2
mv IVAS_rend IVAS_rend_2

# Get fresh copy of scripts, tests and ci
cp -r $SCRIPTS_DIR/{scripts,tests,ci,pytest.ini} .
cp -r $SCRIPTS_DIR/{{scripts,tests,ci,pytest.ini}} .
python3 ci/remove_unsupported_testcases.py scripts/config/self_test.prm scripts/config/self_test_ltv.prm # Should not be needed since only supported testcases should be input

# Get LTVs
@@ -164,8 +164,7 @@ def main(logs_dir, output_filename, measure):

    critical3.to_csv("critical3.csv", sep=";", index=False)

    row_counter = 1
    for row in critical3.row():
    for row_counter, row in critical3.iterrows():

        # Find level
        level_scaling = 1.0
@@ -194,8 +193,8 @@ def main(logs_dir, output_filename, measure):
        script_content = REPRODUCE_REGRESSION_SCRIPT_TMPL.format(
            min_date=row["min_date"],
            min_sha=row["min_sha"][1:],
            LEVEL_SCALING={level_scaling},
            TESTCASE=row["testcase"][1:],
            level_scaling=level_scaling,
            testcase=row["testcase"][1:],
            REF_ENC1=REF_ENC1,
            REF_DEC1=REF_DEC1,
            DUT_ENC1=DUT_ENC1,
@@ -210,8 +209,6 @@ def main(logs_dir, output_filename, measure):
        with open(script_filename, "w") as f:
            f.write(script_content)

        row_counter = row_counter + 1


if __name__ == "__main__":
    parser = argparse.ArgumentParser(description="logs dir")