Skip to content

Commit 26811d0

Browse files
committed
Use a script
1 parent 1a077ff commit 26811d0

File tree

2 files changed

+19
-0
lines changed

2 files changed

+19
-0
lines changed
Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
#!/bin/bash
2+
# Copyright (c) Meta Platforms, Inc. and affiliates.
3+
# All rights reserved.
4+
#
5+
# This source code is licensed under the BSD-style license found in the
6+
# LICENSE file in the root directory of this source tree.
7+
8+
set -ex
9+
10+
if [[ -z "${PYTHON_EXECUTABLE:-}" ]]; then
11+
PYTHON_EXECUTABLE=python3
12+
fi
13+
which "${PYTHON_EXECUTABLE}"
14+
15+
cp ../../../extension/module/test/resources/add.pte src/androidTest/resources

extension/android/executorch_android/build.gradle

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -36,6 +36,10 @@ android {
3636
}
3737
}
3838

39+
task copyTestRes(type: Exec) {
40+
commandLine 'sh', 'android_test_setup.sh'
41+
}
42+
3943
dependencies {
4044
implementation 'com.facebook.fbjni:fbjni:0.5.1'
4145
implementation 'com.facebook.soloader:nativeloader:0.10.5'

0 commit comments

Comments
 (0)