randcode() {
outfile="$1"
nlines=$2
- i=0;
+ i=0
(
while [ $i -lt $nlines ]; do
echo "int foo$nlines$i(int x) { return x; }"
}
run_suite() {
+ rm -rf $CCACHE_DIR
+
echo "starting testsuite $1"
testsuite=$1
}
base_tests() {
- rm -rf $CCACHE_DIR
checkstat 'cache hit (preprocessed)' 0
checkstat 'cache miss' 0
checkstat 'files in cache' 0
}
direct_suite() {
- rm -rf $CCACHE_DIR
unset CCACHE_NODIRECT
##################################################################
}
basedir_suite() {
- rm -rf $CCACHE_DIR
-
##################################################################
# Create some code to compile.
mkdir -p dir1/src dir1/include
}
compression_suite() {
- rm -rf $CCACHE_DIR
-
##################################################################
# Create some code to compile.
cat <<EOF >test.c
CCACHE_NODIRECT=1
export CCACHE_NODIRECT
-mkdir $CCACHE_DIR
-
# ---------------------------------------
all_suites="