mirror of
https://github.com/mozilla/gecko-dev.git
synced 2025-02-02 12:07:52 +00:00
** NOT PART OF THE BUILD ** | Moving parser test cases from logparse dir. to html dir.
This commit is contained in:
parent
6be192d273
commit
dce1c9383b
@ -150,6 +150,7 @@ htmlparser/src/Makefile
|
||||
htmlparser/tests/Makefile
|
||||
htmlparser/tests/grabpage/Makefile
|
||||
htmlparser/tests/logparse/Makefile
|
||||
htmlparser/tests/html/Makefile
|
||||
htmlparser/tests/outsinks/Makefile
|
||||
"
|
||||
|
||||
|
20
htmlparser/tests/html/ListGen.pl
Executable file
20
htmlparser/tests/html/ListGen.pl
Executable file
@ -0,0 +1,20 @@
|
||||
#!/usr/bin/perl
|
||||
|
||||
use Cwd;
|
||||
|
||||
$curr_dir=`cd`;
|
||||
|
||||
open(OUTFILE,">file_list.txt") || die "Can't open file_list.txt $!";
|
||||
opendir(D,".");
|
||||
|
||||
@files=readdir(D);
|
||||
$curr_dir=~s/\\/\//g;
|
||||
chomp($curr_dir);
|
||||
|
||||
foreach $file(@files) {
|
||||
if($file=~m/\.*m/) {
|
||||
print OUTFILE "$file\n";
|
||||
}
|
||||
}
|
||||
|
||||
|
48
htmlparser/tests/html/Makefile.in
Normal file
48
htmlparser/tests/html/Makefile.in
Normal file
@ -0,0 +1,48 @@
|
||||
#
|
||||
# The contents of this file are subject to the Netscape Public
|
||||
# License Version 1.1 (the "License"); you may not use this file
|
||||
# except in compliance with the License. You may obtain a copy of
|
||||
# the License at http://www.mozilla.org/NPL/
|
||||
#
|
||||
# Software distributed under the License is distributed on an "AS
|
||||
# IS" basis, WITHOUT WARRANTY OF ANY KIND, either express or
|
||||
# implied. See the License for the specific language governing
|
||||
# rights and limitations under the License.
|
||||
#
|
||||
# The Original Code is mozilla.org code.
|
||||
#
|
||||
# The Initial Developer of the Original Code is Netscape
|
||||
# Communications Corporation. Portions created by Netscape are
|
||||
# Copyright (C) 1998 Netscape Communications Corporation. All
|
||||
# Rights Reserved.
|
||||
#
|
||||
# Contributor(s):
|
||||
#
|
||||
|
||||
DEPTH = ../../..
|
||||
topsrcdir = y:/mozilla
|
||||
srcdir = y:/mozilla/htmlparser/tests/html
|
||||
VPATH = y:/mozilla/htmlparser/tests/html
|
||||
|
||||
include $(DEPTH)/config/autoconf.mk
|
||||
|
||||
PROGRAM = TestParser.exe
|
||||
|
||||
REQUIRES = \
|
||||
xpcom \
|
||||
string \
|
||||
necko \
|
||||
htmlparser \
|
||||
$(NULL)
|
||||
|
||||
CPPSRCS = \
|
||||
TestParser.cpp\
|
||||
$(NULL)
|
||||
|
||||
LIBS = \
|
||||
$(XPCOM_LIBS) \
|
||||
$(NSPR_LIBS) \
|
||||
$(NULL)
|
||||
|
||||
include $(topsrcdir)/config/rules.mk
|
||||
|
9
htmlparser/tests/html/README
Normal file
9
htmlparser/tests/html/README
Normal file
@ -0,0 +1,9 @@
|
||||
To run parser regression test do the following:
|
||||
|
||||
1) perl ListGen.pl ( this will create file_list.txt )
|
||||
2) make ( build TestParser.exe )
|
||||
3) perl TestParser.pl -b <drive>:/<path>/mozilla/dist/bin file_list.txt
|
||||
( creates base line files. Note: Should be run _without_ your changes )
|
||||
4) apply your patch.
|
||||
5) perl TestParser.pl -v <drive>:/<path>/mozilla/dist/bin file_list.txt
|
||||
( creates .v files and compares against base line. )
|
0
htmlparser/tests/logparse/TestParser.pl → htmlparser/tests/html/TestParser.pl
Normal file → Executable file
0
htmlparser/tests/logparse/TestParser.pl → htmlparser/tests/html/TestParser.pl
Normal file → Executable file
55
htmlparser/tests/html/makefile.win
Executable file
55
htmlparser/tests/html/makefile.win
Executable file
@ -0,0 +1,55 @@
|
||||
#!nmake
|
||||
#
|
||||
# The contents of this file are subject to the Netscape Public
|
||||
# License Version 1.1 (the "License"); you may not use this file
|
||||
# except in compliance with the License. You may obtain a copy of
|
||||
# the License at http://www.mozilla.org/NPL/
|
||||
#
|
||||
# Software distributed under the License is distributed on an "AS
|
||||
# IS" basis, WITHOUT WARRANTY OF ANY KIND, either express or
|
||||
# implied. See the License for the specific language governing
|
||||
# rights and limitations under the License.
|
||||
#
|
||||
# The Original Code is mozilla.org code.
|
||||
#
|
||||
# The Initial Developer of the Original Code is Netscape
|
||||
# Communications Corporation. Portions created by Netscape are
|
||||
# Copyright (C) 1998 Netscape Communications Corporation. All
|
||||
# Rights Reserved.
|
||||
#
|
||||
# Contributor(s):
|
||||
|
||||
DEPTH =..\..\..
|
||||
REQUIRES = \
|
||||
xpcom \
|
||||
htmlparser\
|
||||
necko \
|
||||
string \
|
||||
$NULL
|
||||
|
||||
MAKE_OBJ_TYPE = EXE
|
||||
PROGRAM = .\$(OBJDIR)\TestParser.exe
|
||||
|
||||
OBJS = \
|
||||
.\$(OBJDIR)\TestParser.obj\
|
||||
$(NULL)
|
||||
|
||||
|
||||
LLIBS = \
|
||||
$(DIST)\lib\xpcom.lib \
|
||||
$(LIBNSPR) \
|
||||
$(NULL)
|
||||
|
||||
LLFLAGS= -SUBSYSTEM:CONSOLE
|
||||
|
||||
include <$(DEPTH)\config\rules.mak>
|
||||
|
||||
!ifdef MOZ_NO_DEBUG_RTL
|
||||
OS_CFLAGS = $(OS_CFLAGS) -DMOZ_NO_DEBUG_RTL
|
||||
!endif
|
||||
|
||||
libs:: $(PROGRAM)
|
||||
$(MAKE_INSTALL) $(PROGRAM) $(DIST)\bin
|
||||
|
||||
clobber::
|
||||
rm -f $(DIST)\bin\TestParser.exe
|
@ -26,7 +26,7 @@ VPATH = y:/mozilla/htmlparser/tests/logparse
|
||||
|
||||
include $(DEPTH)/config/autoconf.mk
|
||||
|
||||
PROGRAM = TestParser.exe
|
||||
PROGRAM = logparse.exe
|
||||
|
||||
REQUIRES = \
|
||||
xpcom \
|
||||
@ -36,7 +36,7 @@ REQUIRES = \
|
||||
$(NULL)
|
||||
|
||||
CPPSRCS = \
|
||||
TestParser.cpp\
|
||||
logparse.cpp\
|
||||
$(NULL)
|
||||
|
||||
LIBS = \
|
||||
|
@ -28,10 +28,10 @@ REQUIRES = \
|
||||
$NULL
|
||||
|
||||
MAKE_OBJ_TYPE = EXE
|
||||
PROGRAM = .\$(OBJDIR)\TestParser.exe
|
||||
PROGRAM = .\$(OBJDIR)\logparse.exe
|
||||
|
||||
OBJS = \
|
||||
.\$(OBJDIR)\TestParser.obj\
|
||||
.\$(OBJDIR)\logparse.obj\
|
||||
$(NULL)
|
||||
|
||||
|
||||
|
Some files were not shown because too many files have changed in this diff Show More
Loading…
x
Reference in New Issue
Block a user