2 # SPDX-License-Identifier: GPL-2.0
4 # This runs all known tests across all known possible configurations we could
10 source $TEST_DIR/fw_lib.sh
12 export HAS_FW_LOADER_USER_HELPER
=""
13 export HAS_FW_LOADER_USER_HELPER_FALLBACK
=""
17 proc_set_force_sysfs_fallback
$1
18 proc_set_ignore_sysfs_fallback
$2
19 $TEST_DIR/fw_filesystem.sh
21 proc_set_force_sysfs_fallback
$1
22 proc_set_ignore_sysfs_fallback
$2
23 $TEST_DIR/fw_fallback.sh
26 run_test_config_0001
()
28 echo "-----------------------------------------------------"
29 echo "Running kernel configuration test 1 -- rare"
31 echo "CONFIG_FW_LOADER=y"
32 echo "CONFIG_FW_LOADER_USER_HELPER=n"
33 echo "CONFIG_FW_LOADER_USER_HELPER_FALLBACK=n"
37 run_test_config_0002
()
39 echo "-----------------------------------------------------"
40 echo "Running kernel configuration test 2 -- distro"
42 echo "CONFIG_FW_LOADER=y"
43 echo "CONFIG_FW_LOADER_USER_HELPER=y"
44 echo "CONFIG_FW_LOADER_USER_HELPER_FALLBACK=n"
45 proc_set_ignore_sysfs_fallback
0
49 run_test_config_0003
()
51 echo "-----------------------------------------------------"
52 echo "Running kernel configuration test 3 -- android"
54 echo "CONFIG_FW_LOADER=y"
55 echo "CONFIG_FW_LOADER_USER_HELPER=y"
56 echo "CONFIG_FW_LOADER_USER_HELPER_FALLBACK=y"
63 if [ -f $FW_FORCE_SYSFS_FALLBACK ]; then
68 echo "Running basic kernel configuration, working with your config"