forked from mozilla/gecko-dev
-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Unify necko and content test harnesses. Create common versions of tes…
…t harness files in tools/test-harness/xpcshell-simple, and modify the existing instances to use the common files. Bug 322894, r=darin,bzbarsky, sr=benjamin
- Loading branch information
davel%mozilla.com
committed
Jan 27, 2006
1 parent
e437fdb
commit da85bb1
Showing
14 changed files
with
208 additions
and
220 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,50 @@ | ||
# | ||
# ***** BEGIN LICENSE BLOCK ***** | ||
# Version: MPL 1.1/GPL 2.0/LGPL 2.1 | ||
# | ||
# The contents of this file are subject to the Mozilla 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/MPL/ | ||
# | ||
# 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 the Initial Developer are Copyright (C) 1998 | ||
# the Initial Developer. All Rights Reserved. | ||
# | ||
# Contributor(s): | ||
# David Liebreich <[email protected]> (Original author) | ||
# | ||
# Alternatively, the contents of this file may be used under the terms of | ||
# either of the GNU General Public License Version 2 or later (the "GPL"), | ||
# or the GNU Lesser General Public License Version 2.1 or later (the "LGPL"), | ||
# in which case the provisions of the GPL or the LGPL are applicable instead | ||
# of those above. If you wish to allow use of your version of this file only | ||
# under the terms of either the GPL or the LGPL, and not to allow others to | ||
# use your version of this file under the terms of the MPL, indicate your | ||
# decision by deleting the provisions above and replace them with the notice | ||
# and other provisions required by the GPL or the LGPL. If you do not delete | ||
# the provisions above, a recipient may use your version of this file under | ||
# the terms of any one of the MPL, the GPL or the LGPL. | ||
# | ||
# ***** END LICENSE BLOCK ***** | ||
|
||
DEPTH = ../.. | ||
topsrcdir = @top_srcdir@ | ||
srcdir = @srcdir@ | ||
VPATH = @srcdir@ | ||
|
||
include $(DEPTH)/config/autoconf.mk | ||
|
||
MODULE = test_harness | ||
DIRS = xpcshell-simple | ||
|
||
include $(topsrcdir)/config/rules.mk | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,3 @@ | ||
#!/bin/sh | ||
# | ||
# vim:set ts=2 sw=2 sts=2 et: | ||
# | ||
# ***** BEGIN LICENSE BLOCK ***** | ||
# Version: MPL 1.1/GPL 2.0/LGPL 2.1 | ||
|
@@ -17,16 +14,17 @@ | |
# | ||
# The Original Code is mozilla.org code. | ||
# | ||
# The Initial Developer of the Original Code is Google Inc. | ||
# The Initial Developer of the Original Code is | ||
# Mozilla.org. | ||
# Portions created by the Initial Developer are Copyright (C) 2005 | ||
# the Initial Developer. All Rights Reserved. | ||
# | ||
# Contributor(s): | ||
# Darin Fisher <[email protected]> | ||
# Boris Zbarsky <[email protected]> (Original author) | ||
# | ||
# Alternatively, the contents of this file may be used under the terms of | ||
# either the GNU General Public License Version 2 or later (the "GPL"), or | ||
# the GNU Lesser General Public License Version 2.1 or later (the "LGPL"), | ||
# either of the GNU General Public License Version 2 or later (the "GPL"), | ||
# or the GNU Lesser General Public License Version 2.1 or later (the "LGPL"), | ||
# in which case the provisions of the GPL or the LGPL are applicable instead | ||
# of those above. If you wish to allow use of your version of this file only | ||
# under the terms of either the GPL or the LGPL, and not to allow others to | ||
|
@@ -36,27 +34,26 @@ | |
# the provisions above, a recipient may use your version of this file under | ||
# the terms of any one of the MPL, the GPL or the LGPL. | ||
# | ||
# ***** END LICENSE BLOCK ***** */ | ||
# ***** END LICENSE BLOCK ***** | ||
|
||
DEPTH = ../../.. | ||
topsrcdir = @top_srcdir@ | ||
srcdir = @srcdir@ | ||
VPATH = @srcdir@ | ||
|
||
include $(DEPTH)/config/autoconf.mk | ||
|
||
# allow core dumps | ||
ulimit -c 20480 2> /dev/null | ||
MODULE = test_harness_xpcshell_simple | ||
|
||
dir=`dirname $0` | ||
bin="$dir/.." | ||
include $(topsrcdir)/config/rules.mk | ||
|
||
exit_status=0 | ||
_TEST_FILES = test_all.sh | ||
_UNIT_FILES = head.js \ | ||
tail.js \ | ||
$(NULL) | ||
|
||
for t in $dir/test_*.js | ||
do | ||
echo -n "$t: " | ||
$bin/xpcshell -f $dir/head.js -f $t -f $dir/tail.js 2> $t.log 1>&2 | ||
if [ `grep -c '\*\*\* PASS' $t.log` = 0 ] | ||
then | ||
echo "FAIL (see $t.log)" | ||
exit_status=1 | ||
else | ||
echo "PASS" | ||
fi | ||
done | ||
libs:: $(_UNIT_FILES) | ||
$(INSTALL) $^ $(DIST)/bin/test-harness/xpcshell-simple | ||
|
||
exit $exit_status | ||
libs:: $(_TEST_FILES) | ||
$(INSTALL) $^ $(DIST)/bin/ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
Simple xpcshell-based test harness | ||
|
||
converted from netwerk/test/unit | ||
|
||
current project page at http://wiki.mozilla.org/SoftwareTesting:Tools:Simple_xpcshell_test_harness | ||
|
Oops, something went wrong.