Initial checkin of Pika from heckimp
This commit is contained in:
43
plug-ins/script-fu/scripts/test/test1/test1.scm
Normal file
43
plug-ins/script-fu/scripts/test/test1/test1.scm
Normal file
@ -0,0 +1,43 @@
|
||||
#!/usr/bin/env pika-script-fu-interpreter-3.0
|
||||
|
||||
; Basic test that a second .scm file is also queried.
|
||||
; Expect "Test>Test SF interpreter 1" in the menus
|
||||
; Expect when chosen, message on PIKA message bar.
|
||||
|
||||
; Also tests that one .scm file can define two PDB procedures
|
||||
; File is queried once, yielding two names.
|
||||
; Two separate procedures created.
|
||||
|
||||
|
||||
(define (script-fu-test1)
|
||||
(pika-message "Hello script-fu-test1")
|
||||
)
|
||||
|
||||
(script-fu-register "script-fu-test1"
|
||||
"Test SF interpreter 01"
|
||||
"Just gives a message from Pika"
|
||||
"lkk"
|
||||
"lkk"
|
||||
"2022"
|
||||
"" ; all image types
|
||||
)
|
||||
|
||||
(script-fu-menu-register "script-fu-test1" "<Image>/Test")
|
||||
|
||||
|
||||
|
||||
|
||||
(define (script-fu-test2)
|
||||
(pika-message "Hello script-fu-test2")
|
||||
)
|
||||
|
||||
(script-fu-register "script-fu-test2"
|
||||
"Test SF interpreter 02"
|
||||
"Just gives a message from Pika"
|
||||
"lkk"
|
||||
"lkk"
|
||||
"2022"
|
||||
"" ; all image types
|
||||
)
|
||||
|
||||
(script-fu-menu-register "script-fu-test2" "<Image>/Test")
|
31
plug-ins/script-fu/scripts/test/test1/test3.scm
Normal file
31
plug-ins/script-fu/scripts/test/test1/test3.scm
Normal file
@ -0,0 +1,31 @@
|
||||
; !!! No shebang here
|
||||
|
||||
; Test a second .scm file in the same directory as a queried .scm.
|
||||
; The second .scm file need not be executable.
|
||||
; The second .scm file need not have a shebang.
|
||||
; The pika-script-fu-interpreter will nevertheless load the second .scm
|
||||
; while it is querying the first, executable .scm in the dir.
|
||||
; The plugin manager queries the first executable,
|
||||
; and pika-script-fu-interpreter loads (and returns defined names in)
|
||||
; the second during the query of the first.
|
||||
|
||||
; Expect "Test>Test SF interpreter 3" in the menus
|
||||
; Expect when chosen, message on PIKA message bar.
|
||||
|
||||
; plug-ins/test1/test1.scm is executable
|
||||
; plug-ins/test1/test3.scm is NOT executable
|
||||
|
||||
(define (script-fu-test3)
|
||||
(pika-message "Hello script-fu-test3")
|
||||
)
|
||||
|
||||
(script-fu-register "script-fu-test3"
|
||||
"Test SF interpreter 3"
|
||||
"Just gives a message from Pika"
|
||||
"lkk"
|
||||
"lkk"
|
||||
"2022"
|
||||
"" ; all image types
|
||||
)
|
||||
|
||||
(script-fu-menu-register "script-fu-test3" "<Image>/Test")
|
Reference in New Issue
Block a user