Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Contribute to GitLab
Sign in
Toggle navigation
M
mongoose
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
esp
mongoose
Commits
46e04e85
Commit
46e04e85
authored
Sep 24, 2013
by
Sergey Lyubka
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Added test for dir with non-ascii char
parent
4abdeadd
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
3 additions
and
12 deletions
+3
-12
index.html
test/dir with spaces/桌面/index.html
+1
-0
test.pl
test/test.pl
+2
-12
No files found.
test/dir with spaces/桌面/index.html
0 → 100644
View file @
46e04e85
куку!
test/test.pl
View file @
46e04e85
...
@@ -150,11 +150,6 @@ if ($^O =~ /darwin|bsd|linux/) {
...
@@ -150,11 +150,6 @@ if ($^O =~ /darwin|bsd|linux/) {
}
}
}
}
if
(
scalar
(
@ARGV
)
>
0
and
$ARGV
[
0
]
eq
'unit'
)
{
do_unit_test
();
exit
0
;
}
# Make sure we load config file if no options are given.
# Make sure we load config file if no options are given.
# Command line options override config files settings
# Command line options override config files settings
write_file
(
$config
,
"access_log_file access.log\n"
.
write_file
(
$config
,
"access_log_file access.log\n"
.
...
@@ -181,9 +176,10 @@ my $cmd = "$mongoose_exe ".
...
@@ -181,9 +176,10 @@ my $cmd = "$mongoose_exe ".
$cmd
.=
' -cgi_interpreter perl'
if
on_windows
();
$cmd
.=
' -cgi_interpreter perl'
if
on_windows
();
spawn
(
$cmd
);
spawn
(
$cmd
);
o
(
"GET /dir%20with%20spaces/桌面/ HTTP/1.0\r\n\r\n"
,
'куку!'
,
'Non-ascii chars in path'
);
o
(
"GET /hello.txt HTTP/1.1\nConnection: close\nRange: bytes=3-50\r\n\r\n"
,
o
(
"GET /hello.txt HTTP/1.1\nConnection: close\nRange: bytes=3-50\r\n\r\n"
,
'Content-Length: 15\s'
,
'Range past the file end'
);
'Content-Length: 15\s'
,
'Range past the file end'
);
o
(
"GET /hello.txt HTTP/1.1\n\n GET /hello.txt HTTP/1.0\n\n"
,
o
(
"GET /hello.txt HTTP/1.1\n\n GET /hello.txt HTTP/1.0\n\n"
,
'HTTP/1.1 200.+keep-alive.+HTTP/1.1 200.+close'
,
'HTTP/1.1 200.+keep-alive.+HTTP/1.1 200.+close'
,
'Request pipelining'
,
2
);
'Request pipelining'
,
2
);
...
@@ -430,7 +426,6 @@ unless (scalar(@ARGV) > 0 and $ARGV[0] eq "basic_tests") {
...
@@ -430,7 +426,6 @@ unless (scalar(@ARGV) > 0 and $ARGV[0] eq "basic_tests") {
do_PUT_test
();
do_PUT_test
();
kill_spawned_child
();
kill_spawned_child
();
do_unit_test
();
}
}
sub
do_PUT_test
{
sub
do_PUT_test
{
...
@@ -459,9 +454,4 @@ sub do_PUT_test {
...
@@ -459,9 +454,4 @@ sub do_PUT_test {
"HTTP/1.1 100 Continue.+HTTP/1.1 200"
,
'PUT 100-Continue'
);
"HTTP/1.1 100 Continue.+HTTP/1.1 200"
,
'PUT 100-Continue'
);
}
}
sub
do_unit_test
{
my
$target
=
on_windows
()
?
'wi'
:
'un'
;
system
(
"make $target"
)
==
0
or
fail
(
"Unit test failed!"
);
}
print
"SUCCESS! All tests passed.\n"
;
print
"SUCCESS! All tests passed.\n"
;
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