summaryrefslogtreecommitdiff
path: root/testing
Commit message (Collapse)AuthorAgeFilesLines
...
* Tweak the '-Wno-*' arguments passed to gcc during testsArmin Rigo2019-11-074-27/+27
|
* Issue #429Armin Rigo2019-10-211-0/+6
| | | | | | There are corner cases in which we can see a recursion on the same types. Instead of fighting them all, change the logic to complain if we recurse more than 1000 times.
* Windows fix: sometimes, time.sleep() doesn't sleep apparentlyArmin Rigo2019-10-152-12/+20
|
* Add a warning when we use in cdef() a global variable without also ↵Armin Rigo2019-10-1410-109/+113
| | | | specifying a storage class (extern or static)
* oopsArmin Rigo2019-09-201-2/+2
|
* Silence the warningArmin Rigo2019-09-201-1/+1
|
* Add another testArmin Rigo2019-07-231-0/+12
|
* Issue #413Armin Rigo2019-07-231-0/+12
| | | | | Test and "fix" for a corner case: now it gives a RuntimeError with a message, instead of a C-level infinite recursion
* Issue #412Armin Rigo2019-06-121-0/+53
| | | | Test and fix for unnamed bitfields which are not ":0" bitfields.
* Support for from_buffer("type *")Armin Rigo2019-05-261-0/+21
|
* Fix C integer division. Add modulo.Armin Rigo2019-04-261-0/+26
|
* merge pull request #96. Thanks Cody!Armin Rigo2019-04-2614-126/+326
|\
| * Modernize this, because very recent pytests crash when seeing theArmin Rigo2019-04-192-4/+6
| | | | | | | | old way
| * Windows fixArmin Rigo2019-04-191-2/+2
| |
| * merge headsArmin Rigo2019-04-028-117/+238
| |\
| | * styleArmin Rigo2019-04-021-1/+1
| | |
| | * Fix deprecated uses of pytest.raises()Ronan Lamy2019-03-128-117/+238
| | |
| * | remove useless try/catch, and remove unreachable elif statement.guillaumesottas2019-03-261-4/+1
| | |
| * | add support for long/long long C integer constant suffixes, and supportguillaumesottas2019-03-261-3/+36
| | | | | | | | | | | | for base 2 integer constant as well.
| * | fix #407 add support for u/U suffix in integer constants (eg. 0xABu, or 0xCDU).guillaumesottas2019-03-251-0/+7
| | |
| * | Issue #406: document the failureArmin Rigo2019-03-201-0/+5
| | |
| * | py3.8 fixesArmin Rigo2019-03-163-3/+6
| |/
| * Issue #405Armin Rigo2019-03-111-0/+30
| | | | | | | | Fix for nested struct types that end in a var-sized array
| * skip this test with the ctypes backend, for arm64 / pa-risc 64 / risc-v 64 / ↵Armin Rigo2019-02-141-0/+2
| | | | | | | | sparc 64
| * Found out a way that appears to fix the problems on WindowsArmin Rigo2019-02-132-5/+1
| |
| * Add comments about this test failing occasionally on WindowsArmin Rigo2019-02-131-0/+5
| |
* | Add support for more binary ops in enum definitions.Cody Piersall2019-02-021-2/+17
|/
* Tweaks to the pkgconfig supportArmin Rigo2019-01-311-17/+68
|
* Merged in vyskocilm/cffi (pull request #80)Armin Rigo2019-01-311-0/+43
|\ | | | | | | Passing of proper CFLAGS/CXXFLAGS/LDFLAGS is hard and error prone
| * Exception based flowMichal Vyskocil2019-01-091-2/+2
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Now the with non pkg-config backup would be ``` module_name = "_czmq" source = "#include <czmq.h>" try: print(f"### pkg-config path") ffibuilder.set_source( module_name, source, pkgconfig=["libczmq"] ) except Exception as e: print(f"Exception e: {e}") ffibuilder.set_source( module_name, source, libraries=["czmq"] ) ```
| * Real test of a pkgconfig integrationMichal Vyskocil2019-01-081-6/+6
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Fix encoding errors Given testing Python program ``` from cffi import FFI ffibuilder = FFI() ffibuilder.cdef( "char* zsys_hostname();" ) ffibuilder.set_source( "_czmq", "#include <czmq.h>", pkgconfig=["libczmq"] ) if __name__ == "__main__": ffibuilder.compile(verbose=True) ``` We can run ffibuilder from source dir of czmq ``` PKG_CONFIG_PATH=`pwd`/src python3 t.py generating ./_czmq.c ... gcc -pthread -shared -flto -fuse-linker-plugin -ffat-lto-objects -flto-partition=none ./_czmq.o -L/usr/local/lib64 -L/usr/lib64 -lczmq -lzmq -lpython3.6m -o ./_czmq.cpython-36m-x86_64-linux-gnu.so ``` ``` python3 t.py generating ./_czmq.c ... gcc -pthread -shared -flto -fuse-linker-plugin -ffat-lto-objects -flto-partition=none ./_czmq.o -L/usr/lib64 -lczmq -lpython3.6m -o ./_czmq.cpython-36m-x86_64-linux-gnu.so ``` Note that in the first case `/usr/local` has been added to the compiler path as provided by local pkg-config file.
| * merge with latest tipMichal Vyskocil2019-01-081-0/+43
| |\
| | * Increase testing coverage and refactor method namesMichal Vyskocil2019-01-081-16/+29
| | | | | | | | | | | | | | | | | | Making `pkgconfig.call` function accessible, tests can monkey patch it and provide mock. This improves testing, however raised a need to give functions better names than `pkgconfig.pkgconfig_kwargs` or `pkgconfig.pc`.
| | * code not compatible with python3Michal Vyskocil2017-05-251-2/+2
| | | | | | | | | | | | use bytes instead of strings
| | * add test for pkg-config integrationMichal Vyskocil2017-05-251-0/+30
| | |
* | | py3 fixArmin Rigo2019-01-291-1/+1
| | |
* | | Backed out changeset 7a76a3815340Armin Rigo2019-01-291-4/+5
|/ / | | | | | | | | On Windows, there is no lround() or (as far as I can find) any math function returning an integer.
* | Implement ffi.from_buffer("foo[]", x)Armin Rigo2019-01-073-26/+26
| | | | | | | | | | Also contains some improvements to the documentation about other recent additions
* | ffi.release()Armin Rigo2019-01-052-0/+36
| |
* | Issue #394Armin Rigo2018-12-163-0/+30
| | | | | | | | Implement ffi.from_buffer(x, require_writable=True)
* | Merged in rlamy/cffi (pull request #94)Armin Rigo2018-11-293-5/+30
|\ \ | | | | | | | | | Move test-only function from cffi/ to testing/
| * | Move test-only function from cffi/ to testing/Ronan Lamy2018-11-273-5/+30
| | |
* | | Silence bogus warningArmin Rigo2018-11-271-2/+5
|/ /
* | Add compatibility with pytest 4.0 without breaking older pytestsArmin Rigo2018-11-211-1/+6
| |
* | #383Armin Rigo2018-10-262-2/+2
| | | | | | | | Increase the sleep time in this test
* | CPython 2.x: ``ffi.dlopen()`` failed with non-ascii file names on PosixArmin Rigo2018-10-142-10/+31
| |
* | Issue #384Armin Rigo2018-09-191-0/+1
| | | | | | | | | | Un-ignore the warnings when testing for them, in case someone runs py.test with the PYTHONWARNINGS environment variable set
* | Issue #382Armin Rigo2018-09-041-5/+4
| | | | | | | | Second fix attempt, thanks Adam
* | Issue #382Armin Rigo2018-09-041-4/+5
| | | | | | | | | | Change the test to a non-floating-point example, where ignoring the return value should work even on x87.
* | Issue #379Armin Rigo2018-08-301-0/+15
| | | | | | | | Accept ``ffi.new("int[4]", p)`` if p is itself another cdata ``int[4]``.