- Timestamp:
- 11/12/09 00:34:13 (16 years ago)
- Location:
- library/tests
- Files:
- 
          - 30 added
- 26 removed
- 1 modified
- 37 moved
 
 - 
          CMakeLists.txt (modified) (1 diff)
- 
          additive_generator.cpp (deleted)
- 
          additive_generator.h (deleted)
- 
          arx_elem_test.cpp (deleted)
- 
          arx_test.cpp (deleted)
- 
          blas_test.cpp (deleted)
- 
          blas_test.m (deleted)
- 
          dirfile-format.matrix (deleted)
- 
          generator.cpp (deleted)
- 
          generator.h (deleted)
- 
          merger_2d_test.cpp (deleted)
- 
          merger_iter_test.cpp (deleted)
- 
          mixef_test.m (deleted)
- 
          mixtures_test.cpp (deleted)
- 
          size_generator.cpp (deleted)
- 
          size_generator.h (deleted)
- 
          square_mat_prep.cpp (deleted)
- 
          square_mat_stress.cpp (deleted)
- 
          stresssuite (added)
- 
          stresssuite/CMakeLists.txt (added)
- 
          stresssuite/additive_generator.cpp (added)
- 
          stresssuite/additive_generator.h (added)
- 
          stresssuite/arx_elem_test.cpp (added)
- 
          stresssuite/arx_test.cpp (added)
- 
          stresssuite/blas_test.cpp (added)
- 
          stresssuite/blas_test.m (added)
- 
          stresssuite/dirfile-format.matrix (added)
- 
          stresssuite/generator.cpp (added)
- 
          stresssuite/generator.h (added)
- 
          stresssuite/merger_2d_test.cpp (added)
- 
          stresssuite/merger_iter_test.cpp (added)
- 
          stresssuite/mixef_test.m (added)
- 
          stresssuite/mixtures_test.cpp (added)
- 
          stresssuite/size_generator.cpp (added)
- 
          stresssuite/size_generator.h (added)
- 
          stresssuite/square_mat_prep.cpp (added)
- 
          stresssuite/square_mat_stress.cpp (added)
- 
          stresssuite/testKF.it (added)
- 
          stresssuite/testKF.m (added)
- 
          stresssuite/testKF_big.m (added)
- 
          stresssuite/testResample.cpp (added)
- 
          stresssuite/test_kalman.cpp (added)
- 
          stresssuite/test_kalman_QR.cpp (added)
- 
          stresssuite/test_kalman_QRexh.cpp (added)
- 
          stresssuite/test_log.matrix (added)
- 
          stresssuite/test_particle.cpp (added)
- 
          testKF.it (deleted)
- 
          testKF.m (deleted)
- 
          testKF_big.m (deleted)
- 
          testResample.cpp (deleted)
- 
          test_kalman.cpp (deleted)
- 
          test_kalman_QR.cpp (deleted)
- 
          test_kalman_QRexh.cpp (deleted)
- 
          test_log.matrix (deleted)
- 
          test_particle.cpp (deleted)
- 
          testsuite (added)
- 
          testsuite/CMakeLists.txt (added)
- 
          testsuite/LQG_test.cpp (moved) (moved from library/tests/LQG_test.cpp) (1 diff)
- 
          testsuite/arx_straux_test.cfg (moved) (moved from library/tests/arx_straux_test.cfg)
- 
          testsuite/arx_straux_test.cpp (moved) (moved from library/tests/arx_straux_test.cpp) (1 diff)
- 
          testsuite/datalink_test.cpp (moved) (moved from library/tests/datalink_test.cpp) (1 diff)
- 
          testsuite/datasource_test.cpp (moved) (moved from library/tests/datasource_test.cpp) (1 diff)
- 
          testsuite/edirich.cfg (moved) (moved from library/tests/edirich.cfg)
- 
          testsuite/egamma.cfg (moved) (moved from library/tests/egamma.cfg)
- 
          testsuite/egiw.cfg (moved) (moved from library/tests/egiw.cfg)
- 
          testsuite/egiw_test.cpp (moved) (moved from library/tests/egiw_test.cpp) (1 diff)
- 
          testsuite/emix.cfg (moved) (moved from library/tests/emix.cfg)
- 
          testsuite/emix_test.cpp (moved) (moved from library/tests/emix_test.cpp) (1 diff)
- 
          testsuite/emix_test.m (moved) (moved from library/tests/emix_test.m)
- 
          testsuite/enorm.cfg (moved) (moved from library/tests/enorm.cfg)
- 
          testsuite/epdf_test.cpp (moved) (moved from library/tests/epdf_test.cpp) (1 diff)
- 
          testsuite/epdfds.cfg (moved) (moved from library/tests/epdfds.cfg)
- 
          testsuite/generator.cfg (moved) (moved from library/tests/generator.cfg)
- 
          testsuite/logger_test.cpp (moved) (moved from library/tests/logger_test.cpp) (1 diff)
- 
          testsuite/merger.cfg (moved) (moved from library/tests/merger.cfg)
- 
          testsuite/merger_error.cfg (moved) (moved from library/tests/merger_error.cfg)
- 
          testsuite/merger_test.cpp (moved) (moved from library/tests/merger_test.cpp) (1 diff)
- 
          testsuite/mgamma.cfg (moved) (moved from library/tests/mgamma.cfg)
- 
          testsuite/mlnorm.cfg (moved) (moved from library/tests/mlnorm.cfg)
- 
          testsuite/mmix.cfg (moved) (moved from library/tests/mmix.cfg)
- 
          testsuite/mprod.cfg (moved) (moved from library/tests/mprod.cfg)
- 
          testsuite/pdf_test.cpp (moved) (moved from library/tests/pdf_test.cpp) (1 diff)
- 
          testsuite/pdfds.cfg (moved) (moved from library/tests/pdfds.cfg)
- 
          testsuite/randun_test.cpp (moved) (moved from library/tests/randun_test.cpp) (1 diff)
- 
          testsuite/rectangular_support_test.cpp (moved) (moved from library/tests/rectangular_support_test.cpp) (1 diff)
- 
          testsuite/rv_test.cpp (moved) (moved from library/tests/rv_test.cpp)
- 
          testsuite/shared_ptr_test.cpp (moved) (moved from library/tests/shared_ptr_test.cpp)
- 
          testsuite/square_mat_test.cpp (moved) (moved from library/tests/square_mat_test.cpp) (1 diff)
- 
          testsuite/testUI_out.matrix (moved) (moved from library/tests/testUI_out.matrix)
- 
          testsuite/testsuite.cpp (moved) (moved from library/tests/testsuite.cpp)
- 
          testsuite/user_info_erroneous.cfg (moved) (moved from library/tests/erroneous.cfg)
- 
          testsuite/user_info_external.cfg (moved) (moved from library/tests/test_user_info_external.cfg)
- 
          testsuite/user_info_test.cpp (moved) (moved from library/tests/user_info_test.cpp) (5 diffs)
- 
          testsuite/user_info_valid.cfg (moved) (moved from library/tests/test_user_info_input.cfg) (1 diff)
 
Legend:
- Unmodified
- Added
- Removed
- 
        library/tests/CMakeLists.txtr713 r717 13 13 target_link_libraries(testutil bdm itpp unittest) 14 14 15 add_executable(square_mat_stress square_mat_stress.cpp)16 target_link_libraries(square_mat_stress testutil unittest)17 LINK_EXEC(square_mat_stress)18 19 add_executable(square_mat_prep additive_generator.cpp additive_generator.h generator.cpp generator.h20 size_generator.cpp size_generator.h square_mat_prep.cpp)21 target_link_libraries(square_mat_prep testutil)22 LINK_EXEC(square_mat_prep)23 24 EXEC(testResample)25 26 # ESTIM EXECS27 EXEC(arx_test)28 EXEC(arx_elem_test)29 30 EXEC(merger_2d_test)31 EXEC(merger_iter_test)32 EXEC(mixtures_test)33 34 EXEC(test_kalman)35 EXEC(test_particle)36 #EXEC(test_kalman_QR)37 #EXEC(test_kalman_QRexh)38 39 EXEC(blas_test)40 41 # using UnitTest++42 43 SET(unit_test_configurations egiw.cfg mlnorm.cfg edirich.cfg mprod.cfg generator.cfg epdfds.cfg pdfds.cfg test_user_info_input.cfg merger.cfg erroneous.cfg egamma.cfg test_user_info_external.cfg merger_error.cfg mgamma.cfg enorm.cfg mmix.cfg emix.cfg)44 45 add_executable(testsuite arx_straux_test.cpp datalink_test.cpp datasource_test.cpp egiw_test.cpp emix_test.cpp epdf_test.cpp logger_test.cpp LQG_test.cpp merger_test.cpp46 pdf_test.cpp randun_test.cpp rectangular_support_test.cpp rv_test.cpp shared_ptr_test.cpp square_mat_test.cpp testsuite.cpp user_info_test.cpp ${unit_test_configurations} )47 48 set_source_files_properties(${unit_test_configurations} PROPERTIES HEADER_FILE_ONLY TRUE)49 source_group(Configurations FILES ${unit_test_configurations})50 51 target_link_libraries(testsuite testutil unittest)52 LINK_EXEC(testsuite)53 54 15 add_subdirectory(tutorial) 55 16 add_subdirectory(unittest-cpp) 17 add_subdirectory(testsuite) 18 add_subdirectory(stresssuite) 
- 
        library/tests/testsuite/LQG_test.cppr706 r717 1 1 #define BDMLIB 2 #include " mat_checks.h"2 #include "../mat_checks.h" 3 3 #include "design/ctrlbase.h" 4 4 
- 
        library/tests/testsuite/arx_straux_test.cppr706 r717 1 1 #include "estim/arx.h" 2 #include " mat_checks.h"2 #include "../mat_checks.h" 3 3 4 4 using namespace bdm; 
- 
        library/tests/testsuite/datalink_test.cppr689 r717 1 1 #include "../bdm/stat/exp_family.h" 2 #include " mat_checks.h"2 #include "../mat_checks.h" 3 3 #include "UnitTest++.h" 4 4 
- 
        library/tests/testsuite/datasource_test.cppr706 r717 1 1 #include "../bdm/base/datasources.h" 2 2 #include "../bdm/base/loggers.h" 3 #include " mat_checks.h"3 #include "../mat_checks.h" 4 4 #include "UnitTest++.h" 5 5 
- 
        library/tests/testsuite/egiw_test.cppr689 r717 4 4 #include "stat/discrete.h" 5 5 #include "itpp_ext.h" 6 #include " epdf_harness.h"7 #include " mat_checks.h"6 #include "../epdf_harness.h" 7 #include "../mat_checks.h" 8 8 #include "UnitTest++.h" 9 9 
- 
        library/tests/testsuite/emix_test.cppr713 r717 1 1 #include "stat/exp_family.h" 2 2 #include "stat/emix.h" 3 #include " mat_checks.h"3 #include "../mat_checks.h" 4 4 #include "UnitTest++.h" 5 #include " test_util.h"5 #include "../test_util.h" 6 6 7 7 const double epsilon = 0.00001; 
- 
        library/tests/testsuite/epdf_test.cppr706 r717 2 2 #include "stat/exp_family.h" 3 3 #include "itpp_ext.h" 4 #include " epdf_harness.h"5 #include " mat_checks.h"4 #include "../epdf_harness.h" 5 #include "../mat_checks.h" 6 6 #include "UnitTest++.h" 7 7 
- 
        library/tests/testsuite/logger_test.cppr689 r717 1 1 #include "base/loggers.h" 2 #include " test_util.h"2 #include "../test_util.h" 3 3 #include "osutils.h" 4 4 #include "UnitTest++.h" 
- 
        library/tests/testsuite/merger_test.cppr713 r717 1 1 #include "stat/exp_family.h" 2 2 #include "stat/merger.h" 3 #include " mat_checks.h"3 #include "../mat_checks.h" 4 4 #include "UnitTest++.h" 5 5 
- 
        library/tests/testsuite/pdf_test.cppr716 r717 3 3 #include "stat/emix.h" 4 4 #include "itpp_ext.h" 5 #include " pdf_harness.h"6 #include " mat_checks.h"5 #include "../pdf_harness.h" 6 #include "../mat_checks.h" 7 7 #include "UnitTest++.h" 8 8 
- 
        library/tests/testsuite/randun_test.cppr706 r717 2 2 #include <itpp_ext.h> 3 3 #include "UnitTest++.h" 4 #include " mat_checks.h"4 #include "../mat_checks.h" 5 5 using namespace itpp; 6 6 
- 
        library/tests/testsuite/rectangular_support_test.cppr706 r717 1 1 #include "stat/discrete.h" 2 #include " mat_checks.h"2 #include "../mat_checks.h" 3 3 #include "UnitTest++.h" 4 4 
- 
        library/tests/testsuite/square_mat_test.cppr706 r717 2 2 #include "../bdm/math/chmat.h" 3 3 #include "itpp_ext.h" 4 #include " mat_checks.h"4 #include "../mat_checks.h" 5 5 #include "UnitTest++.h" 6 6 #include <math.h> 
- 
        library/tests/testsuite/user_info_test.cppr689 r717 3 3 #include <string.h> 4 4 #include "base/user_info.h" 5 #include " test_util.h"5 #include "../test_util.h" 6 6 #include "UnitTest++.h" 7 7 … … 198 198 199 199 TEST ( load_test ) { 200 UIFile in ( " test_user_info_input.cfg" );200 UIFile in ( "user_info_valid.cfg" ); 201 201 shared_ptr<Transport> pepikovo ( UI::build<Transport> ( in, "pepikovo", UI::compulsory ) ); 202 202 CHECK_EQUAL ( string ( "A car made in 1998 by audi, having 25000 kilometers on the clock.The names of passengers are as follows: Karlos Novak -1_CygWin_Matlab_Aimsun Karlosik Novacek " ), pepikovo->to_string() ); … … 216 216 217 217 TEST ( load_error_test ) { 218 UIFile in ( " test_user_info_input.cfg" );218 UIFile in ( "user_info_valid.cfg" ); 219 219 220 220 try { … … 232 232 } 233 233 234 UIFile erroneous ( " erroneous.cfg" );234 UIFile erroneous ( "user_info_erroneous.cfg" ); 235 235 try { 236 236 shared_ptr<Transport> jardovo ( UI::build<Transport> ( erroneous, "jardovo", UI::compulsory ) ); … … 242 242 243 243 TEST ( save_test ) { 244 UIFile in ( " test_user_info_input.cfg" );244 UIFile in ( "user_info_valid.cfg" ); 245 245 shared_ptr<Transport> pepikovo ( UI::build<Transport> ( in, "pepikovo", UI::compulsory ) ); 246 246 
- 
        library/tests/testsuite/user_info_valid.cfgr480 r717 29 29 }; 30 30 elisky = "jardovo"; 31 kati = "skubankovo@ test_user_info_external.cfg";31 kati = "skubankovo@user_info_external.cfg"; 

