DFSG: unit test using only free multimedia #326

pull/331/head
nick black 5 years ago
parent c82cb66fab
commit 736717f58b
No known key found for this signature in database
GPG Key ID: 5F43400C21CBFACC

3
debian/control vendored

@ -79,7 +79,8 @@ Description: Binaries from libnotcurses
an API similar to that of Curses, and rides atop libtinfo.
.
These utilities from the notcurses project include notcurses-demo,
notcurses-view, notcurses-planereel, and notcurses-input.
notcurses-view, notcurses-planereel, and notcurses-input. In
addition, the unit tests are bundled as notcurses-tester.
Package: notcurses-data
Architecture: all

@ -34,7 +34,7 @@ TEST_CASE("Multimedia") {
int averr;
int dimy, dimx;
ncplane_dim_yx(ncp_, &dimy, &dimx);
auto ncv = ncvisual_open_plane(nc_, find_data("dsscaw-purp.png"), &averr, 0, 0, NCSCALE_STRETCH);
auto ncv = ncvisual_open_plane(nc_, find_data("changes.jpg"), &averr, 0, 0, NCSCALE_STRETCH);
REQUIRE(ncv);
REQUIRE(0 == averr);
auto frame = ncvisual_decode(ncv, &averr);
@ -54,7 +54,7 @@ TEST_CASE("Multimedia") {
int averr;
int dimy, dimx;
ncplane_dim_yx(ncp_, &dimy, &dimx);
auto ncv = ncplane_visual_open(ncp_, find_data("dsscaw-purp.png"), &averr);
auto ncv = ncplane_visual_open(ncp_, find_data("changes.jpg"), &averr);
REQUIRE(ncv);
REQUIRE(0 == averr);
auto frame = ncvisual_decode(ncv, &averr);
@ -74,7 +74,7 @@ TEST_CASE("Multimedia") {
int averr;
int dimy, dimx;
ncplane_dim_yx(ncp_, &dimy, &dimx);
auto ncv = ncplane_visual_open(ncp_, find_data("dsscaw-purp.png"), &averr);
auto ncv = ncplane_visual_open(ncp_, find_data("changes.jpg"), &averr);
REQUIRE(ncv);
REQUIRE(0 == averr);
auto frame = ncvisual_decode(ncv, &averr);
@ -123,7 +123,7 @@ TEST_CASE("Multimedia") {
int averr;
int dimy, dimx;
ncplane_dim_yx(ncp_, &dimy, &dimx);
auto ncv = ncvisual_open_plane(nc_, find_data("fm6.mkv"), &averr, 0, 0, NCSCALE_STRETCH);
auto ncv = ncvisual_open_plane(nc_, find_data("notcursesI.avi"), &averr, 0, 0, NCSCALE_STRETCH);
REQUIRE(ncv);
CHECK(0 == averr);
auto frame = ncvisual_decode(ncv, &averr);
Loading…
Cancel
Save