Commit Graph

357 Commits

Author SHA1 Message Date
Frank Dana
59138ea3e4 Adopt license management via Reuse project/tool (#711)
* reuse-managed license/copyright headers

reuse is a tool for compliance with the REUSE recommendations. See
<https://reuse.software/> for more information, and
<https://reuse.readthedocs.io/> for the online documentation.

* Set jsoncpp license
* Add MIT license for Decklink sources
* Explicitly license examples/
  - Add headers to source files
  - Change blanket licensing in .reuse/dep5 to only cover binary media
  - Import CC-BY-3.0 license and assign to sintel_trailer
2021-10-16 01:26:26 -04:00
Frank Dana
88d3011455 Unit tests: Use == to compare strings (#741)
When there's a mismatch, Catch2 will output the contents of both
strings rather than a meaningless .compare() numeric value.
2021-09-27 07:14:48 -04:00
Frank Dana
b8b55050dc Merge pull request #661 from ferdnyc/redirect-print-fxns
Make console-output functions redirectable; add operator<< for Fraction, Point, Coordinate; new KeyFrame::PrintPoints & PrintValues with unit tests
2021-09-26 23:16:49 -04:00
FeRD (Frank Dana)
01d40b22fb CVTracker: Add some error-case unit tests 2021-09-08 12:42:39 -04:00
FeRD (Frank Dana)
31bfdf0e7c Fix CVTracker test for OpenCV 4.5.2+ 2021-09-06 18:00:13 -04:00
Frank Dana
d246964f0f Link catch-main wtih Catch2::Catch2 (#714)
Newer versions of Catch2 require C++14 to compile, a requirement
that won't be propagated to the object library unless we link it
to the IMPORTED Catch2::Catch2 target.
2021-08-16 18:46:14 -04:00
Jonathan Thomas
7af95c22a2 Fixing SVG unit tests to correctly check the default SVG size 2021-08-11 15:19:21 -05:00
FeRD (Frank Dana)
584e075f67 Point: Rethink stream formatting 2021-07-02 21:03:26 -04:00
FeRD (Frank Dana)
6a1579edd0 tests/KeyFrame: Tests for Print__() methods 2021-06-11 06:13:22 -04:00
FeRD (Frank Dana)
032ca616dc Tests: test << for Coordinate, Fraction, Point 2021-06-11 06:13:22 -04:00
FeRD (Frank Dana)
70ea2659d8 tests/FFmpegWriter: Add DisplayInfo test 2021-06-11 06:13:22 -04:00
FeRD (Frank Dana)
528919027c Code formatting 2021-06-11 06:13:22 -04:00
FeRD (Frank Dana)
aac42a7a0c tests/FrameMapper: Add PrintMapping() test 2021-06-11 06:10:33 -04:00
FeRD (Frank Dana)
2a90aa09a9 ReaderBase: Make DisplayInfo testable
- The function now takes a pointer to the output stream it will
  write to. The _default_ for that argument is a pointer to std::cout.
- Any unit tests which wish to test the functionality can capture
  the output by passing an alternate buffer:
    std::stringstream output;
    reader.DisplayInfo(&output);
    CHECK(output.str() == "Expected output");
2021-06-11 06:08:40 -04:00
Frank Dana
d9ea98eb2d tests: Make ImageWriter tests optional (#685)
Just like the OpenCV tests require OpenCV, the ImageWriter tests
require that ImageMagick be enabled in the build. If it isn't,
skip those tests.
2021-06-06 22:42:27 -04:00
FeRD (Frank Dana)
1cee1394bf Unit tests: Destroy zombie test
Somehow the old UnitTest++ version of tests/KeyFrame_Tests.cpp
got resurrected back into the repo. Shotgun blast to the head.
2021-06-06 03:48:47 -04:00
Brenno
27eb0e6e23 Fixed Keyframe Test 2021-05-24 11:45:39 -03:00
Brenno
cd7d6fe00c Merge remote-tracking branch 'origin/develop' into effect-parenting 2021-05-24 11:01:28 -03:00
Brenno
f51af2e917 More permissive range interval for Tracker test 2021-05-19 11:21:08 -03:00
Brenno
36c72224cf Fixed Json in Tracker Tests 2021-05-19 10:45:15 -03:00
Frank Dana
42f9aeecf9 Merge pull request #667 from ferdnyc/debug-envvar
Settings: Support LIBOPENSHOT_DEBUG envvar
2021-05-15 07:37:17 -04:00
FeRD (Frank Dana)
266455c6a2 Settings: Unit test LIBOPENSHOT_DEBUG envvar 2021-05-14 22:48:53 -04:00
Frank Dana
d54e1aa673 Merge branch 'develop' into effect-parenting 2021-05-04 07:58:43 -04:00
Frank Dana
813c5175ca OpenCV: Adapt to API changes in OpenCV 4.5.2+ (#639)
* CVTracker: Handle API changes in OpenCV
The former cv::Tracker API we've been using is now cv::legacy::Tracker,
starting in OpenCV 4.5.1.

* CVTracker: Move some includes, add std:: prefixes

* Move ClipProcessingJobs into openshot NS

* OpenCV 4.5.1 message and auto-disabling

* Add fstream includes, explicit std:: namespace
Work around a MacOS bug where bare fstream resolves to the wrong class.

Co-authored-by: Brenno <brenno.caldato@gmail.com>
Co-authored-by: Brenno A. C. Caldato <BrennoCaldato@users.noreply.github.com>
2021-05-04 07:33:47 -04:00
Brenno
4d9d6ece9a Merge remote-tracking branch 'origin/develop' into effect-parenting 2021-04-21 13:34:49 -03:00