MyFirstUDRKit/test/testudrkit.sql

36 lines
641 B
SQL

set echo on;
set sql dialect 3;
set names UTF8;
input recreate_db.ddl;
-- deploy the UDR library
-- (Note it is not possible to use the long form of -L here due to the double-dash
shell cp -L ../build/x86_64-linux/libMyFirstUDRKit.so /opt/firebird/plugins/udr/ ;
-- declare the UDR library - must be done before we declare
-- database objects that reference functions in the library!
input ../sql/MyFirstUDRKit.ddl;
-- create db objects
input testudrkit.ddl;
-- insert some test data
input testudrkit-testdata.dml;
-- run some tests
input testudrkit-tests.dml;
/* Successfully completed execution of testudrkit.sql */
exit;