Commit 5a3b1123 authored by Sergey Lyubka's avatar Sergey Lyubka

tests moved under build

parent 6a9494b6
...@@ -67,11 +67,11 @@ all: ...@@ -67,11 +67,11 @@ all:
../mongoose.c: ../mongoose.h Makefile $(SOURCES) ../mongoose.c: ../mongoose.h Makefile $(SOURCES)
cat $(SOURCES) | sed '/#include "internal.h"/d' > $@ cat $(SOURCES) | sed '/#include "internal.h"/d' > $@
unix_unit_test: $(LUA_SOURCES) Makefile ../test/unit_test.c unix_unit_test: $(LUA_SOURCES) Makefile ./test/unit_test.c
$(CC) ../test/unit_test.c lua_5.2.1.c $(CFLAGS) -g -O0 -o t && ./t $(CC) ./test/unit_test.c lua_5.2.1.c $(CFLAGS) -g -O0 -o t && ./t
core_unit_test: Makefile ../test/unit_test.c core_unit_test: Makefile ./test/unit_test.c
$(CC) ../test/unit_test.c $(CFLAGS) -g -O0 -o t && ./t $(CC) ./test/unit_test.c $(CFLAGS) -g -O0 -o t && ./t
# Make sure that the compiler flags come last in the compilation string. # Make sure that the compiler flags come last in the compilation string.
# If not so, this can break some on some Linux distros which use # If not so, this can break some on some Linux distros which use
...@@ -102,7 +102,7 @@ $(PROG).dll: $(TINY_SOURCES) Makefile ...@@ -102,7 +102,7 @@ $(PROG).dll: $(TINY_SOURCES) Makefile
# This is broken now due to SSL exclusion # This is broken now due to SSL exclusion
windows_unit_test.exe: $(LUA_SOURCES) Makefile windows_unit_test.exe: $(LUA_SOURCES) Makefile
$(CL) ../test/unit_test.c lua_5.2.1.c -DLUA_COMPAT_ALL \ $(CL) ./test/unit_test.c lua_5.2.1.c -DLUA_COMPAT_ALL \
/link /libpath:$(MSVC)/lib advapi32.lib /out:$@ /link /libpath:$(MSVC)/lib advapi32.lib /out:$@
./$@ ./$@
...@@ -128,7 +128,7 @@ macos: $(LUA_SOURCES) ...@@ -128,7 +128,7 @@ macos: $(LUA_SOURCES)
#rm -rf dmg #rm -rf dmg
tests: tests:
perl ../test/test.pl $(TEST) perl ./test/test.pl $(TEST)
tarball: clean tarball: clean
rm -rf mongoose-$(VERSION) rm -rf mongoose-$(VERSION)
......
<html><pre>
ssi_begin
<!--#include file="../Makefile" -->
ssi_end
</pre></html>
ssi_begin ssi_begin
<!--#include file="../build/Makefile" --> <!--#include file="../Makefile" -->
ssi_end ssi_end
...@@ -18,8 +18,8 @@ my $num_requests; ...@@ -18,8 +18,8 @@ my $num_requests;
my $dir_separator = on_windows() ? '\\' : '/'; my $dir_separator = on_windows() ? '\\' : '/';
my $copy_cmd = on_windows() ? 'copy' : 'cp'; my $copy_cmd = on_windows() ? 'copy' : 'cp';
my $test_dir_uri = "test_dir"; my $test_dir_uri = "test_dir";
my $root = '../test'; my $root = './test';
my $abs_root = Cwd::abs_path(dirname($0) . $dir_separator . $root); my $abs_root = Cwd::abs_path(dirname($0) . $dir_separator);
my $test_dir = $abs_root . $dir_separator. $test_dir_uri; my $test_dir = $abs_root . $dir_separator. $test_dir_uri;
#print "$test_dir\n"; exit 0; #print "$test_dir\n"; exit 0;
my $config = 'mongoose.conf'; my $config = 'mongoose.conf';
......
This diff is collapsed.
<html><pre>
ssi_begin
<!--#include file="../build/Makefile" -->
ssi_end
</pre></html>
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment