-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathtest_cases.json
More file actions
202 lines (192 loc) · 6.75 KB
/
test_cases.json
File metadata and controls
202 lines (192 loc) · 6.75 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
{
"test_suite": {
"name": "Engine-Sim-CLI Verification Suite",
"version": "1.0.0",
"description": "Comprehensive verification system for engine-sim-cli components",
"test_environment": {
"platform": "macOS",
"sample_rate": 44100,
"duration": 3.0,
"timeout": 30.0
}
},
"test_cases": {
"sine_mode_audio": {
"id": "test_001",
"name": "Sine Mode Audio Output",
"description": "Verify sine mode produces correct frequency output at different RPM levels",
"type": "audio_verification",
"command": "engine-sim-cli --sine --rpm {rpm} --duration {duration} --output test_output.wav",
"parameters": {
"rpm": [1000, 3000, 6000],
"duration": 2.0
},
"expected_results": {
"min_frequency_db": -20.0,
"frequency_tolerance_hz": 5.0,
"min_amplitude": 0.1,
"max_amplitude": 1.0
},
"validation_criteria": {
"detect_pitch": true,
"measure_amplitude": true,
"check_distortion": false
},
"pass_criteria": {
"frequency_accuracy": "95%",
"audio_level": "valid",
"no_crashes": true
}
},
"keypress_response": {
"id": "test_002",
"name": "Keypress Response Time",
"description": "Test interactive mode keypress response time and accuracy",
"type": "input_verification",
"command": "engine-sim-cli --script {engine_path} --interactive --play --duration {duration}",
"parameters": {
"engine_path": "engine-sim-bridge/engine-sim/assets/main.mr",
"duration": 10.0
},
"expected_results": {
"max_response_time_ms": 50.0,
"keypress_accuracy": "100%",
"throttle_increment": 0.05,
"throttle_decrement": 0.05
},
"validation_criteria": {
"measure_latency": true,
"verify_key_functionality": true,
"test_all_keys": true
},
"pass_criteria": {
"response_time": "<= 50ms",
"key_functionality": "all_keys_working",
"no_hanging": true
}
},
"engine_startup": {
"id": "test_003",
"name": "Engine Mode Startup",
"description": "Verify engine mode starts without hanging and reaches target RPM",
"type": "engine_verification",
"command": "engine-sim-cli --script {engine_path} --rpm {rpm} --duration {duration} --output engine_test.wav",
"parameters": {
"engine_path": "engine-sim-bridge/engine-sim/assets/main.mr",
"rpm": [2000, 4000, 6000],
"duration": 5.0
},
"expected_results": {
"startup_time_max": 5.0,
"rpm_stabilization_time": 3.0,
"rpm_tolerance": 50.0,
"no_crashes": true
},
"validation_criteria": {
"measure_startup_time": true,
"verify_rpm_stabilization": true,
"check_engine_hang": true
},
"pass_criteria": {
"startup_success": true,
"rpm_reached": true,
"no_hanging": true
}
},
"binary_verification": {
"id": "test_004",
"name": "Binary and Library Verification",
"description": "Verify executable exists, has correct permissions, and links properly",
"type": "binary_verification",
"command": "verify_binary --engine-sim-cli",
"expected_results": {
"executable_exists": true,
"execute_permission": true,
"required_libraries": [
"libengine_sim_bridge.dylib",
"libAudioUnit.framework",
"libCoreAudio.framework"
]
}
},
"configuration_validation": {
"id": "test_005",
"name": "Configuration File Validation",
"description": "Verify engine configuration files are valid and accessible",
"type": "configuration_verification",
"command": "verify_config --path {config_path}",
"expected_results": {
"config_exists": true,
"valid_syntax": true,
"required_assets": [
"exhaust_impulse.wav",
"intake_impulse.wav"
]
}
}
},
"test_scenarios": {
"full_regression": {
"name": "Full Regression Test",
"description": "Run all tests in sequence to verify overall system health",
"test_sequence": [
"test_004",
"test_005",
"test_003",
"test_001",
"test_002"
],
"timeout_multiplier": 1.5,
"critical_tests": ["test_003", "test_001"]
},
"audio_focus": {
"name": "Audio Subsystem Test",
"description": "Comprehensive test of audio generation and playback",
"test_sequence": [
"test_001",
"test_003"
],
"audio_specific": true
},
"interactive_focus": {
"name": "Interactive Mode Test",
"description": "Test real-time control and response capabilities",
"test_sequence": [
"test_002"
],
"interactive_specific": true
}
},
"diagnostics": {
"audio_analysis": {
"frequency_detection": {
"method": "autocorrelation",
"sample_size": 4096,
"min_confidence": 0.8
},
"amplitude_measurement": {
"method": "rms",
"window_size": 1024,
"db_threshold": -40.0
},
"distortion_detection": {
"thd_threshold": 0.05,
"clipping_threshold": 0.95
}
},
"performance_metrics": {
"memory_usage": {
"max_increase_mb": 100,
"check_interval": 1.0
},
"cpu_usage": {
"max_percent": 80,
"check_interval": 0.5
},
"latency_budget": {
"max_ms": 5.0,
"warning_ms": 2.0
}
}
}
}