-
Notifications
You must be signed in to change notification settings - Fork 3
Expand file tree
/
Copy pathngsild.sh
More file actions
executable file
·128 lines (112 loc) · 8.9 KB
/
ngsild.sh
File metadata and controls
executable file
·128 lines (112 loc) · 8.9 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
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
#!/bin/bash
function function_one {
echo "Function one (expected time: 2m 14,057s)"
echo
behave -f allure_behave.formatter:AllureFormatter -o ./tmp ./features/102.ngsild.working_with_context_orionld.feature
behave -f allure_behave.formatter:AllureFormatter -o ./tmp ./features/102.ngsild.working_with_context_scorpio.feature
behave -f allure_behave.formatter:AllureFormatter -o ./tmp ./features/102.ngsild.working_with_context_stellio.feature
# Need to do manually because Orion-LD crashed in 1.8.0 and 1.9.0
# behave -f allure_behave.formatter:AllureFormatter -o ./tmp ./features/103.ngsild.CRUD_Operations_orionld.feature
behave -f allure_behave.formatter:AllureFormatter -o ./tmp ./features/103.ngsild.CRUD_Operations_scorpio.feature
behave -f allure_behave.formatter:AllureFormatter -o ./tmp ./features/103.ngsild.CRUD_Operations_stellio.feature
behave -f allure_behave.formatter:AllureFormatter -o ./tmp ./features/104.ngsild.Concise_orionld.feature
}
function function_two {
echo "Function two (expected time: 5m 14,621s)"
echo
behave -f allure_behave.formatter:AllureFormatter -o ./tmp ./features/201.ngsild.IoTSensors.feature
behave -f allure_behave.formatter:AllureFormatter -o ./tmp ./features/202.ngsild.IoTAgentUltralight_orionld.feature
behave -f allure_behave.formatter:AllureFormatter -o ./tmp ./features/202.ngsild.IoTAgentUltralight_scorpio.feature
behave -f allure_behave.formatter:AllureFormatter -o ./tmp ./features/202.ngsild.IoTAgentUltralight_stellio.feature
behave -f allure_behave.formatter:AllureFormatter -o ./tmp ./features/203.ngsild.IoTAgentJson_orionld.feature
behave -f allure_behave.formatter:AllureFormatter -o ./tmp ./features/203.ngsild.IoTAgentJson_scorpio.feature
behave -f allure_behave.formatter:AllureFormatter -o ./tmp ./features/203.ngsild.IoTAgentJson_stellio.feature
}
function function_three {
echo "Function three (expected time: 2m 52,834s)"
echo
behave -f allure_behave.formatter:AllureFormatter -o ./tmp ./features/304.ngsild.TimeseriesData_orionld.feature
behave -f allure_behave.formatter:AllureFormatter -o ./tmp ./features/304.ngsild.TimeseriesData_scorpio.feature
behave -f allure_behave.formatter:AllureFormatter -o ./tmp ./features/304.ngsild.TimeseriesData_stellio.feature
# F behave -f allure_behave.formatter:AllureFormatter -o ./tmp ./features/302.ngsild.BigDataFlink_orionld.feature
# F behave -f allure_behave.formatter:AllureFormatter -o ./tmp ./features/306.ngsild.BigDataSpark_orionld.feature
}
function function_four {
echo "Function four (expected time: 3m 1,707s)"
echo
behave -f allure_behave.formatter:AllureFormatter -o ./tmp ./features/601.ngsild.Federative_Data_Spaces_Orion-LD.feature
behave -f allure_behave.formatter:AllureFormatter -o ./tmp ./features/601.ngsild.Federative_Data_Spaces_Scorpio.feature
behave -f allure_behave.formatter:AllureFormatter -o ./tmp ./features/601.ngsild.Federative_Data_Spaces_Stellio.feature
behave -f allure_behave.formatter:AllureFormatter -o ./tmp ./features/601.ngsild.Intro_Orion-LD.feature
behave -f allure_behave.formatter:AllureFormatter -o ./tmp ./features/601.ngsild.Intro_Scorpio.feature
behave -f allure_behave.formatter:AllureFormatter -o ./tmp ./features/601.ngsild.Intro_Stellio.feature
behave -f allure_behave.formatter:AllureFormatter -o ./tmp ./features/602.ngsild.RelationshipsAndDataModels_Orion-LD.feature
behave -f allure_behave.formatter:AllureFormatter -o ./tmp ./features/602.ngsild.RelationshipsAndDataModels_Scorpio.feature
behave -f allure_behave.formatter:AllureFormatter -o ./tmp ./features/602.ngsild.RelationshipsAndDataModels_Stellio.feature
behave -f allure_behave.formatter:AllureFormatter -o ./tmp ./features/603.Traversing_Linked_Data_Orion-LD.feature
behave -f allure_behave.formatter:AllureFormatter -o ./tmp ./features/603.Traversing_Linked_Data_Scorpio.feature
behave -f allure_behave.formatter:AllureFormatter -o ./tmp ./features/603.Traversing_Linked_Data_Stellio.feature
behave -f allure_behave.formatter:AllureFormatter -o ./tmp ./features/604.Linked_Data_Subscriptions_and_Registrations_Orion-LD.feature
# behave -f allure_behave.formatter:AllureFormatter -o ./tmp ./features/604.Linked_Data_Subscriptions_and_Registrations_Stellio.feature
# behave -f allure_behave.formatter:AllureFormatter -o ./tmp ./features/604.Linked_Data_Subscriptions_and_Registrations_Scorpio.feature
}
function function_all {
echo "function all (expected time: )"
echo
behave -f allure_behave.formatter:AllureFormatter -o ./tmp ./features/102.ngsild.working_with_context_orionld.feature
behave -f allure_behave.formatter:AllureFormatter -o ./tmp ./features/102.ngsild.working_with_context_scorpio.feature
behave -f allure_behave.formatter:AllureFormatter -o ./tmp ./features/102.ngsild.working_with_context_stellio.feature
behave -f allure_behave.formatter:AllureFormatter -o ./tmp ./features/103.ngsild.CRUD_Operations_orionld.feature
behave -f allure_behave.formatter:AllureFormatter -o ./tmp ./features/103.ngsild.CRUD_Operations_scorpio.feature
behave -f allure_behave.formatter:AllureFormatter -o ./tmp ./features/103.ngsild.CRUD_Operations_stellio.feature
behave -f allure_behave.formatter:AllureFormatter -o ./tmp ./features/104.ngsild.Concise_orionld.feature
behave -f allure_behave.formatter:AllureFormatter -o ./tmp ./features/201.ngsild.IoTSensors.feature
behave -f allure_behave.formatter:AllureFormatter -o ./tmp ./features/202.ngsild.IoTAgentUltralight_orionld.feature
behave -f allure_behave.formatter:AllureFormatter -o ./tmp ./features/202.ngsild.IoTAgentUltralight_scorpio.feature
behave -f allure_behave.formatter:AllureFormatter -o ./tmp ./features/202.ngsild.IoTAgentUltralight_stellio.feature
behave -f allure_behave.formatter:AllureFormatter -o ./tmp ./features/203.ngsild.IoTAgentJson_orionld.feature
behave -f allure_behave.formatter:AllureFormatter -o ./tmp ./features/203.ngsild.IoTAgentJson_scorpio.feature
behave -f allure_behave.formatter:AllureFormatter -o ./tmp ./features/203.ngsild.IoTAgentJson_stellio.feature
behave -f allure_behave.formatter:AllureFormatter -o ./tmp ./features/301.ngsild.TimeseriesData_orionld.feature
behave -f allure_behave.formatter:AllureFormatter -o ./tmp ./features/301.ngsild.TimeseriesData_scorpio.feature
behave -f allure_behave.formatter:AllureFormatter -o ./tmp ./features/301.ngsild.TimeseriesData_stellio.feature
# F behave -f allure_behave.formatter:AllureFormatter -o ./tmp ./features/302.ngsild.BigDataFlink_orionld.feature
# F behave -f allure_behave.formatter:AllureFormatter -o ./tmp ./features/306.ngsild.BigDataSpark_orionld.feature
behave -f allure_behave.formatter:AllureFormatter -o ./tmp ./features/601.ngsild.Federative_Data_Spaces_Orion-LD.feature
behave -f allure_behave.formatter:AllureFormatter -o ./tmp ./features/601.ngsild.Federative_Data_Spaces_Scorpio.feature
behave -f allure_behave.formatter:AllureFormatter -o ./tmp ./features/601.ngsild.Federative_Data_Spaces_Stellio.feature
behave -f allure_behave.formatter:AllureFormatter -o ./tmp ./features/601.ngsild.Intro_Orion-LD.feature
behave -f allure_behave.formatter:AllureFormatter -o ./tmp ./features/601.ngsild.Intro_Scorpio.feature
behave -f allure_behave.formatter:AllureFormatter -o ./tmp ./features/601.ngsild.Intro_Stellio.feature
behave -f allure_behave.formatter:AllureFormatter -o ./tmp ./features/602.ngsild.RelationshipsAndDataModels_Orion-LD.feature
# behave -f allure_behave.formatter:AllureFormatter -o ./tmp ./features/602.ngsild.RelationshipsAndDataModels_Scorpio.feature
# behave -f allure_behave.formatter:AllureFormatter -o ./tmp ./features/602.ngsild.RelationshipsAndDataModels_Stellio.feature
behave -f allure_behave.formatter:AllureFormatter -o ./tmp ./features/603.Traversing_Linked_Data_Orion.feature
# behave -f allure_behave.formatter:AllureFormatter -o ./tmp ./features/603.Traversing_Linked_Data_Scorpio.feature
# behave -f allure_behave.formatter:AllureFormatter -o ./tmp ./features/603.Traversing_Linked_Data_Stellio.feature
behave -f allure_behave.formatter:AllureFormatter -o ./tmp ./features/604.Linked_Data_Subscriptions_and_Registrations_Orion.feature
# behave -f allure_behave.formatter:AllureFormatter -o ./tmp ./features/604.Linked_Data_Subscriptions_and_Registrations_Stellio.feature
# behave -f allure_behave.formatter:AllureFormatter -o ./tmp ./features/604.Linked_Data_Subscriptions_and_Registrations_Scorpio.feature
}
# delete temporal folder before running the script
rm ./tmp/*
# print the different options
echo "Select one option:"
echo "1) Execute all 10x tests"
echo "2) Execute all 20x tests"
echo "3) Execute all 30x tests"
echo "4) Execute all 60x tests"
echo "5) Execute all tests"
echo
# Read the number from the user
read -p "Enter a number (1-5): " num
# Call the appropriate function based on the number
case $num in
1) time function_one ;;
2) time function_two ;;
3) time function_three ;;
4) time function_four ;;
5) time function_all ;;
*) echo "Invalid number entered" ;;
esac
allure serve ./tmp