Adds artifact test.
This commit is contained in:
14
run_test.py
14
run_test.py
@@ -11,10 +11,9 @@ from src.audio_tests import run_single_test, run_latency_test
|
||||
|
||||
def main():
|
||||
parser = argparse.ArgumentParser(description='Run PCB hardware audio tests')
|
||||
parser.add_argument('--pcb-version', required=True, help='PCB version (e.g., v2.1)')
|
||||
parser.add_argument('--pcb-revision', required=True, help='PCB revision (e.g., A, B, C)')
|
||||
parser.add_argument('--serial-number', required=True, help='Serial number (e.g., SN001234)')
|
||||
parser.add_argument('--software-version', required=True, help='Software version (git commit hash)')
|
||||
parser.add_argument('--notes', default='', help='Adjustments or comments about this test')
|
||||
parser.add_argument('--comment', default='', help='Comments about this test')
|
||||
parser.add_argument('--config', default='config.yaml', help='Path to config file')
|
||||
|
||||
args = parser.parse_args()
|
||||
@@ -34,8 +33,10 @@ def main():
|
||||
save_plots = config['output'].get('save_plots', False)
|
||||
|
||||
print(f"Starting audio test run: {test_id}")
|
||||
print(f"PCB: {args.pcb_version} Rev {args.pcb_revision}")
|
||||
print(f"Serial Number: {args.serial_number}")
|
||||
print(f"Software: {args.software_version}")
|
||||
if args.comment:
|
||||
print(f"Comment: {args.comment}")
|
||||
if save_plots:
|
||||
print(f"Plots will be saved to: {test_output_dir}")
|
||||
print("-" * 60)
|
||||
@@ -71,10 +72,9 @@ def main():
|
||||
'metadata': {
|
||||
'test_id': test_id,
|
||||
'timestamp': timestamp.isoformat(),
|
||||
'pcb_version': args.pcb_version,
|
||||
'pcb_revision': args.pcb_revision,
|
||||
'serial_number': args.serial_number,
|
||||
'software_version': args.software_version,
|
||||
'notes': args.notes
|
||||
'comment': args.comment
|
||||
},
|
||||
'latency_test': latency_stats,
|
||||
'test_results': test_results
|
||||
|
||||
Reference in New Issue
Block a user