Skip to content
Snippets Groups Projects
randconfig 351 B
Newer Older
  • Learn to ignore specific revisions
  • Daniel Friesel's avatar
    Daniel Friesel committed
    #!/bin/sh
    
    # Copyright 2020 Birte Kristina Friesel
    
    #
    # SPDX-License-Identifier: BSD-2-Clause
    
    Daniel Friesel's avatar
    Daniel Friesel committed
    
    # randconfig occasionally generates invalid configs which lack an application.
    # Try generating a valid config up to ten times.
    
    for i in $(seq 1 10); do
    	kconfig-conf --randconfig Kconfig
    	if grep -F -q CONFIG_app= .config; then
    		exit 0
    	fi
    done
    
    exit 1