From 807e5c27ec40ab8c468bcb60fa884b3588d1e2b9 Mon Sep 17 00:00:00 2001 From: Tom M Date: Mon, 14 Jun 2021 22:48:36 +0200 Subject: [PATCH] Update convert-tests.sh --- test-android/convert-tests.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/test-android/convert-tests.sh b/test-android/convert-tests.sh index 08d2b867..16c02bd1 100644 --- a/test-android/convert-tests.sh +++ b/test-android/convert-tests.sh @@ -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 ;