8000 GitHub - bootchk/testGimpScriptFuBinding: test ScriptFu, Gimp's binding from Scheme (lisp) to GIMP Procedure Database (PDB)
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

bootchk/testGimpScriptFuBinding

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 

Repository files navigation

A plugin to test GIMP ScriptFu binding.

Target audience

  • GIMP developers
  • possibly ScriptFu plugin developers, too see what constructs ScriptFu is intended to accept

Test Cases

Each case is a construct in TinyScheme language (Lisp dialect) of the form '(PDBprocedureName arg1 arg2)'

Kinds of cases:

  • errors by authors of ScriptFu scripts i.e. plugins
  • implementation errors in ScriptFu itself
  • for each GIMP type or GType that ScriptFu is designed to handle (accept/return)

Only tests the binding, that is, that ScriptFu attempts (or not) to call a PDB procedure. Understands the types procedures should return, but not what values any given procedure should return.

Is GimpFu

Is a GimpFu plugin, requires GimpFu v3 repository. (Could be translated to a GIMP v3 Python plugin using GI)

GIMP version

Tests Gimp v3 (not for GIMP 2.) Loosely speaking, depends on a major and minor GIMP version, currently 2.99, a beta version.
Should be updated as GIMP changes to v 3.0.

!!! Depends on patches to GIMP still in progress.

Installation

To install, copy testGimpScriptFuBinding.py to a folder named testGimpScriptFuBinding usually in ~/.config/GIMP/2.0/plug-ins

Appears in GIMP menus as Test>ScriptFu binding

Running

  • Start GIMP in a console.
  • Open some image file (to enable the plugin TODO fix that)
  • Choose Test>ScriptFu binding...

??? Uses the current image?

  • More thorough testing if the image has vectors , the plugin often uses image and layer with ID 1

Expect no dialog, there are no choices for you to make.

Expect many error dialogs, but those are usually from failed procedures that by the test design should fail, not failed bindings.

Expect a sequence of all "Pass" to print on the console. "Pass" means the test succeeded and the binding behaves as expected, not that the PDB procedure call necessarily passed.

You will also see interspersed log messages, from GIMP and GimpFu (WARNING and CRITICAL log messages cannot be supressed.) If you really want to follow along, export G_MESSAGES_DEBUG=scriptfu, and then all INFO and DEBUG messages from scriptfu will be interspersed also.

A "Fail" demands action. When GIMP has changed, eliminating or adding a deficiency of GIMP, then update this plugin to expect the new wrong behavior of GIMP, or fix GIMP.

It is also possible that the support machinery (GimpFu) has changed, giving a false "Fail". Then also update this plugin for the new behavior, or fix the machinery.

See also

Comments in code.

About

test ScriptFu, Gimp's binding from Scheme (lisp) to GIMP Procedure Database (PDB)

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

0