void test_peakgen() { START_TEST; if(!wf_peakgen__sync(WAV, WAV ".peak")){ FAIL_TEST("local peakgen failed"); } //create peakfile in the cache directory Waveform* w = waveform_new(WAV); char* p = waveform_ensure_peakfile__sync(w); assert(p, "cache dir peakgen failed"); FINISH_TEST; }
void test_peakgen() { START_TEST; char* filename = find_wav(WAV); assert(filename, "cannot find file %s", WAV); if(!wf_peakgen__sync(filename, WAV ".peak", NULL)){ FAIL_TEST("local peakgen failed"); } // create peakfile in the cache directory Waveform* w = waveform_new(filename); g_free(filename); char* p = waveform_ensure_peakfile__sync(w); assert(p, "cache dir peakgen failed"); FINISH_TEST; }