rem
rem CSC 365. Lab 3. Test script for AIRLINES dataset
rem 
rem Alex Dekhtyar (dekhtyar@csc.calpoly.edu)
rem

spool lab3-AIRLINES-output.txt


rem Create tables

host echo '***********************************************'
host echo ' Creating tables  '
host echo '***********************************************'

set echo on

start AIRLINES-setup.sql

set echo off

rem Populate tables

host echo '***********************************************'
host echo ' Populating tables  '
host echo '***********************************************'

set termout off

start AIRLINES-build-airlines.sql
start AIRLINES-build-airports100.sql
start AIRLINES-build-flights.sql

set termout on

rem RUN LAB 3 assignment

host echo '***********************************************'
host echo ' Running Modification assignment  '
host echo '***********************************************'


set echo on

start AIRLINES-lab3.sql

set echo off

rem drop tables

host echo '***********************************************'
host echo ' Dropping tables  '
host echo '***********************************************'


set echo on
start AIRLINES-cleanup.sql

rem test that the tables no longer exist

start AIRLINES-test.sql

set echo off

host echo '***********************************************'
host echo ' That is All, folks!  '
host echo '***********************************************'

spool off
