summaryrefslogtreecommitdiff
path: root/tests
Commit message (Collapse)AuthorAgeFilesLines
* Update copyright & license header to use SPDX idAlan Antonuk2021-07-277-171/+15
| | | | | | | This makes license detection machine-readable, and makes source files more concise and easier to read and understand. Signed-off-by: GitHub <noreply@github.com>
* lib: remove use of msinttypesAlan Antonuk2021-05-202-311/+0
| | | | | | | | | msinttypes was a workaround for MSVC not supplying a working stdint.h and inttypes.h. MSVC 2013 and newer supply these headers. Older versions of MSVC are not supported by Microsoft, so it seems reasonable to drop these at this point. Signed-off-by: GitHub <noreply@github.com>
* ssl: remove obsolete amqp_hostcheckAlan Antonuk2021-04-072-76/+0
| | | | | | This is dead code, obsoleted by #673 (setting minimum OpenSSL v1.1.1). Signed-off-by: GitHub <noreply@github.com>
* Move official includes to rabbitmq-c/ directoryAlan Antonuk2021-04-054-5/+5
| | | | | | | | | | | | | | | Move official rabbitmq-c includes under the rabbitmq-c, thus new programs should use the following include paths: amqp.h -> rabbitmq-c/amqp.h amqp_tcp_socket.h -> rabbitmq-c/tcp_socket.h amqp_ssl_socket .h-> rabbitmq-c/ssl_socket.h amqp_framing.h -> rabbitmq-c/framing.h Existing include files are left with a warning message and including their new equivalents, so existing programs should compile without modification. Signed-off-by: GitHub <noreply@github.com>
* Move public header files to include directoryAlan Antonuk2021-04-051-1/+4
| | | | Signed-off-by: GitHub <noreply@github.com>
* Add option to run system tests (disabled by default).Simon Lepasteur2020-03-121-3/+5
| | | | | | | | | System tests require a RabbitMQ or other AMQP server to be running on `localhost` at TCP port number 5672 and therefore fails if no such server is running on the build machine. This is surprising for everyone running the standard `make test` to ensure the library is built correctly.
* Format code with clang-formatAlan Antonuk2017-12-058-505/+442
|
* Remove vim mode lines.formatAlan Antonuk2017-12-048-8/+0
| | | | They're hard to keep in sync with .clang-format or other tools.
* test: Bump timeout in tests to 5spr443Alan Antonuk2017-11-061-2/+2
| | | | 500ms is too short, and regularly times out when running on travis.
* ci: Add coverage build to travissigiesec2017-10-301-1/+5
| | | | | This builds rabbitmq-c with coverage enabled, and runs the tests, uploading the results to coveralls.io.
* test: add tests for basic.get, basic.consume & basic.publishsigiesec2017-10-302-0/+211
| | | | Add integration tests that run against a locally running broker.
* Fix: small warning fixes.Alan Antonuk2016-04-091-0/+3
|
* Test: correct overflow in constant.Alan Antonuk2016-04-091-1/+1
|
* Test: use correct printf for unsigned.Alan Antonuk2016-04-091-1/+1
|
* Lib: amqp_parse_url should initialize outputAlan Antonuk2015-10-241-1/+0
| | | | | | | amqp_parse_url() calls amqp_default_connection_info() to initialize the output parameter to sensible defaults that mirror what the Java and .NET do. Fixes #319
* tests: fix memory leak in test_table.cAlan Antonuk2015-06-071-1/+2
|
* Win32: fixup a few MSVC warnings in test & examplesAlan Antonuk2015-06-022-4/+11
|
* win32: Enable static builds on Win32.Alan Antonuk2015-06-011-0/+1
|
* Add test for amqp_merge_capabilities function.auth_failureAlan Antonuk2015-05-062-0/+208
|
* Correct configure_file in tests directory.Alan Antonuk2015-05-021-1/+1
| | | | COPY_ONLY should be COPYONLY. (Yay developer warnings).
* Unit test for verify sasl mechanismsBhasker Allam2015-04-052-0/+76
|
* Make tests only link against static rabbitmqAlan Antonuk2015-04-051-3/+3
| | | | | This gets around issues with symbol visibility issues while testing functions that are not declared to be visibile outside the library.
* Add test for amqp_error_string2() for new values.Alan Antonuk2015-01-062-0/+60
| | | | | Add a tests that ensures that we add error message strings as we add new amqp_status_enum values.
* CMake: Add -DHAVE_CONFIG_H to tests/*.cAlan Antonuk2014-04-131-0/+2
| | | | | test_hostcheck includes a file which includes amqp_private.h which needs config.h.
* [openssl] Support wildcard hostname verificationMichael Steinert2014-03-042-0/+83
| | | | Most of this code comes from version Curl 7.35.
* Correct usage of amqp_error_string in test codeAlan Antonuk2013-06-142-3/+3
|
* Fix code formatting to match the rest of the libAlan Antonuk2013-04-171-30/+30
|
* Add amqps:// support to the URL parserMichael Steinert2013-04-091-15/+96
| | | | Signed-off-by: Michael Steinert <mike.steinert@gmail.com>
* Updating license yearAlan Antonuk2013-04-082-0/+6
|
* Formatted source code with astyle utiltyAlan Antonuk2013-04-082-131/+143
|
* Adding vim modelines to help with source formattingAlan Antonuk2013-04-053-0/+3
|
* CMake: build both static and shared libs in one buildAlan Antonuk2012-11-141-2/+2
|
* Make inttypes.h available when compiling for msvcAlan Antonuk2012-10-022-0/+312
| | | | | | Test programs require inttypes.h which MSVC doesn't supply at any version (stdint.h is supplied at 1600+). Make it available in these situations
* Removed redundant msinttypes inclusion in testsAndrew Kravchuk2012-07-231-5/+0
|
* msinttypes.h is always required on MSVC for testsAlan Antonuk2012-05-241-0/+5
|
* Adding tests/ directory to CMake buildAlan Antonuk2012-05-242-1/+11
|
* Set default visibility to hidden & enable a couple more warningsMichael Steinert2012-05-171-4/+3
| | | | | | | | | | | | | | Enable the following GCC options: 1. -Wstrict-prototypes 2. -Wcast-align 3. -fno-common 4. -fvisibility=hidden This commit also includes some general cleanup of header files (mostly for readability). Signed-off-by: Michael Steinert <mike.steinert@gmail.com>
* Fix compiler warnings (checked clang & gcc)Michael Steinert2012-05-172-27/+21
| | | | Signed-off-by: Michael Steinert <mike.steinert@gmail.com>
* Convert to non-recursive AutomakeMichael Steinert2012-05-172-19/+1
| | | | | | | | This change should speed up parallel builds considerably. It also simplifies the structure of the build system making it possible to properly track dependencies. Signed-off-by: Michael Steinert <mike.steinert@gmail.com>
* Automated relicensing of source files MPL/GPL -> MITMarek Majkowski2012-04-122-52/+40
|
* Update copyright 2012Emile Joubert2012-02-022-2/+2
|
* Add support for parsing amqp URLs to librabbitmqDavid Wragg2011-09-212-1/+175
|
* Automatically run test_tables in 'make check'David Wragg2011-09-212-122/+236
| | | | | | This involves making test_tables self-contained. Previously, it would write to stdout, and that output had to be manually compared with test_tables.expected. Now the comparison is automated.
* Remove the redundant float and double encoding testsDavid Wragg2011-09-211-26/+0
| | | | test_table_codec already tests these.
* Don't emit trailing spaces in test_tables.cDavid Wragg2011-07-051-14/+14
|
* Remove trailing whitespaceDavid Wragg2011-07-051-9/+9
|
* Update copyright noticesDavid Wragg2011-03-011-19/+7
| | | | And generally bring debian/copyright up to date.
* Use the msinttypes header when building with the Microsoft compilerDavid Wragg2010-10-211-0/+4
|
* Make test_tables.c ISO C90 cleanDavid Wragg2010-10-212-92/+195
| | | | | | | (As long as you have a stdint.h and inttypes.h available.) And kill the unclean macros in amqp.h that were only used from test_tables.c.
* Pass "-ansi -pedantic" to gcc, so it tells us when we stray from C90David Wragg2010-10-211-0/+8
| | | | | | | | And fix up the resulting warnings We don't use "-ansi -pedantic" in the tools dir, because that code relies on libpopt, and so is unlikely ever to work with the Microsoft compiler anyway.