-
Notifications
You must be signed in to change notification settings - Fork 189
Expand file tree
/
Copy pathinstall.sql
More file actions
208 lines (188 loc) · 6.68 KB
/
install.sql
File metadata and controls
208 lines (188 loc) · 6.68 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
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
prompt Installing utplsql framework
set serveroutput on size unlimited
set timing off
set define off
spool install.log
ALTER SESSION SET PLSQL_WARNINGS = 'ENABLE:ALL', 'DISABLE:(6000,6001,6003,6010, 7206)';
whenever sqlerror exit failure rollback
whenever oserror exit failure rollback
--common utilities
@@core/types/ut_varchar2_list.tps
@@core/types/ut_clob_list.tps
@@core/ut_utils.pks
@@core/ut_metadata.pks
@@core/ut_utils.pkb
@@core/ut_metadata.pkb
--core types
@@core/types/ut_assert_result.tps
@@core/types/ut_assert_results.tps
@@core/types/ut_results_counter.tps
@@core/types/ut_output.tps
@@core/types/ut_output_dbms_output.tps
@@core/types/ut_output_stream.tps
@@core/ut_output_pipe_helper.pks
@@core/types/ut_output_dbms_pipe.tps
@@core/types/ut_suite_item_base.tps
@@core/types/ut_event_listener_base.tps
@@core/types/ut_suite_item.tps
@@core/types/ut_suite_items.tps
@@core/types/ut_executable.tps
@@core/types/ut_test.tps
@@core/types/ut_suite.tps
@@core/types/ut_run.tps
@@core/types/ut_reporter_base.tps
@@core/types/ut_reporters.tps
@@core/types/ut_event_listener.tps
--annoations
@@core/annotations/ut_annotations.pks
@@core/annotations/ut_annotations.pkb
--suite manager
@@core/ut_suite_manager.pks
@@core/ut_suite_manager.pkb
--assertios execution state interface
@@core/ut_assert_processor.pks
@@core/ut_assert_processor.pkb
--core type bodies
@@core/types/ut_results_counter.tpb
@@core/types/ut_suite_item.tpb
@@core/types/ut_test.tpb
@@core/types/ut_suite.tpb
@@core/types/ut_run.tpb
@@core/types/ut_event_listener.tpb
@@core/types/ut_assert_result.tpb
@@core/types/ut_output.tpb
@@core/types/ut_output_dbms_output.tpb
@@core/types/ut_output_stream.tpb
@@core/ut_output_pipe_helper.pkb
@@core/types/ut_output_dbms_pipe.tpb
@@core/types/ut_reporter_base.tpb
@@core/types/ut_executable.tpb
--expecations and matchers
@@expectations/data_values/ut_data_value.tps
@@expectations/data_values/ut_data_value_anydata.tps
@@expectations/data_values/ut_data_value_blob.tps
@@expectations/data_values/ut_data_value_boolean.tps
@@expectations/data_values/ut_data_value_clob.tps
@@expectations/data_values/ut_data_value_date.tps
@@expectations/data_values/ut_data_value_dsinterval.tps
@@expectations/data_values/ut_data_value_number.tps
@@expectations/data_values/ut_data_value_refcursor.tps
@@expectations/data_values/ut_data_value_timestamp.tps
@@expectations/data_values/ut_data_value_timestamp_tz.tps
@@expectations/data_values/ut_data_value_timestamp_ltz.tps
@@expectations/data_values/ut_data_value_varchar2.tps
@@expectations/data_values/ut_data_value_yminterval.tps
@@expectations/matchers/ut_matcher.tps
@@expectations/matchers/ut_be_false.tps
@@expectations/matchers/ut_be_greater_or_equal.tps
@@expectations/matchers/ut_be_greater_than.tps
@@expectations/matchers/ut_be_less_or_equal.tps
@@expectations/matchers/ut_be_less_than.tps
@@expectations/matchers/ut_be_like.tps
@@expectations/matchers/ut_be_not_null.tps
@@expectations/matchers/ut_be_null.tps
@@expectations/matchers/ut_be_true.tps
@@expectations/matchers/ut_equal.tps
@@expectations/matchers/ut_be_between.tps
@@expectations/matchers/ut_match.tps
@@expectations/ut_expectation.tps
@@expectations/ut_expectation_anydata.tps
@@expectations/ut_expectation_blob.tps
@@expectations/ut_expectation_boolean.tps
@@expectations/ut_expectation_clob.tps
@@expectations/ut_expectation_date.tps
@@expectations/ut_expectation_dsinterval.tps
@@expectations/ut_expectation_number.tps
@@expectations/ut_expectation_refcursor.tps
@@expectations/ut_expectation_timestamp.tps
@@expectations/ut_expectation_timestamp_ltz.tps
@@expectations/ut_expectation_timestamp_tz.tps
@@expectations/ut_expectation_varchar2.tps
@@expectations/ut_expectation_yminterval.tps
@@expectations/data_values/ut_data_value_anydata.tpb
@@expectations/data_values/ut_data_value_blob.tpb
@@expectations/data_values/ut_data_value_boolean.tpb
@@expectations/data_values/ut_data_value_clob.tpb
@@expectations/data_values/ut_data_value_date.tpb
@@expectations/data_values/ut_data_value_dsinterval.tpb
@@expectations/data_values/ut_data_value_number.tpb
@@expectations/data_values/ut_data_value_refcursor.tpb
@@expectations/data_values/ut_data_value_timestamp.tpb
@@expectations/data_values/ut_data_value_timestamp_tz.tpb
@@expectations/data_values/ut_data_value_timestamp_ltz.tpb
@@expectations/data_values/ut_data_value_varchar2.tpb
@@expectations/data_values/ut_data_value_yminterval.tpb
@@expectations/matchers/ut_matcher.tpb
@@expectations/matchers/ut_be_false.tpb
@@expectations/matchers/ut_be_greater_or_equal.tpb
@@expectations/matchers/ut_be_greater_than.tpb
@@expectations/matchers/ut_be_less_or_equal.tpb
@@expectations/matchers/ut_be_less_than.tpb
@@expectations/matchers/ut_be_like.tpb
@@expectations/matchers/ut_be_not_null.tpb
@@expectations/matchers/ut_be_null.tpb
@@expectations/matchers/ut_be_true.tpb
@@expectations/matchers/ut_equal.tpb
@@expectations/matchers/ut_be_between.tpb
@@expectations/matchers/ut_match.tpb
@@expectations/ut_expectation.tpb
@@expectations/ut_expectation_anydata.tpb
@@expectations/ut_expectation_blob.tpb
@@expectations/ut_expectation_boolean.tpb
@@expectations/ut_expectation_clob.tpb
@@expectations/ut_expectation_date.tpb
@@expectations/ut_expectation_dsinterval.tpb
@@expectations/ut_expectation_number.tpb
@@expectations/ut_expectation_refcursor.tpb
@@expectations/ut_expectation_timestamp.tpb
@@expectations/ut_expectation_timestamp_ltz.tpb
@@expectations/ut_expectation_timestamp_tz.tpb
@@expectations/ut_expectation_varchar2.tpb
@@expectations/ut_expectation_yminterval.tpb
--expectations interface
@@api/ut.pks
@@api/ut.pkb
@@reporters/ut_documentation_reporter.tps
@@reporters/ut_documentation_reporter.tpb
--test runner
@@api/ut_runner.pks
@@api/ut_runner.pkb
@@reporters/ut_teamcity_reporter.tps
@@reporters/ut_teamcity_reporter_helper.pks
@@reporters/ut_teamcity_reporter_helper.pkb
@@reporters/ut_teamcity_reporter.tpb
@@reporters/ut_xunit_reporter.tps
@@reporters/ut_xunit_reporter.tpb
@@api/be_between.syn
@@api/be_false.syn
@@api/be_greater_or_equal.syn
@@api/be_greater_than.syn
@@api/be_less_or_equal.syn
@@api/be_less_than.syn
@@api/be_like.syn
@@api/be_not_null.syn
@@api/be_null.syn
@@api/be_true.syn
@@api/equal.syn
@@api/match.syn
set linesize 200
set verify off
set define &
column text format a100
column error_count noprint new_value error_count
prompt Validating installation
select name, type, sequence, line, position, text, count(1) over() error_count
from user_errors
where name not like 'BIN$%' --not recycled
and (name = 'UT' or name like 'UT\_%' escape '\')
-- errors only. ignore warnings
and attribute = 'ERROR'
/
begin
if to_number('&&error_count') > 0 then
raise_application_error(-20000, 'Not all sources were successfully installed.');
end if;
end;
/
spool off
exit success