Repository navigation
Expand file tree
/
Copy pathendpoint_tests_2.sh
More file actions
45 lines (39 loc) · 1.49 KB
/
Copy pathendpoint_tests_2.sh
File metadata and controls
45 lines (39 loc) · 1.49 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
# Get config parameters:
source /users/wx21978/projects/timing/test_automation/.full_config.sh
# Source the dbt environment
cd $WORK_AREA
source dbt-env.sh
dbt-workarea-env
if [[ $EPT_CMD = ept ]]
then
echo #########################################################################
echo .:ENDPNT TEST 3:.
echo #########################################################################
echo
# Check endpoint state is ready (0x8)
echo pdtbutler -c $CONNECTIONS_FILE $EPT_CMD $ENDPOINT_NAME 0 status
pdtbutler -c $CONNECTIONS_FILE $EPT_CMD $ENDPOINT_NAME 0 status
echo .:END OF TEST N:.
echo
else
if [[ $EPT_CMD = hsi ]]
then
echo No additional tests...
else
echo #########################################################################
echo .:CRTPNT TEST 3:.
echo #########################################################################
echo
# Check endpoint state is ready (0x8)
echo pdtbutler -c $CONNECTIONS_FILE $EPT_CMD $ENDPOINT_NAME status
pdtbutler -c $CONNECTIONS_FILE $EPT_CMD $ENDPOINT_NAME status
sleep 10s
echo
# Get status again after 10s to check pulse rate
echo pdtbutler -c $CONNECTIONS_FILE $EPT_CMD $ENDPOINT_NAME status
pdtbutler -c $CONNECTIONS_FILE $EPT_CMD $ENDPOINT_NAME status
echo .:END OF TEST N:.
echo
fi
fi
cd -