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
6e59ad8a
Commit
6e59ad8a
authored
May 19, 2013
by
Sergey Lyubka
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix for prepare_lua_environment
parent
f4862b64
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
10 additions
and
5 deletions
+10
-5
Makefile
Makefile
+8
-3
test.pl
test/test.pl
+1
-1
unit_test.c
test/unit_test.c
+1
-1
No files found.
Makefile
View file @
6e59ad8a
...
...
@@ -107,6 +107,12 @@ bsd_lua: $(ALL_OBJECTS)
solaris
:
$(CC)
mongoose.c main.c
-lnsl
-lsocket
-o
$(PROG)
$(CFLAGS)
lib$(PROG).a
:
$(ALL_OBJECTS)
ar cr
$@
$(ALL_OBJECTS)
$(PROG).lib
:
$(ALL_WINOBJS)
$(MSVC)
/bin/lib /out:
$@
$(ALL_WINOBJS)
# For codesign to work in non-interactive mode, unlock login keychain:
# security unlock ~/Library/Keychains/login.keychain
# See e.g. http://lists.apple.com/archives/apple-cdsa/2008/Jan/msg00027.html
...
...
@@ -120,12 +126,12 @@ Mongoose: mongoose.c main.c
cocoa
:
Mongoose
V
=
`
perl
-lne
'/define\s+MONGOOSE_VERSION\s+"(\S+)"/ and print $$1'
mongoose.c
`
;
DIR
=
dmg/Mongoose.app
&&
rm
-rf
$$
DIR
&&
mkdir
-p
$$
DIR/Contents/
{
MacOS,Resources
}
&&
install
-m
644 build/mongoose_
*
.png
$$
DIR/Contents/Resources/
&&
install
-m
644 build/Info.plist
$$
DIR/Contents/
&&
install
-m
755 Mongoose
$$
DIR/Contents/MacOS/
&&
ln
-fs
/Applications dmg/
;
hdiutil create Mongoose_
$$
V.dmg
-volname
"Mongoose
$$
V"
-srcfolder
dmg
-ov
#; rm -rf dmg
u
:
u
n
:
$(CC)
test
/unit_test.c
-o
unit_test
-I
.
-I
$(LUA)
$(LUA_SOURCES)
\
$(CFLAGS)
-g
-O0
./unit_test
w
:
w
i
:
$(CL)
test
/unit_test.c
$(LUA_SOURCES)
\
$(YASSL_SOURCES)
$(YASSL_FLAGS)
/DNO_SSL_DL
\
$(MSLIB)
/out:unit_test.exe
...
...
@@ -172,4 +178,3 @@ clean:
rm
-rf
*
.o
*
.core
$(PROG)
*
.obj
*
.so
$(PROG)
.txt
*
.dSYM
*
.tgz
\
$(PROG)
.exe
*
.dll
*
.lib build/res.o build/res.RES
*
.dSYM
*
.zip
*
.pdb
\
*
.exe
*
.dmg
$(ALL_OBJECTS)
$(ALL_WINOBJS)
test/test.pl
View file @
6e59ad8a
...
...
@@ -450,7 +450,7 @@ sub do_PUT_test {
}
sub
do_unit_test
{
my
$target
=
on_windows
()
?
'w
'
:
'u
'
;
my
$target
=
on_windows
()
?
'w
i'
:
'un
'
;
system
(
"make $target"
)
==
0
or
fail
(
"Unit test failed!"
);
}
...
...
test/unit_test.c
View file @
6e59ad8a
...
...
@@ -463,7 +463,7 @@ static void test_lua(void) {
&
conn
.
request_info
);
conn
.
content_len
=
conn
.
data_len
-
conn
.
request_len
;
prepare_lua_environment
(
&
conn
,
L
);
mg_
prepare_lua_environment
(
&
conn
,
L
);
ASSERT
(
lua_gettop
(
L
)
==
0
);
check_lua_expr
(
L
,
"'hi'"
,
"hi"
);
...
...
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