Commit Graph

534 Commits

Author SHA1 Message Date
Günter Obiltschnig
23aebd2d96 fixed GH #2738: Poco::AccessExpireStrategy::onGet() must not extend expiration time after expiration 2019-07-01 17:59:29 +02:00
Joerg-Christian Boehme
b1715f90b2 Fix ctest execution in AppVeyor (#2514)
* Test

* Fix execution of ctest in AppVeyor

* Revert "Test"

This reverts commit d50863c1da1757d15e8e9d058cd5a887dabfcd38.

* Use internal/embedded openssl on windows

* Fix apache connector build findings

* Fix appveyor

* Use openssl embedded for windows

* Improve windows embedded openssl checkout

* Test openssl embedded cmake

* Cleanup cmake

* Switch of NetSSLWin. Needs to fix

* Fix copy of embedded openssl

* Fix set correct windows path environment

* Remove path environment for windows

* Comment out AsyncChannel test on windows. Its chrashing

* Commont out async test

* Commont in async test

* Add ChannelTest::testAsync to cppunit ignore

* Remove CppUnit ignore for testasync

* Fix NetSSL_WIN test

* Improve travis script

* Fix source path in travis cmake build

* Fix travis cmake build

* Fix cmake source path in travis

* Change to ninja for faster build

* Fix test from cmake build
2019-01-02 10:40:40 -06:00
Cengizhan Pasaoglu
02b879d715 Using wrapper function for converting to string, instead of itself (#2445)
testIntToString() function has been updated regarding implementation changes
2018-09-04 15:18:19 +02:00
Aleksandar Fabijanic
7a081c50d8 Preserve entries order in DynamicStruct #2410 (#2413)
* Preserve entries order in DynamicStruct #2410

* disable C++11 default

* ifdef C++11 code
2018-08-01 17:39:06 -05:00
Alex Fabijanic
cca28df12b increase tuple sizes to 40
fix VarHolder (unsigned) long specialization (std::enable_if/is_same)
2018-08-01 17:17:10 -05:00
Alex Fabijanic
273881b816 increase TypeList max size to 40 2018-08-01 12:25:07 -05:00
Alex Fabijanic
ec5a810409 fix header guards 2018-07-26 20:37:43 -05:00
Lyashenko Arsenii Maksimovich
0379a1e768 MinGW support (#2360)
* Add MinGW support (not full yet).

TODO list:
* Fix tests compilation (undefined reference to CppUnit::...)
* Fix SQLs compilation (No rule to make target '${LIBNAME}.dll.a', needed by '${LIBNAME}.dll'.  Stop.)
* Fix crypto executables compilation
* Test static compilation
* Test MSVC compilation
* Add unicode support

See pocoproject/poco#2356

* Code rearrange.

Also fix PDF test runner.

TODO list:
* Fix tests compilation (undefined reference to CppUnit::...)
* Add unicode support
* Resolve what to do with message compiler

See pocoproject/poco#2356

* Normal "_DLL" definition for MinGW. Add missing "Crypto_API" for several implementations. Add "POCO_NO_MINGW_UNICODE" for "wmain".

TODO list:
* Check PostgreSQL and MySQL
* Resolve what to do with message compiler

See pocoproject/poco#2356

* Test PostgreSQL. Fix message compiler problem.

See pocoproject/poco#2356

* Perform requested changes. Add WinCE check.

See pocoproject/poco#2360

* Perform requested changes #2. Delete WinCE check.

See pocoproject/poco#2360

* Perform requested changes #3. Net initializer should works now.

See pocoproject/poco#2360

* Fix invalid indent.

See pocoproject/poco#2360

* Correct definition of POCO_NO_MINGW_UNICODE.

See pocoproject/poco#2360

* Remove macro and set global linke flags for testing purpose

* Add -municode for mingw where wmain is used

* Delete "POCO_ENABLE_EXE_WMAIN". Add PollSet support.

See pocoproject/poco#2360

* Restore WinCE linker flags. Set _WIN32_WINNT in PollSet.cpp separately. Add var to disable MinGW wmain wrapper.

* Fix compilation.

* Fix missing argument name in functions "setEscapeUnicode" in JSON package.
2018-06-19 08:17:03 -07:00
Alex Fabijanic
d327577070 add struct tm support to DateTime #2365 2018-06-12 10:37:04 -05:00
Alex Fabijanic
29252e7bba force NaN not infinity on windows (consistent with std and other platforms) 2018-06-05 00:58:02 -05:00
Joerg-Christian Boehme
8a70ab8a1c Cleanup cmake build system (develop) to use transitive dependency management from cmake (#2322)
* Cleanup cmake Root CMakeLists.txt

* Cleanup cmake targets

* Add find openssl modul for older cmake version

* set proper scope

* Switch off make based builds in travis and appveyor

* Fix build break, set C11 on c file

* Set from C11 to C99

* Fix NetSSL win build

* Set C99 compile features

* Fix Windows build

* Fix windows build

* Revert "Fix windows build"

This reverts commit 678d44216bd964f61655df809efbf63ddd8a7bfd.

* Cleanup poco unbundle definition

* Fix PDF build

* Remove unused set affinity

* Add _AFXDLL as target compile definitions

* Refactor add_definitions to target_compile_definitons in Util

* Refactor add_definitions to target_compile_definitons in XML

* Remove THREADSAFE in data sql cmake build

* Refactor add_definitions to target_compile_definition in cmake mysql

* Refactor add_definitions to target_compile_definition in cmake odbc

* Refactor add_definitions to target_compile_definition in cmake sqlite

* Refactor add_definitions to target_compile_definitions in platform specific cmake

* Add _DEBUG as compile definition

* Add build dependencies between Foundation-testrunner and TestApp, TestLibrary in cmake build

* cleanup LIB_MODE_DEFINITIONS in cmake buld system

* Fix broken merge

* Fix android foundation test

* Fix old redis build version

* Fix android fondation test

* Cleanup target link libraries.

* Update cmake documentation

* Some fixese in crypto and netssl for win and some cleanup an SQL

* Minor fix in root CMakeList.txt

* Squashed commit of the following:

commit df050b56b6d81eaf9bdb37bb016fe9a3554eba4f

    Fix build dependecies in cmake

* Squashed commit of the following:

commit f41ce2bb404e197ff04b1e64f7b66c9a2b1e03c8

    Fix PostgreSQL build

* Squashed commit of the following:

commit b7da0deed67ffff23a8b7a50d6deff1e022b2577

    Set db hostnames

* Update doc

* Update cmake build commands

* Set public on target link libraries in cmake build

* Fix broken cppunit merge
2018-06-03 11:19:00 -05:00
Francis ANDRE
c9c516c738 Add '>' & '<' to delimit the displayed string 2018-05-27 09:52:23 +02:00
Francis ANDRE
ddfe0dfd70 Merge remote-tracking branch 'origin/develop' into develop 2018-05-27 08:30:02 +02:00
Francis ANDRE
2fe019b36c Display tmpPath 2018-05-27 08:28:54 +02:00
Alex Fabijanic
f0a04d9dad more travis fixes 2018-05-25 15:45:14 -05:00
Alex Fabijanic
b6fb0a83cd more travis fixes 2018-05-25 15:43:32 -05:00
Alex Fabijanic
8e1412dc17 try to fix travis 2018-05-25 15:43:07 -05:00
Francis ANDRE
e7962c4e49 Exclude constructor/destructor 2018-05-15 16:21:52 +02:00
Francis ANDRE
420f3985cb Exclude from Foundation testsuite on Cygwin 2018-05-15 14:45:16 +02:00
Francis ANDRE
b1c487c756 Remove extra #endif 2018-05-15 12:53:35 +02:00
Francis ANDRE
4864e450e4 Start cygserver under DOS 2018-05-15 11:13:49 +02:00
Francis ANDRE
6210be44a6 Remove from Cygwin for now 2018-05-13 18:43:11 +02:00
Aleksandar Fabijanic
4efaa99fff Add WeakRefPtr to Foundation #2246 (#2247)
* Logger & Channel classes now using AutoPtr<Channel> instead of Channel* (API improvement)

* fix CachingChannel

* more fixes

* Configuration: remove raw pointers from interfaces #2077

* Add WeakPtr to Foundation #2246

* Add WeakPtr to Foundation #2246 (buildsystems files)

* Add WeakPtr to Foundation #2246 (x64 VS project files)

* backtrace and Event fixes

* add ordered map

* add ordered set

* add sanitize makefiles

* update RefPtr doc

* fix AtomicCounter includes

* add ordered containers tests

* fix xml test compile error

* remove operator bool rom smart pointers

* Poco::strToInt<> fails for values right above the type's boundary / limit #2250

* add g++ -ftrapv config

* remove Version.h includes (now included from Config.h)

* comment out offending SQLite test (TODO)

* add AtomicFlag and SpinlockMutex

* remove RefCountedObject include from RefPtr and WeakRefPtr mutex template param

* add WeakRef SpinLockMutex threading test

* WeakRefPtr, backtrace, NDC, refcount DC fixes

* SQL fixes

* update RCO documentation

* XML/DOM: Remove raw pointers from public interfaces #2075

* few fixes

* PocoDoc - make logger non-static reference member

* remove path char array initialization

* Fix failing unit test, adding d in debug mode for TestApp and TestLibrary

* fix application config pointer

* fix some crypto warnings

* fix Process tests and consolidate TestApp name building

* define PathImpl::selfImpl for WinCE

* restore WinCE test app name extension

* attempt to passify 32 bit clang

* fix failing Active* tests

* Add POCO_OS_ANDROID support for Path::self()

* Add build dependencies between Foundation-testrunner and TestApp, TestLibrary in cmake build

* Remove to set LD_LIBRARY_PATH on foundation test

* revert to develop XML

* fix VS150 env not found (hardcode it)

* undef min/max
2018-05-02 16:04:39 -06:00
Francis ANDRE
0d41e3ab19 Use "Path" instead of "PATH" 2018-04-17 08:09:07 +02:00
Francis ANDRE
1f5a75441f Merge remote-tracking branch 'origin/develop' into develop 2018-04-17 08:04:03 +02:00
Jörg-Christian Böhme
3d71670771 Fix shared library test in cmake build 2018-04-17 02:07:27 +02:00
Francis ANDRE
ad14a7fe1c Merge remote-tracking branch 'origin/develop' into develop
Conflicts:
	Foundation/testsuite/src/SharedLibraryTest.cpp
2018-04-16 11:07:41 +02:00
Jörg-Christian Böhme
83fba057de Fix shared library test in cmake build for debug 2018-04-16 10:57:54 +02:00
Francis ANDRE
b7c0a8d54a Restore ClassLoaderTest unit testing. 2018-04-15 09:59:39 +02:00
Francis ANDRE
26ff21e7ff Remove !DEBUG guard 2018-04-13 04:04:50 +02:00
zosrothko
b3d107de94 Replace assert by assertTrue (#2242)
* Update Nuget packaging

* Split a single Nuget package into 2: x86/x64 because its size is greater
than 250Mb, which is the upper limit of Bintray

* CppUnit/Test.h: Rename assert by assertTrue

* Restore poco_assert

* leave old assert for backward compatibility

* add undef

* remove whitespace

* Display PocoDic.ini

* Fix CppUnit includes path

* Delete TestCaller.h

* Create dependencies
2018-03-26 06:56:33 -06:00
Timothy Brackett
43cbd82b7f Fix #1241 Rename CMAKE Variables to allow grouping (#1437)
* Add macro to map ENABLE_* variables provided on CMake command-line to POCO_ENABLE_* variables.

* Properly map ENABLE_* values to POCO_ENABLE_* variables instead of assuming ON
2018-03-26 07:13:54 +02:00
Jörg-Christian Böhme
636cf4cefb Fix ClassLoader and SharedLibrary test for android (#2209) 2018-03-19 01:32:33 +01:00
Yegor Yefremov
742f4578fc cmake: use the standard CMake flag to drive the shared object build (#2057)
* cmake: use the standard CMake flag to drive the shared object build

* Add deprecated warning and build always shared test library
2018-03-12 20:15:24 +01:00
Joerg-Christian Boehme
31524c9c23 Exclude ClassLoader and SharedLibrary test for android build. Its failing, need a fix. 2018-03-08 20:20:31 +01:00
Jörg-Christian Böhme
3b782030ef Fix android test in cmake 2018-03-07 23:10:40 +01:00
Jörg-Christian Böhme
fcf4266bb5 Change file test. Use temp instead of home for file test space to fix android test. 2018-03-07 23:09:56 +01:00
Jörg-Christian Böhme
a9d54f7f80 Cleanup unix path when double separitons occures 2018-03-07 23:02:09 +01:00
Joerg-Christian Boehme
d9ef54e934 Fix android test, add TestLibrary.so in cmake test 2018-03-06 23:08:13 +01:00
Jörg-Christian Böhme
042ff32424 Add POCO_OS_ANDROID as platfrom definitons (#2186)
* Add POCO_OS_ANDROID as platform definition
2018-03-05 22:02:40 +01:00
Joerg-Christian Boehme
a834aad0b1 Add android build on travis (#1981)
* Add build for android in travis CI.

* Fix review findings. Change from __ANDORID__ to POCO_ANDROID

* Add android test

* Fix compile issue after rebase

* Ignore test big ping when its failing
2018-03-05 22:02:40 +01:00
Alex Fabijanic
f7b73fb807 fix DirectoryIterator tests (hiding won't work for root), part II 2018-03-01 22:05:56 -06:00
Alex Fabijanic
fae7a27205 fix DirectoryIterator tests (hiding won't work for root) 2018-03-01 21:44:56 -06:00
Alex Fabijanic
417be8d4d1 Additional Functions for Dynamic::Struct (clear(), swap(), getVar()) #1330 2018-02-26 22:43:04 -06:00
Günter Obiltschnig
fab94585bf reduce maximum character sequence length to 4, in accordance with UTF-8 2018-02-13 21:46:51 +01:00
Conor Burgess
af09a02a34 Stricter JSON standard conformance (#2153) 2018-02-13 07:15:53 -06:00
zosrothko
5fa3d6094e Backport of pocoproject/feature-gradle to pocoproject/develop (#2127)
* Backport of feature-gradle

Signed-off-by: Francis ANDRE <francis.andre.kampbell@orange.fr>

* Replace '/' by '\' to comply with DOS path

Signed-off-by: Francis ANDRE <francis.andre.kampbell@orange.fr>

* Cleanup

Signed-off-by: Francis ANDRE <francis.andre.kampbell@orange.fr>

* Put environment setting at the Exec task.

Signed-off-by: Francis ANDRE <francis.andre.kampbell@orange.fr>

* Use standard release

Signed-off-by: Francis ANDRE <francis.andre.kampbell@orange.fr>

* Updated mkdoc configuration

Signed-off-by: Francis ANDRE <francis.andre.kampbell@orange.fr>

* Remove lines guarded by POCO_ENABLE_CPP11

Signed-off-by: Francis ANDRE <francis.andre.kampbell@orange.fr>

* Merge remote-tracking branch 'origin/develop' into develop

* Fix NuGet & Wix input dependencies file set.

Signed-off-by: Francis ANDRE <francis.andre.kampbell@orange.fr>

* Remaining fixes for Data2SQL switch.

* Use $global:LastExitCode instead of a local LastExitCode
2018-02-09 08:05:15 -06:00
Aleksandar Fabijanic
2be0661a0b Json unicode escape (#2147)
Json unicode escape (#2142)
2018-02-08 18:42:30 -06:00
Aleksandar Fabijanic
df5968ce16 Json unicode escape && preserveOrder keys sync (#2145)
* Only escape compulsory characters for JSON by default

* add enable/disable unicode escaping flags to stringify #2137

* JSON::Object preserveOrder keys not synced on assignment #2142

* fix assignment preserveOrder and add object copy tests

* add object move tests

* fix comment

* enum for JSON::Object options
2018-02-08 09:08:42 -06:00
Aleksandar Fabijanic
b49ac67225 Data2sql (#2070)
* remove leftover progen files

* remove Data sources and turn headers into forwards

* add SQL files #2059

* Data2sql: adjust Travis, AppVeyor & Makefiles (#2069)

* Replace Data by SQL

* Replace Data by SQL

* Replace Data by SQL

* Replace Data by SQL

* fix header forwarding

* Data2sql: Fixes for complete Travis CI success (#2071)

* Replace Data by SQL

* Replace Data by SQL

* Replace Data by SQL

* Replace Data by SQL

* Replace Data by SQL

* Restore DataFormatException

* Replace Data by SQL

* Replace Data by SQL

* Replace Data by SQL

* Replace Data by SQL

* construct RowFilter from RecordSet reference instead of pointer

* pass Container ref instead of ptr to Column

* elimitate g++ warnings

* SQL: remove raw pointers from interfaces #2094; add constness and move ops where appropriate

* tidy up Postgres

* ODBC fixes
2018-01-18 11:29:28 -06:00