MyFirstUDRKit/test/testudrkit.sql

35 lines
569 B
MySQL
Raw Normal View History

2023-01-25 14:54:48 +01:00
set echo on;
set sql dialect 3;
set names UTF8;
input recreate_db.ddl;
2023-01-25 15:57:57 +01:00
-- deploy the UDR library
2023-02-03 15:02:47 +01:00
shell cp --dereference ../build/x86_64-linux/libMyFirstUDRKit.so /opt/firebird/plugins/udr/ ;
2023-01-26 16:11:34 +01:00
2023-02-03 15:02:47 +01:00
-- declare the UDR library - must be done before we declare
-- database objects that reference functions in the library!
2023-01-26 16:11:34 +01:00
input ../sql/MyFirstUDRKit.ddl;
2023-01-25 15:57:57 +01:00
2023-01-25 14:54:48 +01:00
-- create db objects
input testudrkit.ddl;
2023-01-25 15:57:57 +01:00
2023-01-25 14:54:48 +01:00
-- insert some test data
2023-01-26 16:11:34 +01:00
input testudrkit-testdata.dml;
2023-01-25 14:54:48 +01:00
-- run some tests
input testudrkit-tests.dml;
/* Successfully completed execution of testudrkit.sql */
2023-01-26 16:11:34 +01:00
exit;
2023-01-25 14:54:48 +01:00