MyFirstUDRKit/test/testudrkit-tests.dml

62 lines
1.5 KiB
Plaintext
Raw Normal View History

2023-01-26 16:13:50 +01:00
set stats on;
set bail off;
select * from test_div;
set stats off;
set bail on;
select FLAGGED (190, 0) from rdb$database;
select FLAGGED (191, 0) from rdb$database;
commit;
2023-02-02 16:11:52 +01:00
execute procedure load_blob(1);
execute procedure load_blob(2);
execute procedure load_blob(3);
execute procedure load_blob(4);
2023-02-03 15:03:05 +01:00
execute procedure load_blob(5);
execute procedure load_blob(6);
2023-02-02 16:11:52 +01:00
commit;
2023-02-03 15:03:05 +01:00
-- Note that we truncate the output here to fit the console better
select cast ( left(description,16) as varchar(16) ) as DESCRIPTION
2023-02-02 16:11:52 +01:00
, file_type
, cast (left(source_file,32) as varchar(32)) as source_file
, source_status
2023-02-03 11:43:15 +01:00
, cast (left(target_file,32) as varchar(32)) as target_file
, target_status
, target_bytes
2023-02-02 16:11:52 +01:00
from test_blobs;
commit;
2023-02-03 11:43:15 +01:00
set term ^;
shell
2023-02-03 15:03:05 +01:00
if [[ ! -d /tmp/testudrkit ]]; then
mkdir --verbose /tmp/testudrkit
fi
2023-02-03 11:43:15 +01:00
ls /tmp/testudrkit
^
set term ;^
execute procedure save_blob(1, '/tmp/testudrkit/fb.conf' );
execute procedure save_blob(2, '/tmp/testudrkit/fb.log' );
2023-02-03 15:03:05 +01:00
execute procedure save_blob(3, '/tmp/testudrkit/timezoneTypes.res' );
execute procedure save_blob(4, '/tmp/testudrkit/zoneinfo64.res' );
execute procedure save_blob(5, '/tmp/testudrkit/libib_util.so' );
execute procedure save_blob(6, '/tmp/testudrkit/libudr_engine.so' );
2023-02-03 11:43:15 +01:00
commit;
2023-02-03 15:03:05 +01:00
select cast ( left(description,16) as varchar(16) ) as DESCRIPTION
2023-02-03 11:43:15 +01:00
, file_type
, cast (left(source_file,32) as varchar(32)) as source_file
, source_status
, cast (left(target_file,32) as varchar(32)) as target_file
, target_status
, cast (target_bytes as varchar(16) ) as target_bytes
from test_blobs;
commit;