help-octave
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

audio check?


From: John W. Eaton
Subject: audio check?
Date: Tue, 04 Sep 2007 13:01:51 -0400

On  4-Sep-2007, Jim Langston wrote:

| Hi all,
| 
| What is the audio check doing when running it ?
| I'm getting do that point when running make check,
| but it spins my cpu up and never completes, I need
| to <ctl> c and kill the check.
| 
| Integrated test scripts:
| 
|   src/DLD-FUNCTIONS/cellfun.cc ........................... PASS   31/31 
|   src/DLD-FUNCTIONS/conv2.cc ............................. PASS    1/1  
|   src/DLD-FUNCTIONS/dispatch.cc .......................... PASS   13/13 
|   src/DLD-FUNCTIONS/fft.cc ............................... PASS    9/9  
|   src/DLD-FUNCTIONS/luinc.cc ............................. PASS    
| 0/2    FAIL 2
|   src/DLD-FUNCTIONS/matrix_type.cc ....................... PASS   51/51 
|   src/DLD-FUNCTIONS/rand.cc .............................. PASS   57/57 
|   src/DLD-FUNCTIONS/regexp.cc ............................ PASS   81/81 
|   src/DLD-FUNCTIONS/spkron.cc ............................ PASS    2/2  
|   src/DLD-FUNCTIONS/spqr.cc .............................. PASS    
| 2/14   FAIL 12
|   src/ov-fcn-handle.cc ................................... PASS    3/3  
|   src/ov-struct.cc ....................................... PASS   15/15 
|   src/strfns.cc .......................................... PASS   22/22 
|   src/syscalls.cc ........................................ PASS    1/1  
|   liboctave/CMatrix.cc ................................... PASS    6/6  
|   liboctave/dMatrix.cc ................................... PASS    6/6  
|   scripts/audio/wavwrite.m ...............................^Cgmake[2]: 
| *** [check] Error 1
| gmake[1]: *** [check] Interrupt
| gmake: *** [check] Interrupt

These tests are embedded in the sources, so you can look in
scripts/audio/wavwrite.m to see what commands it runs.  Here is what
is in the current CVS sources for that file:

%!test
%! A = [1:10; 1:10]/10;
%! wavwrite("a.wav", A);
%! [B, samples_per_sec, bits_per_sample] = wavread("a.wav");
%! assert(A,B, 10^(-4));
%! assert(samples_per_sec, 8000);
%! assert(bits_per_sample, 16);
%
%!test
%! A=[1:10; 1:10] / 10;
%! wavwrite("a.wav", A, 4000);
%! [B, samples_per_sec, bits_per_sample] = wavread("a.wav");
%! assert(A,B, 10^(-4));
%! assert(samples_per_sec, 4000);
%! assert(bits_per_sample, 16);
%
%!test
%! A=[1:10; 1:10] / 10;
%! wavwrite("a.wav", A, 4000, 8);
%! [B, samples_per_sec, bits_per_sample] = wavread("a.wav");
%! assert(A,B, 10^(-2));
%! assert(samples_per_sec, 4000);
%! assert(bits_per_sample, 8);


You can extract these commands (omitting the leading comment markers
and the "%!test" lines) and run them by hand, or you can run Octave
and then type

  test wavwrite

In your case it would probably be more helpful to run them one at a
time by hand to see precisely what is hanging.  Beyond that, I guess
you might need to run Octave under a debugger and see where it is
really hanging.

jwe


reply via email to

[Prev in Thread] Current Thread [Next in Thread]