summaryrefslogtreecommitdiffstats
path: root/test
AgeCommit message (Collapse)AuthorFilesLines
2020-12-31Format all code with clang-formatDavid Robillard47-3380/+3301
2020-12-18Windows: Prefer backslash as a path separatorDavid Robillard1-3/+31
This situation is, as always, a total nightmare. In an attempt to not make weird paths with mixed separators, a heuristic is used here which uses forward slash if it seems that the input paths do. Otherwise, backslash (the "preferred" separator on Windows despite all good sense) is used.
2020-12-18Windows: Add test cases for lilv_path_is_absolute()David Robillard1-0/+7
2020-12-18Add lilv_path_absolute_child()David Robillard1-0/+21
2020-12-18Add lilv_path_filename()David Robillard1-0/+23
2020-12-18Ensure that bundles are removed in state testsDavid Robillard1-2/+2
2020-12-18Check file contents rather than canonical paths in state testsDavid Robillard1-6/+2
This makes the checks work when the files are not symlinks, as on Windows.
2020-12-18Free instances before deleting state filesDavid Robillard1-7/+8
This ensures that the files are no longer in use so they can be removed on Windows.
2020-12-17Fix writing state manifests on WindowsDavid Robillard1-1/+119
2020-12-16Fix inconsistent parameter nameDavid Robillard1-2/+2
2020-12-16Isolate variable declarations and initialize all variablesDavid Robillard2-4/+6
2020-12-16Clean up includesDavid Robillard10-11/+10
2020-12-16Add separate clang-tidy configuration for testsDavid Robillard1-0/+41
2020-12-01Rewrite state test suiteDavid Robillard1-399/+797
Still a little bit hairy, but much better, and it's at least possible to add cases now without running away screaming.
2020-12-01Move features to shared test contextDavid Robillard1-71/+82
2020-12-01Factor out loading test pluginDavid Robillard1-16/+29
2020-12-01Factor out state test contextDavid Robillard1-33/+64
2020-12-01Factor out test URI mapDavid Robillard3-35/+98
2020-08-07Fix error handling when copying filesDavid Robillard1-0/+14
2020-08-07Add filesystem testsDavid Robillard2-40/+460
2020-08-06Add lilv_remove()David Robillard2-11/+3
2020-08-06Rename some filename utilities for clarityDavid Robillard4-15/+15
Loosely inspired by Python and the std::filesystem API.
2020-08-06Separate filesystem utilitiesDavid Robillard13-10/+17
2020-07-16Fix literal conversion warnings on MSVCDavid Robillard1-3/+3
2020-07-16Modernize compiler version checksDavid Robillard1-2/+2
Avoids a warning on compilers where __GNUC__ is not defined.
2020-07-16Add missing extern declarationDavid Robillard1-0/+3
This avoids a clang warning about strict declarations.
2020-07-16Add missing static specifiersDavid Robillard1-6/+6
2020-07-16Remove unnecessary definesDavid Robillard2-4/+0
2020-07-16Split test suite up into several independent programsDavid Robillard24-2137/+2917
2020-07-16Clean up includesDavid Robillard1-2/+3
2020-07-16Automatically write prefixes to test filesDavid Robillard2-42/+28
Makes the code less repetitive and verbose. They were all the same at this point anyway, since unused prefixes don't hurt anything.
2020-07-16Use standard assert for test expectationsDavid Robillard10-398/+358
The old one aborted anyway, and I've been using assert for tests in other projects for a while now, and never really missed having something more complex. The lack of a dependency or repetitive code is nice. Since the unit tests are about to be split up, the abort thing will become less of an issue anyway.
2020-07-15Rewrite and separate common test facilitiesDavid Robillard3-414/+485
2020-01-18Delete all temporary state bundles saved by the test suiteDavid Robillard1-9/+35
2020-01-18Fix deleting state bundles loaded from the modelDavid Robillard1-30/+32
2019-12-08Implement state:freePath featureDavid Robillard2-22/+46
2019-10-17Fix Windows warningsDavid Robillard2-2/+3
2019-06-21Refuse to store state properties with null keysDavid Robillard1-0/+10
2019-06-21Refuse to store duplicate properties when saving plugin stateDavid Robillard1-0/+11
2019-04-21Fix building in a recursive projectDavid Robillard1-7/+7
2019-04-15Disable state unit tests on WindowsDavid Robillard1-0/+5
Unfortunately state with files does not currently work correctly on Windows. Disabling the tests there for now until this is fixed.
2019-04-15Use putenv instead of setenv in unit tests on WindowsDavid Robillard1-11/+26
This makes things work on Windows, because only putenv changes the environment of the current process.
2019-04-15Remove non-ASCII text from source codeDavid Robillard1-5/+5
This causes issues on Windows.
2019-04-15Fix mismatched malloc/free callsDavid Robillard1-8/+18
2019-04-14Use modern LV2 includesDavid Robillard13-19/+19
2019-04-14Fix Windows cross-library malloc/free errorsDavid Robillard1-2/+2
2019-04-14Fix test bundle URI on WindowsDavid Robillard1-2/+8
2019-04-14Make test suite self-containedDavid Robillard1-59/+36
This sets up the test environment with a custom LV2_PATH so that the test suite does not depend on any system-installed LV2 resources.
2019-04-14Add skeleton core.lv2 bundle for testsDavid Robillard2-0/+39
2019-01-13Update copyright datesDavid Robillard14-14/+14