mirror of
https://github.com/reactos/ccache.git
synced 2024-10-07 09:03:32 +00:00
Remove test.sh's dependency on Perl
This commit is contained in:
parent
ef8079b953
commit
ecd8e731ae
7
INSTALL
7
INSTALL
@ -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
12
test.sh
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user