Adding upstream version 3.0.4.
Signed-off-by: Daniel Baumann <daniel.baumann@progress-linux.org>
This commit is contained in:
parent
1c8b56a4f5
commit
554424e00a
6822 changed files with 5440542 additions and 0 deletions
54
plug-ins/python/tests/test-file-plug-ins/batch-export-tests.py
Executable file
54
plug-ins/python/tests/test-file-plug-ins/batch-export-tests.py
Executable file
|
@ -0,0 +1,54 @@
|
|||
#!/usr/bin/env python3
|
||||
# -*- coding: utf-8 -*-
|
||||
#
|
||||
# GIMP - The GNU Image Manipulation Program
|
||||
# Copyright (C) 1995 Spencer Kimball and Peter Mattis
|
||||
#
|
||||
# batch-export-tests.py
|
||||
# Copyright (C) 2021-2024 Jacob Boerema
|
||||
#
|
||||
# This program is free software: you can redistribute it and/or modify
|
||||
# it under the terms of the GNU General Public License as published by
|
||||
# the Free Software Foundation; either version 3 of the License, or
|
||||
# (at your option) any later version.
|
||||
#
|
||||
# This program is distributed in the hope that it will be useful,
|
||||
# but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||||
# GNU General Public License for more details.
|
||||
#
|
||||
# You should have received a copy of the GNU General Public License
|
||||
# along with this program. If not, see <https://www.gnu.org/licenses/>.
|
||||
|
||||
"""Batch non-interactive GIMP file export plug-ins testing."""
|
||||
|
||||
from gimpconfig import GimpConfig
|
||||
from gimplogger import GimpLogger
|
||||
from gimptestframework import GimpExportTestRunner
|
||||
from gimpexporttests import BmpExportTests
|
||||
|
||||
|
||||
#DEBUGGING=True
|
||||
DEBUGGING=False
|
||||
|
||||
#PRINT_VERBOSE = True
|
||||
PRINT_VERBOSE = False
|
||||
|
||||
LOG_APPEND = False
|
||||
|
||||
test_cfg = GimpConfig()
|
||||
|
||||
log = GimpLogger(False, test_cfg.log_file, LOG_APPEND, PRINT_VERBOSE, DEBUGGING)
|
||||
|
||||
runner = GimpExportTestRunner(log, "export", test_cfg)
|
||||
if not runner:
|
||||
log.error("Failed to create export test runner!")
|
||||
else:
|
||||
runner.load_test_configs()
|
||||
|
||||
bmp_tests = BmpExportTests("bmp", log)
|
||||
runner.add_test(bmp_tests)
|
||||
|
||||
# Add additional tests here
|
||||
|
||||
runner.run_tests()
|
Loading…
Add table
Add a link
Reference in a new issue