summaryrefslogtreecommitdiffstats
path: root/test
AgeCommit message (Collapse)AuthorFilesLines
2023-04-19Add plist_read_from_file() to interface, update plist_from_memory()Gravatar Nikias Bassen1-44/+2
plist_read_from_file() is a convenience function that will open a given file, checks its size, allocates a buffer large enough to hold the full contents, and reads from file to fill the buffer. Then, it calls plist_from_memory() to convert the data to plist format. A (breaking) change had to be made so that plist_from_memory() will also return the parsed format in its 4th argument (if non-NULL).
2023-02-06libcnary: Updated typedefs of node_t and node_list_t to contain pointerGravatar Nikias Bassen1-2/+2
This makes the code more readable. Obviously all the code that uses it is also updated.
2023-01-16Rename PLIST_UINT to PLIST_INT and add plist_new_int() and plist_get_int_val()Gravatar Nikias Bassen3-0/+140
This properly supports getting and setting signed or unsigned integer values. Also, a new helper function plist_int_val_is_negative() was added to determine if a given #PLIST_INT node has a negative value or not. The old type PLIST_UINT is defined as a macro with the value of PLIST_INT for backwards compatibility. This commit also adds int vs. uint support to the C++ interface, and the python bindings in a hopefully useful way.
2023-01-08Add support for OpenStep plist formatGravatar Nikias Bassen12-16/+349
2022-02-07test: Polish json3.test to not leave temp file after testGravatar Nikias Bassen1-3/+5
2022-02-07test: Add int64 min/max testcase for JSON parserGravatar Nikias Bassen3-2/+24
2022-01-31test: Update JSON test case to have negative numbersGravatar Nikias Bassen1-1/+1
2022-01-25test: Rename json test files to .jsonGravatar Nikias Bassen5-3/+4
2022-01-25test: Add additional JSON test caseGravatar Nikias Bassen4-7/+28
2021-12-23test: Work around JSON parser limitation expecting to have a 0-terminated ↵Gravatar Nikias Bassen1-0/+3
string as input
2021-12-23test: Update json test case to not rely on --enable-debugGravatar Nikias Bassen1-9/+6
2021-12-23Add support for JSON formatGravatar Nikias Bassen12-13/+247
2021-12-23test: Add PLIST_UID test caseGravatar Nikias Bassen4-3/+155
2020-11-24Improve code readability by not using else after returnGravatar Rosen Penev2-11/+5
[clang-tidy] Found with readability-else-after-return Signed-off-by: Rosen Penev <rosenp@gmail.com>
2020-06-14Add API version to library and pkgconfig file for proper linkingGravatar Nikias Bassen1-2/+2
2020-06-09Unfold automake variables into multiple lines for maintainabilityGravatar Martin Szulecki1-4/+14
2019-12-18test: Use diff --strip-trailing-cr to fix tests on windowsGravatar Nikias Bassen3-9/+6
2019-12-18test: Write outputfile to test log for signedunsigned2 testGravatar Nikias Bassen1-0/+3
2019-05-16test: Merge *cmp.test into *.test to allow parallel testingGravatar Nikias Bassen13-48/+24
2017-04-20test: Rename dates.test output files so the get removed upon 'make distclean'Gravatar Christophe Fergeau1-2/+2
2017-04-20test: Add missing test files to Makefile.am/EXTRA_DISTGravatar Christophe Fergeau1-1/+42
2017-04-20test: Fix wrong filename in EXTRA_DIST entry of Makefile.amGravatar Nikias Bassen1-1/+1
2017-02-01test: Add test cases for different bplist offset and reference sizesGravatar Nikias Bassen20-0/+34
2017-01-02test: Add some more test cases for various valid and invalid contentGravatar Nikias Bassen7-1/+62
2017-01-02test: Add new test case for dictionaries with empty keysGravatar Nikias Bassen3-1/+22
2017-01-02test: Add new test case for entitiesGravatar Nikias Bassen3-1/+71
2016-11-18test: Fix test plist having duplicate keys in dictionaryGravatar Nikias Bassen1-1/+1
2016-09-19test: Add additional test case to check extended date rangeGravatar Nikias Bassen3-0/+20
2016-06-29test: Add another test case for signed/unsigned (multiple) integersGravatar Nikias Bassen4-0/+35
Apart from testing the actual integer signed vs. unsigned value storage and conversion, this test will check that the binary plist optimization is not re-using existing values. Basically it will test the fix that was introduced with commit acd226d1f71a78dd23b47a9a5c4ca8cf8068d509.
2015-02-05test: Add missing .test filesGravatar Nikias Bassen3-0/+35
2015-02-05test: Add more test cases covering binary plist issuesGravatar Nikias Bassen5-2/+32
2014-10-03Avoid exporting non-public symbolsGravatar Nikias Bassen1-1/+1
2014-06-13test: Fix make clean in relation with out-of-tree build directoryGravatar Martin Szulecki1-1/+1
2014-05-27test: Add keys with XML entities to data plist filesGravatar Martin Szulecki5-2/+10
2014-05-27test: Fix clean target to remove all generated filesGravatar Martin Szulecki1-1/+1
2014-05-23test: Add test cases for integer nodesGravatar Nikias Bassen9-2/+78
2014-05-23test: Add data/7.plist to extra_dist targetGravatar Nikias Bassen1-1/+1
2014-05-22test: Use better test data for timezone testsGravatar Nikias Bassen3-2/+12
2014-04-02test: Fix timezone test cases with set -eGravatar Nikias Bassen2-0/+4
2014-04-01test: Add new timezone testsGravatar Nikias Bassen3-1/+37
2014-02-13Replace some LDADD references to use $(top_builddir) for distcheckGravatar Martin Szulecki1-2/+2
2014-02-13fix make distcheckGravatar Nikias Bassen14-105/+75
2013-12-13change build system to autotoolsGravatar Nikias Bassen14-29/+169
2011-05-27Make libplist glib freeGravatar Nikias Bassen2-4/+4
2010-01-21Fix some warningsGravatar Jonathan Beck2-10/+4
2010-01-14Make sure to convert predefined xml entities in xml outputGravatar Martin Szulecki1-0/+2
For string nodes, a set of special characters must be converted to predefined xml entities. This patch adds an entitiy test case for this and makes libplist pass it fine by explicitly adding text nodes.
2010-01-14Make tests also work when building outside the source treeGravatar Martin Szulecki1-12/+13
2009-11-10Remove deprecated functions from API.Gravatar Jonathan Beck2-0/+18
2009-10-28Format sources to ANSI style using AStyle (astyle --style=ansi).Gravatar Jonathan Beck2-192/+204
2009-10-28Fix build for MSVC9.Gravatar Jonathan Beck2-1/+9