-
Notifications
You must be signed in to change notification settings - Fork 189
Expand file tree
/
Copy pathinstall.sql
More file actions
156 lines (137 loc) · 5.03 KB
/
install.sql
File metadata and controls
156 lines (137 loc) · 5.03 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
prompt Installing utplsql framework
set serveroutput on size unlimited
set timing off
set define off
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/ut_utils.pks
@@core/ut_metadata.pks
@@core/ut_utils.pkb
@@core/ut_metadata.pkb
--core types
@@core/types/ut_object.tps
@@core/types/ut_objects_list.tps
@@core/types/ut_composite_object.tps
@@core/types/ut_executable.tps
@@core/types/ut_assert_result.tps
@@core/types/ut_assert_list.tps
@@core/types/ut_reporter.tps
@@core/types/ut_reporters_list.tps
@@core/types/ut_composite_reporter.tps
@@core/types/ut_test_object.tps
@@core/types/ut_test.tps
@@core/types/ut_test_suite.tps
@@core/types/ut_reporter_decorator.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_assert_result.tpb
@@core/types/ut_reporter.tpb
@@core/types/ut_object.tpb
@@core/types/ut_composite_object.tpb
@@core/types/ut_test_object.tpb
@@core/types/ut_test.tpb
@@core/types/ut_test_suite.tpb
@@core/types/ut_executable.tpb
@@core/types/ut_composite_reporter.tpb
@@core/types/ut_reporter_decorator.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_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/matchers/ut_matcher.tps
@@expectations/matchers/be_false.tps
@@expectations/matchers/be_like.tps
@@expectations/matchers/be_not_null.tps
@@expectations/matchers/be_null.tps
@@expectations/matchers/be_true.tps
@@expectations/matchers/equal.tps
@@expectations/matchers/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_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/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_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/matchers/ut_matcher.tpb
@@expectations/matchers/be_false.tpb
@@expectations/matchers/be_like.tpb
@@expectations/matchers/be_not_null.tpb
@@expectations/matchers/be_null.tpb
@@expectations/matchers/be_true.tpb
@@expectations/matchers/equal.tpb
@@expectations/matchers/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_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
--expecatations interface
@@expectations/ut.pks
@@expectations/ut.pkb
@@reporters/ut_dbms_output_suite_reporter.tps
@@reporters/ut_dbms_output_suite_reporter.tpb
@@legacy/ut_assert.pks
@@legacy/ut_assert.pkb
prompt Validating installation
select * from user_errors
where name not like 'BIN$%' --not recycled
and (name like 'UT%' or name in ('BE_FALSE','BE_LIKE','BE_NOT_NULL','BE_NULL','BE_TRUE','EQUAL','MATCH')) -- utplsql objects
and attribute = 'ERROR'; -- erors only. ignore warnings
declare
l_cnt integer;
begin
select count(1)
into l_cnt
from user_errors
where name not like 'BIN$%'
and (name like 'UT%' or name in ('BE_FALSE','BE_LIKE','BE_NOT_NULL','BE_NULL','BE_TRUE','EQUAL','MATCH'))
and attribute = 'ERROR';
if l_cnt > 0 then
raise_application_error(-20000, 'Not all sources were successfully installed.');
end if;
end;
/
exit success