Commit Graph

34 Commits

Author SHA1 Message Date
Nicolas Chauvet 3e0dc1575c libva-utils: Switch AC_PROG_LIBTOOL to LT_INIT
fedora-review complain on this old deprecated macro - rhbz#1437937

Signed-off-by: Nicolas Chauvet <kwizart@gmail.com>
2017-04-06 12:05:54 +08:00
Xiang, Haihao cb3a33ea5e Add the missing header files
v2: Add the missing header files to noinst_HEADERS instead.

This fixes https://github.com/01org/libva-utils/issues/26

Signed-off-by: Xiang, Haihao <haihao.xiang@intel.com>
2017-03-17 12:47:28 +08:00
Daniel Charles d80c78c5f2 configure: change the tarball name to comply with naming convention
Compilation scripts on different distributions (i.e. arch, gentoo) rely
on the tarball name to use hyphens between words.

This patch will create tarballs with hyphenated names

TEST="make dist, should produce libva-utils.tar.*"

Fixes #21

Signed-off-by: Daniel Charles <daniel.charles@intel.com>
2017-03-13 21:35:22 -07:00
Daniel Charles de3fd670a5 test: EXTRA_DIST overriding header files inclusion
This is from make dist command.  The EXTRA_DIST inside the Makefile.am
was mistakenly overridden and as such the tarball was missing the gtest
dependencies

TEST="./autogen --prefix=<some prefix>... //more options if needed"
TEST="make dist, resultant tarball should include the gtest subfolders"
TEST="compilation of the resultant tarball should be successful when"
TEST="adding --enable-tests to configure options"

Fixes #20

Reported-by: Focus Luo <focus.luo@intel.com>
Signed-off-by: Daniel Charles <daniel.charles@intel.com>
2017-03-13 21:35:22 -07:00
Daniel Charles 076e0c3079 configure: don't print driver path information
On the summary the driver folder doesn't need to be shown
as libva and intel-vaapi-driver are already exposing such
information

Fixes #15

Signed-off-by: Daniel Charles <daniel.charles@intel.com>
2017-02-23 09:17:57 -08:00
Sean V Kelley 8948fd4b88 Bump pre-release to 1.8.0.pre2
Done to get some packages upstream ahead of release

Signed-off-by: Sean V Kelley <seanvk@posteo.de>
2017-02-18 13:55:18 -08:00
Daniel Charles 772d7d8256 enable-tests: normalize configure flag name
libva-utils contains utilities and example applications to
use VA-API.

--enable-tests configure flag enables a suite of unit tests
that are based on Google Test Framework

The flag name is modified to keep consistency with intel-vaapi-driver
unit tests configuration flag

Fixes:#12

Signed-off-by: Daniel Charles <daniel.charles@intel.com>
2017-02-16 16:52:59 -08:00
Daniel Charles 83d83adb77 skip_tests: skip unsupported profile/entrypoint, record skip tests
add a new test that will printout which profile/entrypoint
combinations will be skipped while running the suite.

Skipped tests are now recording a property and using test_streamable
to print profile/entrypoint without function calling.

Fixes #2

Signed-off-by: Daniel Charles <daniel.charles@intel.com>
2017-02-15 16:03:03 -08:00
Daniel Charles 0b5c9bb1a4 test_createsurfaces: remove the false skipped tests
The purpose of createsurfaces is to operate on supported
profile/entrypoint as reported by the driver.  Other tests
handle the non-supported combinations and report properly.
There's no need to duplicate printing information about
skipped tests here

Fixes #1

Signed-off-by: Daniel Charles <daniel.charles@intel.com>
2017-02-15 12:39:33 -08:00
Sean V Kelley da32b78ba9 putsurface: Enable putsurface bins according to flags
fixes #9

Signed-off-by: Sean V Kelley <seanvk@posteo.de>
2017-02-08 09:51:08 -08:00
Sean V Kelley b89ecea7b9 config: Remove unsupported deps
Remove copy & paste configs as they are unused.

fixes #7

Signed-off-by: Sean V Kelley <seanvk@posteo.de>
2017-02-04 09:59:46 -08:00
Sean V Kelley 81cdabb6bd config: Initial release will be 1.80
So set version to 1.80.pre1 for development

fixes #7

Signed-off-by: Sean V Kelley <seanvk@posteo.de>
2017-02-04 09:59:46 -08:00
Sean V Kelley ac7f3ed57a config: Fix file permissions
Remove executable bits.

fixes #7

Signed-off-by: Sean V Kelley <seanvk@posteo.de>
2017-02-04 09:59:46 -08:00
Sean V Kelley c5e40bbbf7 debian: Remove legacy packaging
debian control files are maintained by packagers

Yes there is a "convenience" factor to roll your
own debian package, but this is not maintained by
us and represents a fork from debian packagers.
As with the bit rot of libva.spec, remove this.

fixes #6

Signed-off-by: Sean V Kelley <seanvk@posteo.de>
2017-02-03 11:30:14 -08:00
Sean V Kelley 8525a0d5cc config: replace reference to libyamiutils
Signed-off-by: Sean V Kelley <seanvk@posteo.de>
2017-01-31 20:38:59 -08:00
Sean V Kelley 3eee2aeedf putsurface: Check for USE_X11
fixes #5

Signed-off-by: Sean V Kelley <seanvk@posteo.de>
2017-01-31 13:41:59 -08:00
Sean V Kelley 69d115d20c travis: Added security list for scans
Signed-off-by: Sean V Kelley <seanvk@posteo.de>
2017-01-30 21:41:34 -08:00
Sean V Kelley ada8d2998f github: Removed coveralls integration
Signed-off-by: Sean V Kelley <seanvk@posteo.de>
2017-01-30 21:07:18 -08:00
Sean V Kelley 4245e08cdc github: Added slack team
Signed-off-by: Sean V Kelley <seanvk@posteo.de>
2017-01-30 20:52:23 -08:00
Sean V Kelley 60c3073d6e travis: Add support for coverity scans
Signed-off-by: Sean V Kelley <seanvk@posteo.de>
2017-01-29 15:30:22 -08:00
Sean V Kelley c99ccce455 github: Add contributing file
Signed-off-by: Sean V Kelley <seanvk@posteo.de>
2017-01-28 18:14:25 -08:00
Sean V Kelley ee69789a13 travis: Add libva deps
Signed-off-by: Sean V Kelley <seanvk@posteo.de>
2017-01-28 18:08:02 -08:00
Sean V Kelley acedd0438c github: added documentation
Specific to new tools and created separate file for INSTALL

Signed-off-by: Sean V Kelley <seanvk@posteo.de>
2017-01-28 18:04:51 -08:00
Sean V Kelley abbe951573 travis: Add initial template
Yaml file for CI builds

Signed-off-by: Sean V Kelley <seanvk@posteo.de>
2017-01-28 17:57:55 -08:00
Sean V. Kelley a8bcfa5968 Merge pull request #4 from waffle-iron/master
waffle.io Badge
2017-01-28 17:48:01 -08:00
Making GitHub Delicious 94c6ef77fc add waffle.io badge 2017-01-28 18:47:13 -07:00
Sean V. Kelley 7cdd50a29e Merge pull request #3 from uartie/stream
test: add stream operators for VAProfile and VAEntrypoint
2017-01-14 09:33:32 -08:00
U. Artie Eoff 42d9f307ae test: add stream operators for VAProfile and VAEntrypoint
When gtest prints out test params (e.g. --gtest_list_tests)
for VAProfile and VAEntrypoint, it prints the value.  This
makes it difficult to know which profile/entrypoint it
actually is without cross-referencing the va header manually.

This patch adds output stream operators for VAProfile and
VAEntrypoint to print out the name along with its value.  GTest
will automatically use these operators to print profile/entrypoint
params in its test output.

Signed-off-by: U. Artie Eoff <ullysses.a.eoff@intel.com>
2016-12-23 11:31:32 -08:00
Daniel Charles feaf67d346 putsurface: add putsurface folder from libva
the set of examples is used for rpm creation, port them to keep
compatibility

Signed-off-by: Daniel Charles <daniel.charles@intel.com>
2016-12-06 13:33:42 -08:00
Daniel Charles 45c32e3484 gtest: initial Gtest set for VA-API
This initial set of files covers the va.h API for all the
functions used to exercise successfully the VA-API.

Tests are divided per VA-API function with a common Fixture that
contains all calling functions to the VA-API.  For the use cases
covered already there are tests for the proper functionality and also
for expected error situations.

The tests creates combinations with all the inputs to the VA-API function
and then it checks the results based on what the driver implementation reports
as supported

The set of tests can be run on any h/w supported and any driver.

The VendorString test is assuming Intel i965 driver, please help
adding the test for other drivers

More tests will be continously added

Signed-off-by: Daniel Charles <daniel.charles@intel.com>
2016-11-29 11:41:17 -08:00
U. Artie Eoff 9a8eafac87 test: add initial test_main target
Add test main() definition.

Also provide a test.h header with common test includes and
definitions that can be included by all test compilation
units.

taken from libva-intel-driver and properly adapted to libva-utils

Signed-off-by: U. Artie Eoff <ullysses.a.eoff@intel.com>
Reviewed-by: Sean V Kelley <seanvk@posteo.de>
Signed-off-by: Daniel Charles <daniel.charles@intel.com>
2016-11-29 11:41:17 -08:00
U. Artie Eoff 085e356489 toolchain: build gtest convenience library
Define autoconf/automake rules to build libgtest.la
as a convenience library.

Add --enable-gtests configure option (default:no).

All Gtests are built by configure flag, since this is a test
repository then the differentiation is made.

Signed-off-by: U. Artie Eoff <ullysses.a.eoff@intel.com>
Reviewed-by: Sean V Kelley <seanvk@posteo.de>
Signed-off-by: Daniel Charles <daniel.charles@intel.com>
2016-11-29 11:41:17 -08:00
U. Artie Eoff 66f43db67c test: add googletest release-1.8.0 source
We will use the Google Test Framework for testing.

Google Test is not meant to be packaged and used as a system
dependency like other libraries.  Google Test recommends that
it be custom compiled for each project that uses it.  Thus,
we'll keep our own copy of it here and compile it as needed.

Signed-off-by: U. Artie Eoff <ullysses.a.eoff@intel.com>
Reviewed-by: Sean V Kelley <seanvk@posteo.de>
2016-11-29 11:41:17 -08:00
Daniel Charles c9af683d6c libva-utils: initial commit
libva-utils is a new git repository that will host sample applications
for libva, conformance tests and others relevant to libva

It is using the same version as libva and it should follow libva version.
It is intended to be released together with libva
It has the same license as libva

Initial functionality ports the vainfo application from libva repository.
The git history for it will remain on libva.  To port vainfo, also the
a common libva-display library was ported. The original tests for encoder
and decoder are also ported to this repository. debian folder for vainfo
was also ported

The basic tests are going to be substituted by a new set of tests based
on Gtest framework.

libva-utils will dynamically link libva, use pkg-config to compile and
link properly.

Signed-off-by: Daniel Charles <daniel.charles@intel.com>
2016-11-29 11:41:17 -08:00