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 '***********************************************'

set echo on

start CARS-setup.sql

set echo off

rem Populate tables

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

set termout off

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-cars-data.sql

set termout on


rem test tables

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


set echo on

start CARS-test.sql

set echo off

rem  modify tables

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


set echo on

start CARS-modify.sql

set echo off

rem drop tables

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


set echo on

start CARS-cleanup.sql

rem test that the tables no longer exist

start CARS-test.sql

set echo off


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

spool off
