Gimp/plug-ins/script-fu/scripts/test
bootchk 1bc2ed77a3 Fix #9554 (quit 1) must yield err msg
So that scripts have a way to declare an error.
2023-06-20 11:14:13 +00:00
..
always-fail Fix so that ScriptFu test scripts are not localized. 2022-08-06 14:37:56 +00:00
call-always-fail Fix so that ScriptFu test scripts are not localized. 2022-08-06 14:37:56 +00:00
resource-class 2.99 libgimp: add GimpResource, GimpBrush, GimpPropWidgetBrush 2023-01-14 12:58:05 +00: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 Fix so that ScriptFu test scripts are not localized. 2022-08-06 14:37:56 +00:00
test1 Fix so that ScriptFu test scripts are not localized. 2022-08-06 14:37:56 +00:00
test4 Fix so that ScriptFu test scripts are not localized. 2022-08-06 14:37:56 +00:00
test5
test6
test7 Fix so that ScriptFu test scripts are not localized. 2022-08-06 14:37:56 +00:00
test8 Fix so that ScriptFu test scripts are not localized. 2022-08-06 14:37:56 +00:00
test9 ScriptFu: Add byte support. 2022-12-27 16:48:13 +00:00
README Fix #9554 (quit 1) must yield err msg 2023-06-20 11:14:13 +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.