Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 227e7290 authored by Makoto Onuki's avatar Makoto Onuki Committed by Gerrit Code Review
Browse files

Merge "Update ravenwood TEST_MAPPING" into main

parents 9d44241b 2c66eabb
Loading
Loading
Loading
Loading
+10 −6
Original line number Original line Diff line number Diff line
@@ -35,18 +35,18 @@
    },
    },
    {
    {
      "name": "CarLibHostUnitTest",
      "name": "CarLibHostUnitTest",
      "host": true,
      "keywords": ["automotive_code_coverage"],
      "keywords": ["automotive_code_coverage"]
      "host": true
    },
    },
    {
    {
      "name": "CarServiceHostUnitTest",
      "name": "CarServiceHostUnitTest",
      "host": true,
      "keywords": ["automotive_code_coverage"],
      "keywords": ["automotive_code_coverage"]
      "host": true
    },
    },
    {
    {
      "name": "CarSystemUIRavenTests",
      "name": "CarSystemUIRavenTests",
      "host": true,
      "keywords": ["automotive_code_coverage"],
      "keywords": ["automotive_code_coverage"]
      "host": true
    },
    },
    {
    {
      "name": "CtsAccountManagerTestCasesRavenwood",
      "name": "CtsAccountManagerTestCasesRavenwood",
@@ -64,6 +64,10 @@
      "name": "CtsDatabaseTestCasesRavenwood",
      "name": "CtsDatabaseTestCasesRavenwood",
      "host": true
      "host": true
    },
    },
    {
      "name": "CtsDeviceConfigTestCasesRavenwood",
      "host": true
    },
    {
    {
      "name": "CtsGraphicsTestCasesRavenwood",
      "name": "CtsGraphicsTestCasesRavenwood",
      "host": true
      "host": true
+12 −0
Original line number Original line Diff line number Diff line
@@ -23,6 +23,14 @@ set -e
# Tests that shouldn't be in presubmit.
# Tests that shouldn't be in presubmit.
EXEMPT='^(SystemUiRavenTests)$'
EXEMPT='^(SystemUiRavenTests)$'


is_car() {
    local module="$1"

    # If the module name starts with "Car", then it's a test for "Car".
    [[ "$module" =~ ^Car ]]
    return $?
}

main() {
main() {
    local script_name="${0##*/}"
    local script_name="${0##*/}"
    local script_dir="${0%/*}"
    local script_dir="${0%/*}"
@@ -62,6 +70,10 @@ main() {
            fi
            fi
            echo "    {"
            echo "    {"
            echo "      \"name\": \"${tests[$i]}\","
            echo "      \"name\": \"${tests[$i]}\","
            if is_car "${tests[$i]}"; then
                echo '      "keywords": ["automotive_code_coverage"],'
            fi

            echo "      \"host\": true"
            echo "      \"host\": true"
            echo "    }$comma"
            echo "    }$comma"