mirror of
https://github.com/dankamongmen/notcurses.git
synced 2024-11-20 03:25:47 +00:00
DFSG: unit test using only free multimedia #326
This commit is contained in:
parent
c82cb66fab
commit
736717f58b
3
debian/control
vendored
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…
Reference in New Issue
Block a user