11#! /bin/bash
22set -ev
3- cd $( dirname $( readlink -f $0 ) )
43
5- PROJECT_FILE= " utPLSQL-demo-project "
6- git clone -b develop --single-branch https://github.com/utPLSQL/utPLSQL-demo-project.git
4+ PROJECT_FILES_SRC= " utplsql-maven-plugin/src/test/resources "
5+ PROJECT_FILES= " resources "
76
87cat > demo_project.sh.tmp << EOF
98sqlplus -S -L sys/oracle@//127.0.0.1:1521/xe AS SYSDBA <<SQL
@@ -13,32 +12,22 @@ grant select any dictionary to ${DB_USER};
1312exit
1413SQL
1514
16- cd ${PROJECT_FILE }
15+ cd ${PROJECT_FILES }
1716sqlplus -S -L ${DB_USER} /${DB_PASS} @//127.0.0.1:1521/xe <<SQL
1817whenever sqlerror exit failure rollback
1918whenever oserror exit failure rollback
2019
21- @source/award_bonus/employees_test.sql
22- @source/award_bonus/award_bonus.prc
20+ @scripts/sources/TO_TEST_ME.tab
21+ @scripts/sources/PKG_TEST_ME.spc
22+ @scripts/sources/PKG_TEST_ME.bdy
2323
24- @source/between_string/betwnstr.fnc
25-
26- @source/remove_rooms_by_name/rooms.sql
27- @source/remove_rooms_by_name/remove_rooms_by_name.prc
28-
29- @test/award_bonus/test_award_bonus.pks
30- @test/award_bonus/test_award_bonus.pkb
31-
32- @test/between_string/test_betwnstr.pks
33- @test/between_string/test_betwnstr.pkb
34-
35- @test/remove_rooms_by_name/test_remove_rooms_by_name.pks
36- @test/remove_rooms_by_name/test_remove_rooms_by_name.pkb
24+ @scripts/test/TEST_PKG_TEST_ME.spc
25+ @scripts/test/TEST_PKG_TEST_ME.bdy
3726
3827exit
3928SQL
4029EOF
4130
42- docker cp ./$PROJECT_FILE $ORACLE_VERSION :/$PROJECT_FILE
31+ docker cp ./$PROJECT_FILES_SRC $ORACLE_VERSION :/$PROJECT_FILES
4332docker cp ./demo_project.sh.tmp $ORACLE_VERSION :/demo_project.sh
4433docker exec $ORACLE_VERSION bash demo_project.sh
0 commit comments