345 Commits

Author SHA1 Message Date
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
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
Brenno
f491d585fc Added author and added licence in ClipProcessingJobs 2021-04-20 23:07:23 -03:00
FeRD (Frank Dana)
317c0be0c0 Tests: Switch to standard BUILD_TESTING variable 2021-04-19 17:56:19 -04:00
FeRD (Frank Dana)
89b1643e9f Tests: Shorten some crazy long test names 2021-04-19 17:25:06 -04:00
FeRD (Frank Dana)
00caff07fb CMake: Add separate unit test targets
Each unit test file ClassName.cpp, which results in the creation
of a test target openshot-ClassName-test, will now also be labeled
with the CTest label ClassName, and a target ClassName_coverage
will be generated that runs only the tests in that file.

This is especially useful when developing tests for a class, as
the tests in the class being worked on can be re-run without
having to wait a minute or more while the other tests run.
2021-04-19 17:02:19 -04:00
Frank Dana
4e4a95c648 Gitlab-CI: Update Windows builder configs, OpenShotAudio linking; enable Windows unit tests (#657)
* Remove no-longer-used cmake Modules

* Don't use OpenShot.h in ExampleHtml.cpp

When `#include`-ing the whole mess, building the file was leading
to what looked like out-of-memory errors. Replacing the monolithic
header with just the necessary ones cleared it up.

* .gitlab-ci.yml: Update for new Windows setup

* Make unit tests work under Windows

- Copying the built and depended (libopenshot-audio) DLLs into
  the unit test dir before building the tests ensures that when
  the test executables are run by the Catch.cmake module to
  discover their contents, the executables will find the DLLs
  they need in order to run.

* Gitlab-ci: Run unit tests on Windows

* Rename openshot-html-example

(The former name, openshot-html-test, was too close to the new
name format for all of our unit test executables, making things
unnecessarily confusing.)

* Rename JuceHeader.h to OpenShotAudio.h

* Github Actions: Install ALSA libs

With the switch to an EXPORTED CMake configuration for
libopenshot-audio, its dependencies become our dependencies.
Which means that CMake now correctly requires that the ALSA
libs be installed.
2021-04-19 15:59:52 -04:00
Frank Dana
51dde6602b tests: Make ImageWriter tests optional (#659)
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-04-19 15:26:10 -04:00
Frank Dana
7a6ff7c055 CMake: Properly enable unit tests (#658) 2021-04-19 13:57:13 -04:00
Frank Dana
3457ffcc7e Properly handle unavailable Catch2 (#656) 2021-04-16 11:16:55 -04:00
Brenno
2c9d2f2a32 OpenCV is again an optional dependency 2021-04-15 22:05:35 -03:00
Brenno
77aa418353 Fixed FPS ToInt() conversion and changed initial frame number to 1 2021-04-15 21:52:02 -03:00
Brenno
2cf2c55f9b Changed None to empty string, corrected dynamic pointers 2021-04-12 21:32:27 -03:00
Brenno
a7cefa4bd2 Removed namespaces, iostream library and added TrackedObject test 2021-04-12 21:22:58 -03:00