tests/themes/run.sh: distinguish header from tests/run.sh

This commit is contained in:
Daniel Hahler 2017-08-13 12:06:12 +02:00
parent 730b706217
commit 062f9d6a15
1 changed files with 5 additions and 5 deletions

View File

@ -15,12 +15,12 @@ tests_dir="$(dirname -- "$0")/.."
config_file="$build_dir/test-themes-awesomerc.lua"
for theme in themes/*/theme.lua; do
echo "== Testing $theme =="
theme=${theme%/*}
theme=${theme##*/}
for theme_file in themes/*/theme.lua; do
echo "==== Testing theme: $theme_file ===="
theme_name=${theme_file%/*}
theme_name=${theme_name##*/}
sed "s~default/theme~$theme/theme~g" "awesomerc.lua" > "$config_file"
sed "s~default/theme~$theme_name/theme~g" "awesomerc.lua" > "$config_file"
# Set CMAKE_BINARY_DIR for out-of-tree builds.
CMAKE_BINARY_DIR="$PWD" \