1f9afce4fSKees Cook# SPDX-License-Identifier: GPL-2.0 2f9afce4fSKees Cook# Test transitional symbols for config migration with all Kconfig types 3f9afce4fSKees Cook 4f9afce4fSKees Cook# Enable module support for tristate testing 5f9afce4fSKees Cookconfig MODULES 6f9afce4fSKees Cook bool "Enable loadable module support" 7f9afce4fSKees Cook modules 8f9afce4fSKees Cook default y 9f9afce4fSKees Cook 10f9afce4fSKees Cook# Basic migration tests for all types 11f9afce4fSKees Cookconfig NEW_BOOL 12f9afce4fSKees Cook bool "New bool option" 13f9afce4fSKees Cook default OLD_BOOL 14f9afce4fSKees Cook 15f9afce4fSKees Cookconfig OLD_BOOL 16f9afce4fSKees Cook bool 17f9afce4fSKees Cook transitional 18f9afce4fSKees Cook 19f9afce4fSKees Cookconfig NEW_TRISTATE 20f9afce4fSKees Cook tristate "New tristate option" 21f9afce4fSKees Cook default OLD_TRISTATE 22f9afce4fSKees Cook 23f9afce4fSKees Cookconfig OLD_TRISTATE 24f9afce4fSKees Cook tristate 25f9afce4fSKees Cook transitional 26f9afce4fSKees Cook 27f9afce4fSKees Cookconfig NEW_STRING 28f9afce4fSKees Cook string "New string option" 29f9afce4fSKees Cook default OLD_STRING 30f9afce4fSKees Cook 31f9afce4fSKees Cookconfig OLD_STRING 32f9afce4fSKees Cook string 33f9afce4fSKees Cook transitional 34f9afce4fSKees Cook 35f9afce4fSKees Cookconfig NEW_HEX 36f9afce4fSKees Cook hex "New hex option" 37f9afce4fSKees Cook default OLD_HEX 38f9afce4fSKees Cook 39f9afce4fSKees Cookconfig OLD_HEX 40f9afce4fSKees Cook hex 41f9afce4fSKees Cook transitional 42f9afce4fSKees Cook 43f9afce4fSKees Cookconfig NEW_INT 44f9afce4fSKees Cook int "New int option" 45f9afce4fSKees Cook default OLD_INT 46f9afce4fSKees Cook 47f9afce4fSKees Cookconfig OLD_INT 48f9afce4fSKees Cook int 49f9afce4fSKees Cook transitional 50f9afce4fSKees Cook 51f9afce4fSKees Cook# Precedence tests for all types 52f9afce4fSKees Cookconfig NEW_BOOL_PRECEDENCE 53f9afce4fSKees Cook bool "New bool option with precedence" 54f9afce4fSKees Cook default OLD_BOOL_PRECEDENCE 55f9afce4fSKees Cook 56f9afce4fSKees Cookconfig OLD_BOOL_PRECEDENCE 57f9afce4fSKees Cook bool 58f9afce4fSKees Cook transitional 59f9afce4fSKees Cook 60f9afce4fSKees Cookconfig NEW_STRING_PRECEDENCE 61f9afce4fSKees Cook string "New string option with precedence" 62f9afce4fSKees Cook default OLD_STRING_PRECEDENCE 63f9afce4fSKees Cook 64f9afce4fSKees Cookconfig OLD_STRING_PRECEDENCE 65f9afce4fSKees Cook string 66f9afce4fSKees Cook transitional 67f9afce4fSKees Cook 68f9afce4fSKees Cookconfig NEW_TRISTATE_PRECEDENCE 69f9afce4fSKees Cook tristate "New tristate option with precedence" 70f9afce4fSKees Cook default OLD_TRISTATE_PRECEDENCE 71f9afce4fSKees Cook 72f9afce4fSKees Cookconfig OLD_TRISTATE_PRECEDENCE 73f9afce4fSKees Cook tristate 74f9afce4fSKees Cook transitional 75f9afce4fSKees Cook 76f9afce4fSKees Cookconfig NEW_HEX_PRECEDENCE 77f9afce4fSKees Cook hex "New hex option with precedence" 78f9afce4fSKees Cook default OLD_HEX_PRECEDENCE 79f9afce4fSKees Cook 80f9afce4fSKees Cookconfig OLD_HEX_PRECEDENCE 81f9afce4fSKees Cook hex 82f9afce4fSKees Cook transitional 83f9afce4fSKees Cook 84f9afce4fSKees Cookconfig NEW_INT_PRECEDENCE 85f9afce4fSKees Cook int "New int option with precedence" 86f9afce4fSKees Cook default OLD_INT_PRECEDENCE 87f9afce4fSKees Cook 88f9afce4fSKees Cookconfig OLD_INT_PRECEDENCE 89f9afce4fSKees Cook int 90f9afce4fSKees Cook transitional 91f9afce4fSKees Cook 92f9afce4fSKees Cook# Test that help sections are allowed for transitional symbols 93f9afce4fSKees Cookconfig OLD_WITH_HELP 94f9afce4fSKees Cook bool 95f9afce4fSKees Cook transitional 96f9afce4fSKees Cook help 97f9afce4fSKees Cook This transitional symbol has a help section to validate that help is allowed. 98f9afce4fSKees Cook 99*0902b3cbSKees Cook# Test that we can set something to =n via transitional symbol 100*0902b3cbSKees Cookconfig NEW_DISABLED 101*0902b3cbSKees Cook tristate "Check for setting to disabled" 102*0902b3cbSKees Cook default OLD_DISABLED 103*0902b3cbSKees Cook 104*0902b3cbSKees Cookconfig OLD_DISABLED 105*0902b3cbSKees Cook tristate 106*0902b3cbSKees Cook transitional 107*0902b3cbSKees Cook 108*0902b3cbSKees Cook# Test that a potential new value disappears if it lacks a prompt 109*0902b3cbSKees Cookconfig NEW_DISABLED_UNSAVED 110*0902b3cbSKees Cook tristate 111*0902b3cbSKees Cook default OLD_DISABLED 112*0902b3cbSKees Cook 113*0902b3cbSKees Cookconfig OLD_DISABLED_UNSAVED 114*0902b3cbSKees Cook tristate 115*0902b3cbSKees Cook transitional 116*0902b3cbSKees Cook 117*0902b3cbSKees Cook# Test conditional default: transitional value should not prevent prompting 118*0902b3cbSKees Cook# when default visibility makes the expression evaluate to 'no' 119*0902b3cbSKees Cookconfig DEPENDENCY_TEST 120*0902b3cbSKees Cook bool "Dependency for testing" 121*0902b3cbSKees Cook default n 122*0902b3cbSKees Cook 123*0902b3cbSKees Cookconfig NEW_CONDITIONAL_DEFAULT 124*0902b3cbSKees Cook bool "New option with conditional default" 125*0902b3cbSKees Cook default OLD_CONDITIONAL_DEFAULT if DEPENDENCY_TEST 126*0902b3cbSKees Cook 127*0902b3cbSKees Cookconfig OLD_CONDITIONAL_DEFAULT 128*0902b3cbSKees Cook bool 129*0902b3cbSKees Cook transitional 130*0902b3cbSKees Cook 131f9afce4fSKees Cookconfig REGULAR_OPTION 132f9afce4fSKees Cook bool "Regular option" 133