mirror of
https://git.FreeBSD.org/ports.git
synced 2024-10-18 19:49:40 +00:00
x11-toolkits/p5-Test-Tk: Add p5-Test-Tk 3.01
Test::Tk aims to assist in the testing of Perl/Tk widgets. createapp creates a MainWindow widget and places it in the variable $app. It sets a timer with delay $delay to start the internal test routine. starttesting launches the main loop and sets a timer with delay $delay to start the internal test routine. When testing is done the MainWindow is destroyed and the test script continues. You can set a command line parameter show to test command on the command line. eg perl -Mblib t/My-Test.t show. The application will not terminate so you can visually inspect it. It will perform two tests. You need to account for these when you set your number of tests. If you are not on Windows and no XServer is running, all tests will be skipped.
This commit is contained in:
parent
00f0bec91b
commit
c33e70ed08
@ -122,6 +122,7 @@
|
||||
SUBDIR += p5-Gtk3-SimpleList
|
||||
SUBDIR += p5-Pango
|
||||
SUBDIR += p5-Prima
|
||||
SUBDIR += p5-Test-Tk
|
||||
SUBDIR += p5-Tk
|
||||
SUBDIR += p5-Tk-Action
|
||||
SUBDIR += p5-Tk-Autoscroll
|
||||
|
23
x11-toolkits/p5-Test-Tk/Makefile
Normal file
23
x11-toolkits/p5-Test-Tk/Makefile
Normal file
@ -0,0 +1,23 @@
|
||||
PORTNAME= Test-Tk
|
||||
PORTVERSION= 3.01
|
||||
CATEGORIES= x11-toolkits perl5
|
||||
MASTER_SITES= CPAN
|
||||
PKGNAMEPREFIX= p5-
|
||||
|
||||
MAINTAINER= sunpoet@FreeBSD.org
|
||||
COMMENT= Testing Tk widgets
|
||||
WWW= https://metacpan.org/dist/Test-Tk
|
||||
|
||||
LICENSE= ART10 GPLv1+
|
||||
LICENSE_COMB= dual
|
||||
|
||||
BUILD_DEPENDS= ${RUN_DEPENDS}
|
||||
RUN_DEPENDS= p5-Test-Deep>=0:devel/p5-Test-Deep \
|
||||
p5-Tk>=0:x11-toolkits/p5-Tk
|
||||
|
||||
USES= perl5
|
||||
USE_PERL5= configure
|
||||
|
||||
NO_ARCH= yes
|
||||
|
||||
.include <bsd.port.mk>
|
3
x11-toolkits/p5-Test-Tk/distinfo
Normal file
3
x11-toolkits/p5-Test-Tk/distinfo
Normal file
@ -0,0 +1,3 @@
|
||||
TIMESTAMP = 1688901999
|
||||
SHA256 (Test-Tk-3.01.tar.gz) = 4c6372679b73c3a89bb85d00f04d6b610e98f7acf222cbc7a327c53aafbe724e
|
||||
SIZE (Test-Tk-3.01.tar.gz) = 4337
|
18
x11-toolkits/p5-Test-Tk/pkg-descr
Normal file
18
x11-toolkits/p5-Test-Tk/pkg-descr
Normal file
@ -0,0 +1,18 @@
|
||||
Test::Tk aims to assist in the testing of Perl/Tk widgets.
|
||||
|
||||
createapp creates a MainWindow widget and places it in the variable $app. It
|
||||
sets a timer with delay $delay to start the internal test routine.
|
||||
|
||||
starttesting launches the main loop and sets a timer with delay $delay to start
|
||||
the internal test routine.
|
||||
|
||||
When testing is done the MainWindow is destroyed and the test script continues.
|
||||
|
||||
You can set a command line parameter show to test command on the command line.
|
||||
eg perl -Mblib t/My-Test.t show. The application will not terminate so you can
|
||||
visually inspect it.
|
||||
|
||||
It will perform two tests. You need to account for these when you set your
|
||||
number of tests.
|
||||
|
||||
If you are not on Windows and no XServer is running, all tests will be skipped.
|
2
x11-toolkits/p5-Test-Tk/pkg-plist
Normal file
2
x11-toolkits/p5-Test-Tk/pkg-plist
Normal file
@ -0,0 +1,2 @@
|
||||
%%SITE_PERL%%/Test/Tk.pm
|
||||
%%PERL5_MAN3%%/Test::Tk.3.gz
|
Loading…
Reference in New Issue
Block a user