Skip to content

Commit

Permalink
fixup
Browse files Browse the repository at this point in the history
  • Loading branch information
IonutMuthi committed Jul 10, 2024
1 parent eaa6c0c commit c4385a1
Showing 1 changed file with 14 additions and 18 deletions.
32 changes: 14 additions & 18 deletions JS/test.sh
Original file line number Diff line number Diff line change
Expand Up @@ -5,29 +5,25 @@ scopyBuildDir=$(grep 'SCOPY_BUILD_PATH' ../CMakeCache.txt | awk -F= '{print $2}

isEmuRunning=TRUE

#if emu is not running start emu at provided path
# if ! pgrep -x "iio-emu" > /dev/null; then
# isEmuRunning=FALSE
# if [ ! -z $1 ]; then
# echo "############# EMU PATH IS " $1;
# cd $1
# iio-emu generic *.xml &
# fi
# fi

# cd $1
# iio-emu generic *.xml &
if emu is not running start emu at provided path
if ! pgrep -x "iio-emu" > /dev/null; then
isEmuRunning=FALSE
if [ ! -z $1 ]; then
echo "############# EMU PATH IS " $1;
cd $1
iio-emu generic *.xml &
fi
fi

# run scopy functions of provided script
if [ ! -z $2 ]; then
cd $scopyBuildDir
# ./scopy --script=$2 --script-functions=$3
./scopy --script=$2
fi

# if emu was started by this script stop emu
# if [ "$isEmuRunning" = FALSE ]; then
# #stop emu
# killall -9 iio-emu
# fi
if emu was started by this script stop emu
if [ "$isEmuRunning" = FALSE ]; then
#stop emu
killall -9 iio-emu
fi

0 comments on commit c4385a1

Please sign in to comment.