github.com/NVIDIA/aistore@v1.3.23-0.20240517131212-7df6609be51d/python/pyaisloader/ci-test.sh (about) 1 #!/bin/bash 2 3 if [ -z "$1" ] 4 then 5 echo "No argument supplied. Please provide a test type: 'short' or 'long'." 6 exit 1 7 fi 8 9 # install aistore python sdk from source 10 pip install -e . 11 12 cd ./pyaisloader 13 make install 14 export AIS_ENDPOINT="http://localhost:8080" 15 16 if [ "$1" == "short" ] 17 then 18 yes "y" | head -n 2 | pyaisloader p -b ais://testpyaisloader -d 15s -min 1mb -max 10mb -s 1gb -w 16 19 yes "y" | head -n 2 | pyaisloader g -b ais://testpyaisloader -d 15s -min 1mb -max 10mb -s 1gb -w 16 20 yes "y" | head -n 2 | pyaisloader m -b ais://testpyaisloader -d 15s -min 1mb -max 10mb -w 16 -c 21 elif [ "$1" == "long" ] 22 then 23 yes "y" | head -n 2 | pyaisloader p -b ais://testpyaisloader -d 3m -min 1mb -max 10mb -s 10gb -w 16 24 yes "y" | head -n 2 | pyaisloader g -b ais://testpyaisloader -d 3m -min 1mb -max 10mb -s 10gb -w 16 25 yes "y" | head -n 2 | pyaisloader m -b ais://testpyaisloader -d 3m -min 1mb -max 10mb -w 16 -c 26 else 27 echo "Invalid test type: $1. Please provide a valid test type: 'short' or 'long'." 28 exit 1 29 fi