libabigail/tests
Chenxiong Qi 1ac0c055fa Bug 22722 - Make fedabipkgdiff and its tests support both python 3 and 2
This patch makes fedabipkgdiff Python 3 compatible.  All tests written
in Python are updated and compatible with Python 3 as well.

The patch looks for a Python 3 interperter.  If it finds one then it
runs the tests using that interpreter.  Otherwise it just tries to use
the Python 2 interpreter.

This behaviour can be disabled by the new --disable-python3 option.

	* configure.ac: Add new option --enable-python3. Add new
	test runner file tests/runtestdefaultsupprs-py3 and
	tests/runtestfedabipkgdiffpy3.sh. Add required six Python module.
	* tests/Makefile.am: Add new test files
	tests/runtestdefaultsupprspy3.sh and
	tests/runtestfedabipkgdiffpy3.sh accordingly.
	* tests/mockfedabipkgdiff.in: Convert print statement to
	six.print_. Replace call to function filter with list
	comprehension. Replace basestring with six.string_types.
	* tests/runtestdefaultsupprspy3.sh.in: New shell script to run
	test runtestdefaultsupprs with Python 3.
	* tests/runtestdefaultsupprs.py.in: Repalce a few tabs with
	proper number of spaces which is detected by Python 3
	interpreter.
	* tests/runtestfedabipkgdiffpy3.sh.in: New shell script to run
	test runtestfedabipkgdiff with Python 3.
	* tests/runtestfedabipkgdiff.py.in: Use python from env in
	shebang instead of a fixed path to a Python interpreter.
	* tools/fedabipkgdiff: Globally replace print statement with a
	function call to print which is available by importing
	print_function from __future__ module. Use six.print_ to output
	string to stderr instead. Convert function call to map to
	for-loop. (cmp_nvr): Change argument to handle a Koji build
	mapping instead of only the nvr. (Brew.listBuilds): use the new
	cmp_nvr to sort builds.

Signed-off-by: Chenxiong Qi <cqi@redhat.com>
Signed-off-by: Dodji Seketeli <dodji@redhat.com>
2018-03-29 13:46:50 +02:00
..
data Report change locations in leaf reports 2018-03-16 15:00:03 +01:00
Makefile.am Bug 22722 - Make fedabipkgdiff and its tests support both python 3 and 2 2018-03-29 13:46:50 +02:00
mockfedabipkgdiff.in Bug 22722 - Make fedabipkgdiff and its tests support both python 3 and 2 2018-03-29 13:46:50 +02:00
print-diff-tree.cc Update copyright notice for all source files 2018-01-08 18:24:26 +01:00
runtestcanonicalizetypes.sh.in Bug 20180 - Support system-wide suppression specifications 2016-05-30 18:39:49 +02:00
runtestdefaultsupprs.py.in Bug 22722 - Make fedabipkgdiff and its tests support both python 3 and 2 2018-03-29 13:46:50 +02:00
runtestdefaultsupprspy3.sh.in Bug 22722 - Make fedabipkgdiff and its tests support both python 3 and 2 2018-03-29 13:46:50 +02:00
runtestfedabipkgdiff.py.in Bug 22722 - Make fedabipkgdiff and its tests support both python 3 and 2 2018-03-29 13:46:50 +02:00
runtestfedabipkgdiffpy3.sh.in Bug 22722 - Make fedabipkgdiff and its tests support both python 3 and 2 2018-03-29 13:46:50 +02:00
test-abicompat.cc Update copyright notice for all source files 2018-01-08 18:24:26 +01:00
test-abidiff-exit.cc Update copyright notice for all source files 2018-01-08 18:24:26 +01:00
test-abidiff.cc Update copyright notice for all source files 2018-01-08 18:24:26 +01:00
test-alt-dwarf-file.cc Update copyright notice for all source files 2018-01-08 18:24:26 +01:00
test-annotate.cc Wire the --no-show-locs option to abidw 2017-11-02 12:57:11 +01:00
test-core-diff.cc Update copyright notice for all source files 2018-01-08 18:24:26 +01:00
test-diff2.cc Update copyright notice for all source files 2018-01-08 18:24:26 +01:00
test-diff-dwarf-abixml.cc Update copyright notice for all source files 2018-01-08 18:24:26 +01:00
test-diff-dwarf.cc Bug 22913 - Correctly de-duplicate pointers to anonymous structs inside a given 2018-03-02 16:49:17 +01:00
test-diff-filter.cc Update copyright notice for all source files 2018-01-08 18:24:26 +01:00
test-diff-pkg.cc Make abipkgdiff avoid comparing private DSOs from RPMs 2018-03-28 14:22:35 +02:00
test-diff-suppr.cc Update copyright notice for all source files 2018-01-08 18:24:26 +01:00
test-dot.cc Correct DOT merge. 2013-07-23 23:13:55 +02:00
test-ir-walker.cc Update copyright notice for all source files 2018-01-08 18:24:26 +01:00
test-lookup-syms.cc Update copyright notice for all source files 2018-01-08 18:24:26 +01:00
test-read-dwarf.cc Update copyright notice for all source files 2018-01-08 18:24:26 +01:00
test-read-write.cc Update copyright notice for all source files 2018-01-08 18:24:26 +01:00
test-svg.cc Add svg generation. 2013-07-23 23:13:54 +02:00
test-types-stability.cc Update copyright notice for all source files 2018-01-08 18:24:26 +01:00
test-utils.cc Update copyright notice for all source files 2018-01-08 18:24:26 +01:00
test-utils.h Update copyright notice for all source files 2018-01-08 18:24:26 +01:00
test-valgrind-suppressions.supp Shut down a helgrind false positive in the "system" libc call 2017-03-17 09:02:19 +01:00
test-write-read-archive.cc Update copyright notice for all source files 2018-01-08 18:24:26 +01:00
update-test-output.py Rename tests/update-test-read-dwarf-output.py 2016-12-02 12:59:32 +01:00