PIKApp/plug-ins/script-fu/scripts/test
Cassowary 852cbfc1fb Updated new files from upstream 2023-10-30 15:56:43 -07:00
..
always-fail Initial checkin of Pika from heckimp 2023-09-25 15:35:21 -07:00
call-always-fail Initial checkin of Pika from heckimp 2023-09-25 15:35:21 -07:00
register-fail Updated new files from upstream 2023-10-30 15:56:43 -07:00
resource-class Initial checkin of Pika from heckimp 2023-09-25 15:35:21 -07:00
test-install-fail Initial checkin of Pika from heckimp 2023-09-25 15:35:21 -07:00
test-quit Initial checkin of Pika from heckimp 2023-09-25 15:35:21 -07:00
test-run-error-PDB Initial checkin of Pika from heckimp 2023-09-25 15:35:21 -07:00
test0 Initial checkin of Pika from heckimp 2023-09-25 15:35:21 -07:00
test1 Initial checkin of Pika from heckimp 2023-09-25 15:35:21 -07:00
test4 Initial checkin of Pika from heckimp 2023-09-25 15:35:21 -07:00
test5 Initial checkin of Pika from heckimp 2023-09-25 15:35:21 -07:00
test6 Initial checkin of Pika from heckimp 2023-09-25 15:35:21 -07:00
test7 Initial checkin of Pika from heckimp 2023-09-25 15:35:21 -07:00
test8 Initial checkin of Pika from heckimp 2023-09-25 15:35:21 -07:00
test9 Initial checkin of Pika from heckimp 2023-09-25 15:35:21 -07:00
README Initial checkin of Pika from heckimp 2023-09-25 15:35:21 -07:00

README

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 Pika.

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 Pika 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 Pika repo,
that other scripts can load and use.