-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathtest.console.sql
65 lines (49 loc) · 1.79 KB
/
test.console.sql
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
set trimspool on
set serveroutput on size unlimited
set linesize 4000
set pages 0
set feedback off
set verify off
set echo off
clear screen
prompt .. Creating package UT_PLEX_INTEGER_STACK
@test/implementation/type/ut_plex_integer_stack.pkg
prompt .. Creating package UT_PLEX_MATCHTEXTLITERAL
@test/implementation/type/ut_plex_matchtextliteral.pkg
prompt .. Creating package UT_PLEX_MATCHLABEL
@test/implementation/type/ut_plex_matchlabel.pkg
prompt .. Creating package UT_PLEX_MATCHKEYWORD
@test/implementation/type/ut_plex_matchkeyword.pkg
prompt .. Creating package UT_PLEX_MATCHMULTILINECOMMENT
@test/implementation/type/ut_plex_matchmultilinecomment.pkg
prompt .. Creating package UT_PLEX_MATCHNUMBERLITERAL
@test/implementation/type/ut_plex_matchnumberliteral.pkg
prompt .. Creating package UT_PLEX_MATCHSNGLLINECOMMENT
@test/implementation/type/ut_plex_matchsngllinecomment.pkg
prompt .. Creating package UT_PLEX_MATCHWHITESPACE
@test/implementation/type/ut_plex_matchwhitespace.pkg
prompt .. Creating package UT_PLEX_MATCHWORD
@test/implementation/type/ut_plex_matchword.pkg
prompt .. Creating package UT_PLEX_LEXER
@test/implementation/package/ut_plex_lexer.pkg
prompt done
define utplsql_user=ceos_utplsql
prompt granting execute on test packages to &&utplsql_user user
begin
for ii in (select *
from user_objects
where object_name like 'TEST%'
and object_type = 'PACKAGE') loop
execute immediate 'grant execute on ' || ii.object_name || ' to &&utplsql_user';
end loop;
end;
/
prompt done
prompt .. Resetting packages
exec dbms_session.reset_package;
prompt .. Re-enabling DBMS_OUTPUT
exec dbms_output.enable;
set termout on
set serveroutput on size unlimited
prompt utPLSQL test reported with console reporter
select * from table(ut.run());