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

spool lab2-CARS-output.txt


rem Create tables

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

host cat CARS-setup.sql

start CARS-setup.sql

rem Populate tables

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

start CARS-build-continents.sql
start CARS-build-countries.sql
start CARS-build-car-makers.sql
start CARS-build-model-list.sql
start CARS-build-car-names.sql
start CARS-build-car-data.sql


rem test tables

host echo '***********************************************'
host echo ' Testing tables  '
host echo '***********************************************'


host cat CARS-test.sql
start CARS-test.sql


rem  modify tables

host echo '***********************************************'
host echo ' Modifying tables  '
host echo '***********************************************'

host cat CARS-modify.sql
start CARS-modify.sql


rem drop tables

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

host cat CARS-cleanup.sql
start CARS-cleanup.sql

rem test that the tables no longer exist

start CARS-test.sql


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

spool off
