mirror of
https://github.com/ZDoom/fluidsynth.git
synced 2024-11-10 06:51:54 +00:00
Update convert-tests.sh
This commit is contained in:
parent
8023bc9dd6
commit
807e5c27ec
1 changed files with 1 additions and 1 deletions
|
@ -18,7 +18,7 @@ rm -f test-names.txt
|
|||
mkdir -p app/src/main/cpp/tests/
|
||||
|
||||
for f in `grep -lR "int main(void)" ../test/ | sort` ; do
|
||||
export TESTMAINNAME=`echo $f | sed -E "s/\.\.\/test\/test_\(.*\).c$/\1/"`
|
||||
export TESTMAINNAME=`echo $f | sed -e "s/\.\.\/test\/*test_\(.*\).c$/\1/"`
|
||||
echo $TESTMAINNAME >> test-names.txt
|
||||
export OUTPUTFILE=app/src/main/cpp/tests/test_${TESTMAINNAME}.c
|
||||
sed -e "s/int main(void)/int "$TESTMAINNAME"_main(void)/" $f > $OUTPUTFILE ;
|
||||
|
|
Loading…
Reference in a new issue