Commit Graph

221 Commits

Author SHA1 Message Date
Michael Tryby
669bdde122 Expanding test
Added test where data is a struct
2019-04-10 16:12:13 -04:00
Michael Tryby
06a90fd063 Update test_list.cpp
Updating file header to reflect proper attribution
2019-04-10 11:34:37 -04:00
Michael Tryby
fbecf1b915 Fixing indent
Spaces not tabs
2019-04-10 11:25:01 -04:00
Michael Tryby
dba0d1cf52 Update test_list.cpp 2019-04-10 11:15:35 -04:00
Michael Tryby
f9dd9bc766 Clean up and inline comments 2019-04-10 10:57:55 -04:00
Michael Tryby
ea02e1736e Fixed memory leak
Fixed memory leak in test_head_list
2019-04-10 10:44:34 -04:00
Michael Tryby
07995beda1 Fixing bug in head_list 2019-04-09 18:09:41 -04:00
Michael Tryby
6f236f00ef Update test_list.cpp
Tests are passing
2019-04-09 15:16:54 -04:00
Michael Tryby
30f0def02a Initial commit list
generic linked list
2019-04-09 14:26:33 -04:00
Michael Tryby
cf1fc43a4d Merge branch 'dev' of https://github.com/OpenWaterAnalytics/EPANET into Mariosmsk-fix_bug_getdemandname 2019-04-08 15:22:16 -04:00
Michael Tryby
14af368876 Merge branch 'fix_bug_getdemandname' of https://github.com/Mariosmsk/EPANET into Mariosmsk-fix_bug_getdemandname 2019-04-08 14:44:05 -04:00
Lew Rossman
3e733f5a2a Add more analysis options to the API (issue #425) 2019-04-03 21:17:28 -04:00
Michael Tryby
927cf9770e merging upstream dev 2019-04-03 16:40:58 -04:00
Michael Tryby
9f867b10ca Merge pull request #443 from OpenWaterAnalytics/lrossman-dev17
Removed the EN_DEFDEMANDPAT option
2019-04-03 16:35:47 -04:00
Michael Tryby
502e5f16a0 Fixing index error in test 2019-04-03 16:25:51 -04:00
Michael Tryby
84bf6f98d0 Cleaning up include statements adding crtdbg.h 2019-04-03 15:55:23 -04:00
Michael Tryby
be2b0a3ac8 Update CMakeLists.txt
Restoring test_net_builder to test_toolkit.exe
2019-04-03 14:56:01 -04:00
Michael Tryby
b578380675 Update test_toolkit.hpp
removing crtdbg.h from header
2019-04-03 14:13:40 -04:00
Michael Tryby
efd86c3ddd Fixing memory problems with test_toolkit
Fixes memory leaks and some minor refactoring.
2019-04-03 14:05:41 -04:00
Michael Tryby
f99d417301 Merge branch 'dev' of https://github.com/OpenWaterAnalytics/EPANET into dev-unittesting 2019-04-03 11:10:52 -04:00
Michael Tryby
568f89ff9e removing reference to strncpy 2019-04-03 11:10:36 -04:00
Michael Tryby
0f7c07555b Merge pull request #444 from michaeltryby/dev
Cleaning up build on gcc
2019-04-03 10:58:46 -04:00
Lew Rossman
fa4952a265 Fixed failure to update test_analysis.cpp 2019-04-03 10:56:24 -04:00
Lew Rossman
af825005d4 Fixed failure to update test_net_builder.cpp 2019-04-03 10:43:19 -04:00
Lew Rossman
83ffc1cfc7 Removed the EN_DEFDEMANDPAT option
See issue #429. Also allowed the EN_HEADLOSSFORM option to be changed if the solver is not active.
2019-04-03 10:25:37 -04:00
Michael Tryby
207cc53b04 Cleaning up build on gcc 2019-04-03 09:27:51 -04:00
Lew Rossman
23b11ab672 Add test of EN_setcurve & EN_getcurve to test_curve.cpp 2019-04-03 01:15:57 -04:00
Michael Tryby
ecf0e5173c revert 1a01b46 to 1b167b5 2019-04-02 15:27:05 -04:00
Michael Tryby
a89f3c9005 Making sure filename is null terminated string
Added file_handle validation
2019-04-02 12:31:05 -04:00
Michael Tryby
c98d13de80 Updated filemanager to use dynamically allocated strings
converted filename to dynamically allocated string
created cstr_helper
2019-04-02 11:05:56 -04:00
Michael Tryby
2c6d4ca74d Work in progress
Added test for temp files, getter for filename, and wrappers for fwrite, fprintf, and fgets
2019-04-01 18:05:02 -04:00
Michael Tryby
a0b08921fc Tweaking header doc 2019-04-01 15:24:52 -04:00
Michael Tryby
36a12cd4b6 Adding test_filemanager to ctest 2019-04-01 15:23:13 -04:00
Michael Tryby
b9f00421dd Adding header info 2019-04-01 15:16:58 -04:00
Michael Tryby
23ac179ec1 Implementing filemanager
Implementing and testing filemanager and upgrading epanet_output library to use it.
2019-04-01 15:03:02 -04:00
Michael Tryby
69da9a4997 Work in progress 2019-03-29 17:04:55 -04:00
Michael Tryby
1b167b5caf Cleaning up include statements
Removing inclusion of malloc.h. Adding crtdbg.h
2019-03-28 09:26:26 -04:00
mariosmsk
bd8a21d23c Update test_demand.cpp 2019-03-27 22:02:34 +02:00
Michael Tryby
1e7cba167c Delete test_comments.cpp 2019-03-22 15:35:35 -04:00
Michael Tryby
df4e62b550 Adding comment test 2019-03-22 15:34:34 -04:00
Michael Tryby
b02f1ef346 Merge branch 'dev' of https://github.com/OpenWaterAnalytics/EPANET into dev 2019-03-22 14:10:41 -04:00
Michael Tryby
2bf3be4c64 Adding tests at test root
Couldn't get tests in subdirectores to work so adding them at test root instead.
2019-03-22 11:51:08 -04:00
Michael Tryby
ec72db5d82 pulling up call to find_packages
eliminates multiple calls to find_packages
2019-03-22 11:08:54 -04:00
Michael Tryby
c9903620cb Fine tuning linking strategy
static linking on Windows (MSVC and mingw) dyn linking everywhere else.
2019-03-22 09:55:34 -04:00
Michael Tryby
84341c3237 Switching MSVC to static link 2019-03-22 09:20:33 -04:00
Michael Tryby
66c274c343 Adding BOOST_TEST_MAIN for gcc build 2019-03-22 09:14:26 -04:00
Michael Tryby
eb4ae7f670 Adding boost system for gcc build 2019-03-21 18:19:17 -04:00
Michael Tryby
48facd89d0 Fixing test build on gcc 2019-03-21 18:08:05 -04:00
Michael Tryby
0c56df4041 Reorganizing tests
Adding test_net_builder and test_reent to cmake build script.
2019-03-21 13:44:31 -04:00
Michael Tryby
5687c63548 Reorganizing unit tests
Unit tests for the toolkit are consolidated into one test module with a separate test suite for related API functions.
2019-03-21 13:11:10 -04:00