-
Notifications
You must be signed in to change notification settings - Fork 0
/
test.lux
71 lines (57 loc) · 1.4 KB
/
test.lux
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
[doc]
Test Case Heading
Description of what is tested here.
[enddoc]
#timeout adjustment
#[config risky_threshold=100]
[config case_timeout=5000000]
#j-cli
#[global oper_prompt=(.*)@ncs>]
#[global cfg_prompt=(.*)@ncs(.*)%]
#c-cli
[global oper_prompt=(.*)@ncs#]
[global cfg_prompt=(.*)@ncs(.*)#]
[shell nso]
[timeout infinity]
[progress "\nStarting up NSO. This will takes a while....\n"]
!make clean_cdb clean_logs start_nso && echo ==$$?==
?==0==
[timeout 30]
[progress "\nPreparing....\n"]
!make cli-c
?$oper_prompt
!config
?$cfg_prompt
!services global-settings service-callback-timeout 6000
?$cfg_prompt
!commit
???Commit complete.
[shell trigger]
[progress "\Prepare\n"]
#Preparations
!make cli-c
?$oper_prompt
!config
?$cfg_prompt
#Create Service
!predictive_service test max-length $X
?$cfg_prompt
[shell collect]
[progress "\nStart Collecting Data for X=$X....\n"]
!make collect && echo ==$$?==
?==0==
[shell trigger]
[timeout infinity]
[progress "\Triggering....\n"]
#The operation you want to collect data on
!commit
???Commit complete.
[shell collect]
[progress "\nStop Collecting and Start Processing Data....\n"]
!make X=$X stop_collect && echo ==$$?==
?==0==
[cleanup]
[progress "\nTest End.Cleaning....\n"]
#Clean up
!make stop_nso && echo ==$$?==
?==0==