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
fdb56cff
Commit
fdb56cff
authored
14 years ago
by
Birte Kristina Friesel
Browse files
Options
Downloads
Patches
Plain Diff
Merge test/run-bg into test/feh-bg.i
Not possible for test/ren-interactive, unfortunately.
parent
0cb40fc2
No related branches found
No related tags found
No related merge requests found
Changes
4
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
Makefile
+1
-2
1 addition, 2 deletions
Makefile
test/feh-bg.i
+22
-0
22 additions, 0 deletions
test/feh-bg.i
test/run-bg
+0
-14
0 additions, 14 deletions
test/run-bg
test/run-interactive
+2
-0
2 additions, 0 deletions
test/run-interactive
with
25 additions
and
16 deletions
Makefile
+
1
−
2
View file @
fdb56cff
...
...
@@ -13,8 +13,7 @@ test: all
test-x11
:
all
test
/run-interactive
sleep
3
test
/run-bg
prove
test
/feh-bg.i
install
:
install-man install-doc install-bin install-font install-img
...
...
This diff is collapsed.
Click to expand it.
test/feh-bg.i
+
22
−
0
View file @
fdb56cff
...
...
@@ -2,11 +2,14 @@
use
strict
;
use
warnings
;
use
5.010
;
use
autodie
qw
/:
all
/
;
use
GD
qw
/:
DEFAULT
:
cmp
/
;
use
Test
::
More
tests
=>
70
;
use
Time
::
HiRes
qw
/
sleep
/
;
my
(
$
pid_xnest
,
$
pid_twm
)
;
sub
set_bg
{
my ($mode, $file) = @_;
...
...
@@ -36,6 +39,20 @@ sub check_bg {
);
}
if
((
$
pid_xnest
=
fork
())
==
0
)
{
exec(qw( Xnest -geometry 500x500 :7 ));
}
sleep
(
0.5
)
;
$
ENV
{'DISPLAY'}
=
'
:7
'
;
if
((
$
pid_twm
=
fork
())
==
0
)
{
exec('twm');
}
sleep
(
0.5
)
;
for
my
$
mode
(
qw
(
center
fill
max
scale
tile
))
{
set_bg($mode, 'exact/in');
...
...
@@ -51,4 +68,9 @@ for my $mode (qw( center fill max scale tile )) {
}
}
kill
(
15
,
$
pid_twm
)
;
sleep
(
0.2
)
;
kill
(
15
,
$
pid_xnest
)
;
sleep
(
0.2
)
;
unlink
(
"
/tmp/feh_${$}.png
"
)
;
This diff is collapsed.
Click to expand it.
test/run-bg
deleted
100755 → 0
+
0
−
14
View file @
0cb40fc2
#!/bin/sh
Xnest
-geometry
500x500 :7
>
/dev/null 2>&1 &
pid
=
${
!
}
# Wallpaper setting requires a window manager to work reliably
DISPLAY
=
:7 twm
>
/dev/null 2>&1 &
DISPLAY
=
:7 prove
-v
test
/feh-bg.i
ret
=
${
?
}
kill
${
pid
}
exit
${
ret
}
This diff is collapsed.
Click to expand it.
test/run-interactive
+
2
−
0
View file @
fdb56cff
...
...
@@ -8,4 +8,6 @@ ret=${?}
kill
${
pid
}
sleep
2
exit
${
ret
}
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