refactor(tests): remove copying files to output directory; tests accept path to expected instead

This commit is contained in:
vsariola
2021-01-05 18:18:48 +02:00
parent 588488ce54
commit 1be75362d0
2 changed files with 6 additions and 13 deletions

View File

@ -28,6 +28,10 @@ int main(int argc, char* argv[]) {
float max_diff;
float diff;
if (argc < 2) {
fprintf(stderr, "usage: [test] path/to/expected_wave.raw");
}
#ifdef SU_LOAD_GMDLS
su_load_gmdls();
#endif
@ -45,9 +49,7 @@ int main(int argc, char* argv[]) {
fwrite((void*)buf, sizeof(SUsample), SU_BUFFER_LENGTH, f);
fclose(f);
snprintf(filename, sizeof filename, "%s%s%s", expected_output_folder, test_name, ".raw");
f = fopen(filename, "rb");
f = fopen(argv[1], "rb");
if (f == NULL) {
printf("No expected waveform found!\n");