Gimp/plug-ins/script-fu/scripts/test
Jehan c26b2cd08f app, pdb, plug-ins: replace (plug-in-noisify).
For plug-in writers reference, these are equivalent:

- (plug-in-noisify RUN-NONINTERACTIVE theImage mLayer TRUE r g b a)
+ (gimp-drawable-merge-new-filter mLayer "gegl:noise-rgb" 0 LAYER-MODE-REPLACE 1.0
+                                 "independent" TRUE "red" r "green" g "blue" b "alpha" a
+                                 "correlated" FALSE "seed" (msrg-rand) "linear" TRUE)

Notes:

* When "independent" is FALSE, then you only need to set "red" (which is
  equivalent to a "value" field) and "alpha".
* Original plug-in was using the second value ('g', a.k.a. noise_2 in
  the PDB args) as alpha when the source drawable was grayscale. This
  logic is meaningless now. Just set "alpha".
* The PDB procedure was wrapping the operation between
  "gegl:cast-format" nodes to cast the input buffer to linear. This is
  useless as the "gegl:noise-rgb" has already a "linear" argument
  (defaulting to TRUE, but I specify it explicitly in this commit, for
  clarity) which requests linear input when set.
2024-12-17 16:24:54 +00:00
..
always-fail
call-always-fail
register-fail Fix for 2.99 only #6157 2023-09-28 13:26:23 +00:00
resource-class Fix scripts calling obsolete gimp-brush-delete 2023-12-09 11:23:58 -05:00
test-install-fail Fix #9554 (quit 1) must yield err msg 2023-06-20 11:14:13 +00:00
test-quit Fix #9554 (quit 1) must yield err msg 2023-06-20 11:14:13 +00:00
test-run-error-PDB Fix #9554 (quit 1) must yield err msg 2023-06-20 11:14:13 +00:00
test0
test1
test4
test5
test6
test7
test8
clothify-v2.scm app, pdb, plug-ins: replace (plug-in-noisify). 2024-12-17 16:24:54 +00:00
clothify-v3.scm app, pdb, plug-ins: replace (plug-in-noisify). 2024-12-17 16:24:54 +00:00
contactsheet.scm ScriptFu: scripts: fix scripts that used now obsolete functions from the SIOD dialect 2024-10-22 15:18:50 -04:00
meson.build ScriptFu: scripts: add Clothify v2 back as a test plugin 2024-10-26 07:08:44 -04:00
README Fix #9554 (quit 1) must yield err msg 2023-06-20 11:14:13 +00:00
test-bytes.scm ScriptFu: move test plugins and install more in unstable build 2024-04-24 14:32:53 +00:00
test-display.scm ScriptFu: scripts: fix scripts that used now obsolete functions from the SIOD dialect 2024-10-22 15:18:50 -04:00
test-sphere.scm ScriptFu: fix 8463 obsolete SF-VALUE 2024-09-27 06:41:29 -04:00
test-v3.scm app, pdb, plug-ins: replace (plug-in-noisify). 2024-12-17 16:24:54 +00:00
ts-helloworld.scm ScriptFu: rename script-fu-register-regular => -procedure 2024-09-27 14:35:50 +00:00

Scripts to test various cases for ScriptFu subsystem.

Not usually installed.

Should not be localized i18n : for developers only.

## Install

To use, install them:

1. Old style scripts: copy to /scripts.

2. New style independently interpreted scripts:
copy a dir containing the test script into /plugins
and ensure the .scm files have execute permission.

Old style scripts test and are interpreted by extension-script-fu.
When a script crashes extension-script-fu, you must restart Gimp.

New style scripts are interpreted in a separate process
running binary script-fu-interpreter-3.0.

## Invoke

Any installed script can be tested in the SF Console
by just calling it from the PDB: "(script-fu-test-foo)"
since they are PDB procedures.

Scripts that have menu items can be tested from the Gimp GUI.

Any test script can be called by another script.

## Testing framework

test9.scm has a built-in testing framework.

FUTURE: extract the framework to a Scheme extension
that is in the Gimp repo,
that other scripts can load and use.