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

spool lab3-CSU-output.txt


rem Create tables

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



set echo on

start CSU-setup.sql

set echo off

rem Populate tables

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

set termout off

start CSU-build-Campuses.sql
start CSU-build-csu-fees.sql
start CSU-build-degrees.sql
start CSU-build-disciplines.sql
start CSU-build-discipline-enrollments.sql
start CSU-build-enrollments.sql
start CSU-build-faculty.sql

set termout on

rem test tables

host echo '***********************************************'
host echo ' Running Lab 3 Assignment '
host echo '***********************************************'


set echo on

start CSU-lab3.sql

set echo off

rem drop tables

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


set echo on

start CSU-cleanup.sql


rem test that the tables no longer exist

start CSU-test.sql

set echo off


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

spool off
