#!/bin/bash

update_dir="/nfs/dataset/workspace/mindspore_dataset/mslite/update_data/"
nfs_dir="/nfs/dataset/workspace/mindspore_dataset/"
dataset_dir="/home/workspace/mindspore_dataset/"

model_dir="/home/workspace/mindspore_dataset/mslite/models/hiai/ms_models/"
data_dir="/home/workspace/mindspore_dataset/mslite/models/hiai/input_output/"
data_dir_train="/home/workspace/mindspore_dataset/mslite/models_train/input_output/*"

#cp -a ${update_dir}/mslite $nfs_dir 
#cp -a ${update_dir}/mslite $dataset_dir

result=`adb devices`
devices=${result//$'\n'/ }
devices=${devices//$'\t'/ }
IFS=" "
device_list=($devices)
for device in ${device_list[@]}
do
  if [[ $device =~ ^[0-9A-Z]+$ ]];then
    adb -s $device push $model_dir/* /data/local/tmp/benchmark_test/
    adb -s $device push $data_dir /data/local/tmp/
    adb -s $device push $data_dir_train /data/local/tmp/net_train_test/
  fi
done
