Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
V
varnish-cache
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Commits
Open sidebar
varnishcache
varnish-cache
Commits
25cb590f
Commit
25cb590f
authored
Sep 25, 2018
by
Poul-Henning Kamp
Committed by
Dridi Boukelmoune
Oct 16, 2018
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Make varnishtest (more) agnostic about its own name.
parent
513ad896
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
10 additions
and
2 deletions
+10
-2
a00000.vtc
bin/varnishtest/tests/a00000.vtc
+1
-1
vtc_main.c
bin/varnishtest/vtc_main.c
+9
-1
No files found.
bin/varnishtest/tests/a00000.vtc
View file @
25cb590f
...
...
@@ -10,7 +10,7 @@ shell {
echo 'shell "exit 9"' >> _.vtc
}
shell -exit 2 -expect {doesn't start with 'vtest' or 'varnishtes
t'
} {
shell -exit 2 -expect {doesn't start with 'vtest' or 'varnishtes} {
varnishtest -v _.vtc
}
...
...
bin/varnishtest/vtc_main.c
View file @
25cb590f
...
...
@@ -52,6 +52,8 @@
#include "vtim.h"
#include "vct.h"
static
const
char
*
argv0
;
struct
vtc_tst
{
unsigned
magic
;
#define TST_MAGIC 0x618d8b88
...
...
@@ -124,7 +126,7 @@ parse_D_opt(char *arg)
static
void
usage
(
void
)
{
fprintf
(
stderr
,
"usage:
varnishtest [options] file ...
\n
"
);
fprintf
(
stderr
,
"usage:
%s [options] file ...
\n
"
,
argv0
);
#define FMT " %-28s # %s\n"
fprintf
(
stderr
,
FMT
,
"-b size"
,
"Set internal buffer size (default: 1M)"
);
...
...
@@ -577,6 +579,12 @@ main(int argc, char * const *argv)
uintmax_t
bufsiz
;
const
char
*
p
;
argv0
=
strrchr
(
argv
[
0
],
'/'
);
if
(
argv0
==
NULL
)
argv0
=
argv
[
0
];
else
argv0
++
;
if
(
getenv
(
"TMPDIR"
)
!=
NULL
)
tmppath
=
strdup
(
getenv
(
"TMPDIR"
));
else
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment