Commit b106aeb3 authored by Bernhard Nortmann's avatar Bernhard Nortmann
Browse files

appveyor: Work around incorrect "find" invocation



test_all_fex.sh now accepts an optional second parameter that
specifies the find executable to use. Without explicitly passing
it, AppVeyor would invoke the wrong one (Windows' own find.exe).
Signed-off-by: default avatarBernhard Nortmann <bernhard.nortmann@web.de>
parent 0f1b5c1d
...@@ -18,7 +18,7 @@ build_script: ...@@ -18,7 +18,7 @@ build_script:
- cmd: mingw32-make misc - cmd: mingw32-make misc
test_script: test_script:
- cmd: mingw32-make -C tests/ check_all_fex - cmd: mingw32-make -C tests/ check_all_fex FIND=/bin/find
after_test: after_test:
- cmd: .appveyor/package-artifacts.cmd - cmd: .appveyor/package-artifacts.cmd
......
...@@ -9,7 +9,7 @@ check: check_all_fex coverage ...@@ -9,7 +9,7 @@ check: check_all_fex coverage
# Conversion cycle (.fex -> .bin -> .fex) test for all sunxi-boards # Conversion cycle (.fex -> .bin -> .fex) test for all sunxi-boards
check_all_fex: $(BOARDS_DIR)/README unify-fex check_all_fex: $(BOARDS_DIR)/README unify-fex
./test_all_fex.sh $(BOARDS_DIR) ./test_all_fex.sh $(BOARDS_DIR) $(FIND)
coverage: coverage:
# Usage help / invocation with no args # Usage help / invocation with no args
......
#!/bin/sh #!/bin/sh
FEXFILES=fexfiles.lst FEXFILES=fexfiles.lst
find $1 -name '*.fex' > ${FEXFILES} if test -z $2; then
FIND=find
else
FIND=$2
fi
${FIND} $1 -name '*.fex' > ${FEXFILES}
while read fex; do while read fex; do
./fextest.sh ${fex} || exit ./fextest.sh ${fex} || exit
done <${FEXFILES} done <${FEXFILES}
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment