5 Commits

Author SHA1 Message Date
Jehan
adb1d57864 test: fix test binary build for Windows.
realpath() doesn't exist on Windows. Replace it with _fullpath() which
does the same thing, as far as I can see (at least for creating an
absolute path, it doesn't seem to canonicalize the path, or the docs
doesn't say it, yet since we are controlling the arguments from our
CMake script, it's not a big problem anyway).

This fixed the CI build for Windows failing with:
> undefined reference to `realpath'
2021-03-22 21:13:14 +01:00
Jehan
26ed628061 test: update unit test to check detected languages.
Excepting ASCII, UTF-16 and UTF-32 for which we don't detect languages
yet.
2021-03-17 12:39:54 +01:00
Jehan
d1ed97b813 test: fix test script to use the new API and get rid of build warning. 2021-03-14 00:12:30 +01:00
Jehan
6cf13f108b test: output the test file path which we failed to open.
Also properly free the string in such case.
2017-05-14 20:29:30 +02:00
Jehan
eb727d3aca Add automatic testing against every test file. 2015-11-18 18:18:27 +01:00