-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
gimp-plugin-fix-ca 4.1 (July 10, 2024)
- Fixed bug in fix-ca.c to run in non-interactive script mode. - Added make check due to testing non-interactive scripting mode.
- Loading branch information
Showing
10 changed files
with
67 additions
and
13 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,34 @@ | ||
scripttests = test1.sh | ||
|
||
AM_CFLAGS = ${CFLAGS} ${CPPFLAGS} ${GIMP_CFLAGS} ${GTK_CFLAGS} ${WCFLAGS} ${FCA_CFLAGS} -I${top_srcdir} -I${top_builddir} | ||
|
||
AM_CPPFLAGS = -I${top_srcdir} -I${top_builddir} ${GIMP_CFLAGS} -I${includedir} | ||
|
||
EXTRA_DIST = test-fix-ca.c test.scm test1.md5 | ||
nodist_bin_SCRIPTS = test1.sh | ||
|
||
noinst_PROGRAMS = test-fix-ca | ||
test_fix_ca_name = test-fix-ca | ||
test_fix_ca_SOURCES = test-fix-ca.c | ||
test_fix_ca.$(OBJEXT): fix-ca-config.h | ||
test_fix_ca_LDADD = ${LIBS} ${GIMP_LIBS} ${GTK_LIBS} ${WSLIB} ${FCA_LIB} | ||
|
||
update-tests: $(scripttests) | ||
|
||
$(scripttests): | ||
echo "#!/bin/sh" > ${builddir}/test1.sh; \ | ||
echo "rm -f ${builddir}/test1.tga" >> ${builddir}/test1.sh; \ | ||
echo "${GIMPTOOL} --install-script ${srcdir}/test.scm" >> ${builddir}/test1.sh; \ | ||
echo "${GIMPTOOL} --install-bin ${builddir}/test-fix-ca" >> ${builddir}/test1.sh; \ | ||
echo "gimp --verbose --console-messages -b '(test \"${top_srcdir}/img-fix-ca/full-branches.jpg\" \"${builddir}/test1.tga\" 6.0 -2.4 658 1280 1 0.0 0.0 0.0 0.0)' -b '(gimp-quit 0)'" >> ${builddir}/test1.sh; \ | ||
echo "${GIMPTOOL} --uninstall-bin test-fix-ca" >> ${builddir}/test1.sh; \ | ||
echo "${GIMPTOOL} --uninstall-script test.scm" >> ${builddir}/test1.sh; \ | ||
echo "${MD5SUM} -c ${top_srcdir}/tests/test1.md5" >> ${builddir}/test1.sh; \ | ||
${CHMOD} +x ${builddir}/test1.sh | ||
|
||
TESTS = ${builddir}/test1.sh | ||
|
||
clean-local: | ||
rm -f ${builddir}/test?.sh ${builddir}/test?.tga | ||
|
||
.PHONY: update-tests |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
#define TEST_FIX_CA 1 | ||
#include "../fix-ca.c" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
(define (test filename result bluel redl lensx lensy interpolation bluex redx bluey redy) | ||
(define image (car (gimp-file-load RUN-NONINTERACTIVE filename filename))) | ||
(define drawable (car (gimp-image-get-active-layer image))) | ||
(Test-Fix-CA RUN-NONINTERACTIVE image drawable bluel redl lensx lensy interpolation bluex redx bluey redy) | ||
(gimp-file-save RUN-NONINTERACTIVE image drawable result result) | ||
(gimp-image-delete image)) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
7e59db2f8eeafbc0a37d5fddde45c14c test1.tga |