Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
F
feh
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
derf
feh
Commits
a0f8f486
Commit
a0f8f486
authored
14 years ago
by
Birte Kristina Friesel
Browse files
Options
Downloads
Patches
Plain Diff
Begin work on X test. So far, checks if q, x and ESC quit feh
parent
ec496289
No related branches found
No related tags found
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
Makefile
+11
-0
11 additions, 0 deletions
Makefile
test/feh.i
+48
-0
48 additions, 0 deletions
test/feh.i
with
59 additions
and
0 deletions
Makefile
+
11
−
0
View file @
a0f8f486
...
@@ -6,6 +6,17 @@ all:
...
@@ -6,6 +6,17 @@ all:
test
:
all
test
:
all
@
PACKAGE
=
${
PACKAGE
}
VERSION
=
${
VERSION
}
prove
test
@
PACKAGE
=
${
PACKAGE
}
VERSION
=
${
VERSION
}
prove
test
test-interactive
:
all
@
if
[
"
$$(
whoami
)
"
!=
derf
]
;
then
\
echo
"Note: This will do stuff with your X and take a while"
;
\
echo
"If you don't know what's going on, hit ^C now"
;
\
sleep
5
;
\
echo
"Okay, running test"
;
\
fi
@
if
[
"
$$(
whoami
)
"
=
derf
]
;
then
setxkbmap us
;
fi
@
prove
test
/
*
.i
@
if
[
"
$$(
whoami
)
"
=
derf
]
;
then
setxkbmap greedy
;
fi
install
:
install-man install-doc install-bin install-font install-img
install
:
install-man install-doc install-bin install-font install-img
install-man
:
install-man
:
...
...
This diff is collapsed.
Click to expand it.
test/feh.i
0 → 100755
+
48
−
0
View file @
a0f8f486
#
!/
usr
/
bin
/
env
perl
use
strict
;
use
warnings
;
use
5.010
;
use
Test
::
More
tests
=>
3
;
use
X11
::
GUITest
qw
/
FindWindowLike
StartApp
SendKeys
WaitWindowViewable
/
;
sub
feh_start
{
my
(
$
opts
,
$
files
)
=
@_
;
$
opts
//= q{};
$
files
//= 'test/ok.png';
StartApp
(
"
feh ${opts} ${files}
"
)
;
if
(
WaitWindowViewable
(
qr
{^feh}
)
==
0
)
{
BAIL_OUT("Unable to start feh ${opts} ${files}");
}
}
sub
test_no_win
{
my ($reason) = @_;
for (1 .. 10) {
sleep(0.1);
if (FindWindowLike(qr{^feh}) == 0) {
pass("Window closed ($reason)");
return;
}
}
fail("Window closed ($reason)");
BAIL_OUT("unclosed window still open, cannot continue");
}
if
(
FindWindowLike
(
qr
{^feh}
))
{
BAIL_OUT('It appears you have an open feh window. Please close it.');
}
for
my
$
key
(
qw
/
q
x
{ESC}
/
)
{
feh_start();
SendKeys($key);
test_no_win("$key pressed");
}
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment