Commit graph

1205 commits

Author SHA1 Message Date
Meredith L. Patterson
1ce63c26ec sequence is definitely broken, results aren't landing in output array 2013-12-22 18:09:25 +01:00
Meredith L. Patterson
fc71e12bea nothing_p works; EndTest's failure case is producing an empty array (successful but empty sequence), success case is *also* producing an empty array 2013-12-22 18:09:25 +01:00
Meredith L. Patterson
9f55409246 EndTest is still failing, but the void*[] typemap isn't segfaulting anymore 2013-12-22 18:09:25 +01:00
Meredith L. Patterson
d544c2f4bb sequence is still segfaulting; its inner parsers seem to be getting corrupted somehow 2013-12-22 18:09:25 +01:00
Meredith L. Patterson
4d649d93d3 fixed ch; need to figure out what to do with an array of SWIG wrapped types for sequence/choice 2013-12-22 18:09:24 +01:00
Meredith L. Patterson
aa10384709 and so does h_sequence. time to fix this in swig. 2013-12-22 18:09:24 +01:00
Meredith L. Patterson
48d6cf6f88 h_in and h_not_in also have a wrong param count issue 2013-12-22 18:09:24 +01:00
Meredith L. Patterson
ce5a621ee3 h_action test is written, but something is wrong with h_choice. 2013-12-22 18:09:24 +01:00
Meredith L. Patterson
72edbfa167 so do h_right and h_middle 2013-12-22 18:09:24 +01:00
Meredith L. Patterson
596d619fb5 h_left works 2013-12-22 18:09:24 +01:00
Meredith L. Patterson
421b7f29c8 whitespace test works just fine; that segfault was entirely my fault 2013-12-22 18:09:24 +01:00
Meredith L. Patterson
9382f2720a call_action compiles; will test later, need to get python-bindings into build now. 2013-12-22 18:09:24 +01:00
Meredith L. Patterson
6c4a8f17c6 need to figure out how to apply a function in zend to something other than an array; about to run out of battery though 2013-12-22 18:09:24 +01:00
Meredith L. Patterson
5fcd9fa88d void*[] typemap compiles 2013-12-22 18:09:24 +01:00
Meredith L. Patterson
be08c128e0 h_int_range works 2013-12-22 18:09:24 +01:00
Meredith L. Patterson
c89f3dc7c7 unsigned ints working too 2013-12-22 18:09:24 +01:00
Meredith L. Patterson
b13d5045e2 there's all the signed-int parsers working 2013-12-22 18:09:24 +01:00
Meredith L. Patterson
282c42139d ChTest and ChRangeTest fail only because their result isn't being coerced to string. 2013-12-22 18:09:24 +01:00
Meredith L. Patterson
05cdf766ab uint8_t typemap is happy now 2013-12-22 18:09:24 +01:00
Meredith L. Patterson
ddbde60396 TT_BYTES is converting properly; TT_UINT is not. 2013-12-22 18:09:24 +01:00
Meredith L. Patterson
49ca034b32 typemap for HParseResult is returning the appropriate zval, but why does PHP think it's null? 2013-12-22 18:09:24 +01:00
Meredith L. Patterson
0810bd33d2 updated build/install docs 2013-12-22 18:09:24 +01:00
Meredith L. Patterson
315c7a28c6 cleaned out some cruft; php tests run on successive builds w/o needing to clean. 2013-12-22 18:09:24 +01:00
Meredith L. Patterson
4c58a0bcb2 php tests run on clean build 2013-12-22 18:09:23 +01:00
Meredith L. Patterson
da33c86898 README about php configuration 2013-12-22 18:09:23 +01:00
Meredith L. Patterson
094d7ac7ff get include paths from php-config 2013-12-22 18:09:23 +01:00
Meredith L. Patterson
5917c3a599 phpunit is now running the tests, we just need to get them into build/opt/src. 2013-12-22 18:09:23 +01:00
Meredith L. Patterson
42e0707fb8 slightly more elegant way to pass around which tests to run 2013-12-22 18:09:23 +01:00
Meredith L. Patterson
cc3160072b scons bindings=foo,bar test now runs C tests and tests for foo and bar. PHP tests need command-line fixed. 2013-12-22 18:09:23 +01:00
Meredith L. Patterson
3d64c29731 copy built lib to extension dir 2013-12-22 18:09:23 +01:00
Meredith L. Patterson
a578b2691c this works on my box; goooooo travis 2013-12-22 18:09:23 +01:00
Meredith L. Patterson
43253c1664 and now bindings=php works as a target too 2013-12-22 18:09:23 +01:00
Meredith L. Patterson
0963a9d550 that seems to be examples as its own target now 2013-12-22 18:09:23 +01:00
Meredith L. Patterson
19290a75ac helps if I commit an up-to-date SConscript 2013-12-22 18:09:23 +01:00
Meredith L. Patterson
fb5c56b28e helps if I get the include path right 2013-12-22 18:09:23 +01:00
Meredith L. Patterson
57df8e2ad5 attempt to have travis build with new bindings option 2013-12-22 18:09:23 +01:00
Meredith L. Patterson
4feec08273 making a shared library works. 2013-12-22 18:09:23 +01:00
Meredith L. Patterson
320f281ed3 doing swig steps manually, because the SharedLibrary builder was being weird. 2013-12-22 18:09:23 +01:00
Meredith L. Patterson
75def00525 scons works with BINDINGS=none 2013-12-22 18:09:23 +01:00
Meredith L. Patterson
58fdc36178 path to hammer.ini 2013-12-22 18:08:37 +01:00
Meredith L. Patterson
5cc6920b23 attempt to push test responsibility off to travis: round 1 2013-12-22 18:07:16 +01:00
Meredith L. Patterson
6cb4f82445 this won't fix the travis not finding Tests/ issue, but it should provide php.ini config 2013-12-22 18:01:35 +01:00
Meredith L. Patterson
23cb4d0f7c test runner/test dir ready to go; scons builds/executes php tests in src/bindings/php/Tests 2013-12-22 17:58:52 +01:00
Meredith L. Patterson
0c0805591c minimal working PHP tests, for h_token. 2013-12-22 17:58:52 +01:00
Meredith L. Patterson
12d93a315d need to coerce HBytes to PHP string, but this seems to be looking for an object of HBytes class 2013-12-22 17:58:52 +01:00
Meredith L. Patterson
8be21c3d28 uint8_t* input typemap works for h_token and h_parse 2013-12-22 17:58:52 +01:00
Meredith L. Patterson
213f338357 argument typemap for token works! next, make it work for parse as well. 2013-12-22 17:58:52 +01:00
Meredith L. Patterson
c51b784612 scons runs a minimal unit test, which errors. debugging typemaps commences. 2013-12-22 17:58:52 +01:00
Meredith L. Patterson
0733700343 gonna test these typemaps with the tests I'm gonna write next. 2013-12-22 17:57:44 +01:00
Meredith L. Patterson
689ee84415 stubbed PHP typemaps 2013-12-22 17:57:44 +01:00