Changeset 717
- Timestamp:
- 11/12/09 00:34:13 (15 years ago)
- Location:
- library/tests
- Files:
-
- 30 added
- 26 removed
- 1 modified
- 37 moved
Legend:
- Unmodified
- Added
- Removed
-
library/tests/CMakeLists.txt
r713 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.cpp
r706 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.cpp
r706 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.cpp
r689 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.cpp
r706 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.cpp
r689 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.cpp
r713 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.cpp
r706 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.cpp
r689 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.cpp
r713 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.cpp
r716 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.cpp
r706 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.cpp
r706 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.cpp
r706 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.cpp
r689 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.cfg
r480 r717 29 29 }; 30 30 elisky = "jardovo"; 31 kati = "skubankovo@ test_user_info_external.cfg";31 kati = "skubankovo@user_info_external.cfg";