#!/bin/tcsh

source /cad/xilinx-1.5/setup


cd /byucc/jhdl/Xilinx/XC4000/techmap/test/ports/m1

# The success of the test will be communicated by the existence 
# of this file.  Remove the file before we run the ngdbuild, and 
# recreate it after the run.  The remote Java client will test for
# the file, and report success if the file exists.

rm -rf .shorted_ngdbuild_test_passed

ngdbuild -p xc4036exhq240-3 shorted1 >& .shorted_ngdbuild_test_log

if ( $status != 0 ) then
  echo Failed on shorted1!
  exit 1
endif

ngdbuild -p xc4036exhq240-3 shorted2 >>& .shorted_ngdbuild_test_log

if ( $status != 0 ) then
  echo Failed on shorted2!
  exit 1
endif

ngdbuild -p xc4036exhq240-3 shorted3 >>& .shorted_ngdbuild_test_log

if ( $status != 0 ) then
  echo Failed on shorted3!
  exit 1
endif

ngdbuild -p xc4036exhq240-3 shorted4 >>& .shorted_ngdbuild_test_log

if ( $status != 0 ) then
  echo Failed on shorted4!
  exit 1
endif



echo All NGDBUILD tests passed!

echo juice newton > .shorted_ngdbuild_test_passed

exit 0



