Skip to content

Commit e3034f3

Browse files
committed
Add scripts to copy icu and release scripts to build folder; add script for executing test on tablet
1 parent 6f72c69 commit e3034f3

File tree

3 files changed

+18
-0
lines changed

3 files changed

+18
-0
lines changed

copyicu.sh

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
#!/bin/sh
2+
mystrip=$ANDROID_NDK_HOME/toolchains/arm-linux-androideabi-4.8/prebuilt/linux-x86_64/bin/arm-linux-androideabi-strip
3+
for i in ../libiconv-libicu-android/armeabi-v7a/libicu*.so
4+
do
5+
echo $i
6+
$mystrip -o ../build/Ninja-ReleaseAssert+stdlib-DebugAssert/swift-linux-x86_64/lib/swift/android/`basename $i` $i
7+
done

copyto.sh

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
cd release
2+
cp -r * /home/zhuowei/build/Ninja-ReleaseAssert+stdlib-DebugAssert/swift-linux-x86_64/

rundroid

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
#!/bin/sh
2+
myuuid=`uuidgen`
3+
adb shell mkdir -p /data/local/tmp/$myuuid
4+
adb push $1 /data/local/tmp/$myuuid >/dev/null || exit
5+
b=`basename $1`
6+
adb shell chmod 755 /data/local/tmp/$myuuid/$b >/dev/null || exit
7+
adb shell LD_LIBRARY_PATH=/data/local/tmp/$myuuid:/data/local/tmp /data/local/tmp/$myuuid/$b ">/data/local/tmp/$myuuid/__stdout" 1>&2
8+
adb shell cat /data/local/tmp/$myuuid/__stdout
9+
adb shell rm -rf /data/local/tmp/$myuuid

0 commit comments

Comments
 (0)