Remove test.sh's dependency on Perl

This commit is contained in:
Joel Rosdahl 2010-02-23 22:23:36 +01:00
parent ef8079b953
commit ecd8e731ae
2 changed files with 13 additions and 6 deletions

View File

@ -53,9 +53,8 @@ BUILDING CODE FROM THE SOURCE CODE REPOSITORY
In addition to the prerequisites mentioned above, you also need:
* asciidoc (http://www.methods.co.nz/asciidoc/) to build the documentation.
* autoconf (http://www.gnu.org/software/autoconf/)
* perl (http://www.perl.com/) to run the testsuite
- asciidoc (http://www.methods.co.nz/asciidoc/) to build the documentation.
- autoconf (http://www.gnu.org/software/autoconf/)
Run "./autogen.sh" to generate "configure" and "config.h.in" and then follow
the steps mentioned in INSTALLATION.
the steps mentioned under INSTALLATION above.

12
test.sh
View File

@ -82,6 +82,14 @@ checkfile() {
fi
}
sed_in_place() {
expr=$1
shift
for file in $*; do
(rm $file; sed "$expr" >$file) <$file
done
}
run_suite() {
echo "starting testsuite $1"
testsuite=$1
@ -683,7 +691,7 @@ EOF
checkstat 'cache hit (preprocessed)' 0
checkstat 'cache miss' 1
perl -pi -e 's/foo/ignored/' comments.h comments.c
sed_in_place 's/foo/ignored/' comments.h comments.c
sleep 1 # Sleep to make the include file trusted.
$CCACHE $COMPILER -c comments.c
@ -692,7 +700,7 @@ EOF
checkstat 'cache miss' 1
# Check that comment-like string contents are hashed.
perl -pi -e 's/apple/orange/' comments.c
sed_in_place 's/apple/orange/' comments.c
sleep 1 # Sleep to make the include file trusted.
$CCACHE $COMPILER -c comments.c