Skip to content

Commit

Permalink
copy test resources
Browse files Browse the repository at this point in the history
  • Loading branch information
albho committed Apr 18, 2024
1 parent a9a7b4d commit b6b7fae
Show file tree
Hide file tree
Showing 5 changed files with 29 additions and 0 deletions.
3 changes: 3 additions & 0 deletions .github/workflows/ios-appcenter.yml
Original file line number Diff line number Diff line change
Expand Up @@ -45,6 +45,9 @@ jobs:
brew update
brew install convmv
- name: Copy test_resources
run: ./copy_test_resources.sh

- name: Run Cocoapods
run: pod install

Expand Down
3 changes: 3 additions & 0 deletions .github/workflows/ios-perf.yml
Original file line number Diff line number Diff line change
Expand Up @@ -52,6 +52,9 @@ jobs:
brew update
brew install convmv
- name: Copy test_resources
run: ./copy_test_resources.sh

- name: Run Cocoapods
run: pod install

Expand Down
3 changes: 3 additions & 0 deletions binding/ios/FalconAppTest/.gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -18,3 +18,6 @@ build/*
xcuserdata
Pods
ddp

FalconAppTestUITests/test_resources/*
!FalconAppTestUITests/test_resources/.gitkeep
Empty file.
20 changes: 20 additions & 0 deletions binding/ios/FalconAppTest/copy_test_resources.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
LIB_DIR="../../../lib"
RESOURCE_DIR="../../../resources"
ASSETS_DIR="./FalconAppTestUITests/test_resources"

echo "Creating test resources asset directory"
mkdir -p ${ASSETS_DIR}

echo "Copying test audio samples..."
mkdir -p ${ASSETS_DIR}/audio_samples
cp ${RESOURCE_DIR}/audio_samples/*.wav ${ASSETS_DIR}/audio_samples

echo "Copying test model files..."
mkdir -p ${ASSETS_DIR}/model_files
cp ${LIB_DIR}/common/*.pv ${ASSETS_DIR}/model_files

echo "Copying test data file..."
cp ${RESOURCE_DIR}/.test/test_data.json ${ASSETS_DIR}

echo "Fixing filename encodings for Appcenter compatibility"
convmv --notest -f utf8 -t utf8 --nfd -r ${ASSETS_DIR}

0 comments on commit b6b7fae

Please sign in to comment.