From f4f621c5289caf5e1a120a2997285d2f3ff66079 Mon Sep 17 00:00:00 2001 From: drowe67 Date: Wed, 27 Jan 2016 20:44:06 +0000 Subject: [PATCH] made output a little cleaner and set tfsk_location to match default in README git-svn-id: https://svn.code.sf.net/p/freetel/code@2662 01035d8c-6547-0410-b346-abe4f91aad63 --- codec2-dev/octave/tfsk.m | 37 +++++++++++++++++++++++-------------- 1 file changed, 23 insertions(+), 14 deletions(-) diff --git a/codec2-dev/octave/tfsk.m b/codec2-dev/octave/tfsk.m index 31f42214..68f91604 100644 --- a/codec2-dev/octave/tfsk.m +++ b/codec2-dev/octave/tfsk.m @@ -32,17 +32,26 @@ % [X] - Extract and compare more parameters from demod % [X] - Run some tests in parallel -% -% FSK Modem test instructions -- -% 1 - Compile tfsk.c and fm_mod.c -% - tfsk.c is in unittest/, so build must not be configured for release -% 2 - Change tfsk_location and fsk_mod_location to point to tfsk -% 3 - Ensure octave packages signal and parallel are installed -% 4 - run tfsk.m. It will take care of the rest. -% +#{ + + FSK Modem automated test instructions: + + 1. Use cmake to build in debug mode to ensure unittest/tfsk is built: + + $ cd ~/codec2 + $ rm -Rf build_linux && mkdir build_linux + $ cd build_linux + $ cmake -DCMAKE_BUILD_TYPE=Debug .. + $ make + + 2 - Change tfsk_location below if required + 3 - Ensure Octave packages signal and parallel are installed + 4 - Start Octave and run tfsk.m. It will perform all tests automatically + +#} %tfsk executable path/file -global tfsk_location = '../build/unittest/tfsk'; +global tfsk_location = '../build_linux/unittest/tfsk'; @@ -86,7 +95,7 @@ function pass = vcompare(vc,voct,vname,tname,tol) maxdvec = abs(max(dvec)); pass = maxdvec=length(passv); %and no tests died pass = pass && length(passv)==ebnodbs; - passv + passv; assert(pass) endfunction -- 2.25.1