File: config.bash

package info (click to toggle)
ccache 4.12.2-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 5,188 kB
  • sloc: cpp: 47,282; asm: 28,570; sh: 8,674; ansic: 5,357; python: 685; perl: 68; makefile: 23
file content (23 lines) | stat: -rw-r--r-- 692 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
SUITE_config() {
    # -------------------------------------------------------------------------
    TEST "Environment origin"

    export CCACHE_MAXSIZE="40"

    $CCACHE --max-size "75" >/dev/null
    $CCACHE --show-config >config.txt

    expect_contains config.txt "(environment) max_size = 40"

    # -------------------------------------------------------------------------
    TEST "Command line origin"

    export CCACHE_DEBUG="1"
    export CCACHE_MAXSIZE="40"

    touch test.c
    $CCACHE debug=true "max_size = 40" $COMPILER -c test.c

    expect_contains test.o.*.ccache-log "(command line) debug = true"
    expect_contains test.o.*.ccache-log "(command line) max_size = 40"
}