github.com/rancher/elemental/tests@v0.0.0-20240517125144-ae048c615b3f/scripts/generate-readme (about)

     1  #!/bin/bash
     2  
     3  # Execute script on all directories
     4  for DIR in $(find $1 -type d); do
     5    if [[ -d ${DIR} ]]; then
     6      VALUE=$(scripts/generate-tests-description ${DIR})
     7      if [[ -n "${VALUE}" ]]; then
     8        echo -e "# Tests description for ${DIR#./}\n"
     9        echo -e "${VALUE}\n"
    10      fi
    11    fi
    12  done
    13  
    14  # Done!
    15  exit 0