Loading conformance-test/test_26252.py +1 −1 Original line number Diff line number Diff line Loading @@ -53,7 +53,7 @@ def replace_paths(instr, testv_path, ref_path, cut_path): test_dict = {} TEST_DIR = "." scripts=["Readme_IVAS_enc.txt", "Readme_IVAS_dec.txt", "Readme_IVAS_rend.txt"] scripts=["Readme_IVAS_enc.txt", "Readme_IVAS_dec.txt", "Readme_IVAS_rend.txt", "Readme_IVAS_jbm.txt"] for s in scripts: with open(os.path.join(TEST_DIR, s), "r", encoding="UTF-8") as fp: Loading jbm_header.txt 0 → 100644 +22 −0 Original line number Diff line number Diff line #!/usr/bin/env bash set -e if [ "$#" -ne 1 ]; then echo "Usage: $0 <CUT_DEC_BIN>" exit -1 fi CUT_DEC_BIN=$1 DIFF_BIN="diff" TESTV_PATH="." REF_PATH="./testv" CUT_PATH="./TMP_JBM" LOG_FILE=Readme_IVAS_jbm_log.txt rm -rf $CUT_PATH mkdir -p $CUT_PATH mkdir -p $CUT_PATH/dut/masa_test/dec_output mkdir -p $CUT_PATH/dut/param_file/dec mkdir -p $CUT_PATH/dut/sba_bs/raw parse_commands.py +12 −3 Original line number Diff line number Diff line Loading @@ -57,9 +57,11 @@ if __name__ == '__main__': with open('script_footer.txt','r') as footer: outfile.write(footer.read()) with open(txt_file.replace('.','_dec.'),'w', newline='\n') as outfile: with open(txt_file.replace('.','_dec.'),'w', newline='\n') as outfile_dec, open(txt_file.replace('.','_jbm.'),'w', newline='\n') as outfile_jbm: with open('dec_header.txt','r') as header: outfile.write(header.read()) outfile_dec.write(header.read()) with open('jbm_header.txt','r') as header: outfile_jbm.write(header.read()) for cmd in cmds_dec: arg1 = cmd.split()[0] root_folder = arg1[0:arg1.find("ivas-codec/")+10] Loading @@ -74,6 +76,11 @@ if __name__ == '__main__': cmd = cmd.replace(root_folder + r'/scripts/', TESTV_PATH) cmd = cmd.replace('scripts/', TESTV_PATH) # To catch relative paths if 'VOIP' in cmd: outfile = outfile_jbm else: outfile = outfile_dec if not "pca" in cmd and not "stvFOA32c4chn_0.004.wav" in cmd and not "stvFOA32c4chn_0.004.wav" in cmd: outfile.write(cmd+'\n') out = re.search(r"\s(([\S]+)(.wav|.raw|.pcm))$", cmd) Loading @@ -84,7 +91,9 @@ if __name__ == '__main__': outfile.write(('; ').join(diff_cmds)) outfile.write('\n') with open('script_footer.txt','r') as footer: outfile.write(footer.read()) outfile_dec.write(footer.read()) footer.seek(0) outfile_jbm.write(footer.read()) with open(txt_file.replace('.','_rend.'),'w', newline='\n') as outfile: with open('rend_header.txt','r') as header: Loading Loading
conformance-test/test_26252.py +1 −1 Original line number Diff line number Diff line Loading @@ -53,7 +53,7 @@ def replace_paths(instr, testv_path, ref_path, cut_path): test_dict = {} TEST_DIR = "." scripts=["Readme_IVAS_enc.txt", "Readme_IVAS_dec.txt", "Readme_IVAS_rend.txt"] scripts=["Readme_IVAS_enc.txt", "Readme_IVAS_dec.txt", "Readme_IVAS_rend.txt", "Readme_IVAS_jbm.txt"] for s in scripts: with open(os.path.join(TEST_DIR, s), "r", encoding="UTF-8") as fp: Loading
jbm_header.txt 0 → 100644 +22 −0 Original line number Diff line number Diff line #!/usr/bin/env bash set -e if [ "$#" -ne 1 ]; then echo "Usage: $0 <CUT_DEC_BIN>" exit -1 fi CUT_DEC_BIN=$1 DIFF_BIN="diff" TESTV_PATH="." REF_PATH="./testv" CUT_PATH="./TMP_JBM" LOG_FILE=Readme_IVAS_jbm_log.txt rm -rf $CUT_PATH mkdir -p $CUT_PATH mkdir -p $CUT_PATH/dut/masa_test/dec_output mkdir -p $CUT_PATH/dut/param_file/dec mkdir -p $CUT_PATH/dut/sba_bs/raw
parse_commands.py +12 −3 Original line number Diff line number Diff line Loading @@ -57,9 +57,11 @@ if __name__ == '__main__': with open('script_footer.txt','r') as footer: outfile.write(footer.read()) with open(txt_file.replace('.','_dec.'),'w', newline='\n') as outfile: with open(txt_file.replace('.','_dec.'),'w', newline='\n') as outfile_dec, open(txt_file.replace('.','_jbm.'),'w', newline='\n') as outfile_jbm: with open('dec_header.txt','r') as header: outfile.write(header.read()) outfile_dec.write(header.read()) with open('jbm_header.txt','r') as header: outfile_jbm.write(header.read()) for cmd in cmds_dec: arg1 = cmd.split()[0] root_folder = arg1[0:arg1.find("ivas-codec/")+10] Loading @@ -74,6 +76,11 @@ if __name__ == '__main__': cmd = cmd.replace(root_folder + r'/scripts/', TESTV_PATH) cmd = cmd.replace('scripts/', TESTV_PATH) # To catch relative paths if 'VOIP' in cmd: outfile = outfile_jbm else: outfile = outfile_dec if not "pca" in cmd and not "stvFOA32c4chn_0.004.wav" in cmd and not "stvFOA32c4chn_0.004.wav" in cmd: outfile.write(cmd+'\n') out = re.search(r"\s(([\S]+)(.wav|.raw|.pcm))$", cmd) Loading @@ -84,7 +91,9 @@ if __name__ == '__main__': outfile.write(('; ').join(diff_cmds)) outfile.write('\n') with open('script_footer.txt','r') as footer: outfile.write(footer.read()) outfile_dec.write(footer.read()) footer.seek(0) outfile_jbm.write(footer.read()) with open(txt_file.replace('.','_rend.'),'w', newline='\n') as outfile: with open('rend_header.txt','r') as header: Loading