home *** CD-ROM | disk | FTP | other *** search
/ ftp.cs.arizona.edu / ftp.cs.arizona.edu.tar / ftp.cs.arizona.edu / icon / historic / v941.tgz / icon.v941src.tar / icon.v941src / tests / general / Test-opts < prev    next >
Text File  |  2002-01-14  |  691b  |  40 lines

  1. #!/bin/sh
  2. #
  3. #  Test-opts -- test some Icon command options
  4.  
  5. #  prepend Icon binary directory to path
  6. PATH=../../bin:$PATH
  7.  
  8. exec 2>&1
  9. set -e -x
  10.  
  11. rm -f hello.u? hello
  12. icont hello -x
  13. ./hello north
  14.  
  15. rm -f hello.u? hello olleh
  16. icont -u -s -o olleh hello.icn -x south
  17. ./olleh east
  18.  
  19. rm -f hello.u? hello olleh
  20. icont -c -t -s hello
  21. icont -u -s hello.u -x west
  22.  
  23. rm -f hello.u? hello
  24. icont -X hello.icn world
  25.  
  26. rm -f hello.u? hello
  27. echo '#!../../bin/icont -X' | cat - hello.icn > hello
  28. chmod +x hello
  29. ./hello galaxy
  30.  
  31. rm -f hello.u? hello
  32. echo '#!/usr/bin/env icon' | cat - hello.icn > hello
  33. chmod +x hello
  34. ./hello universe
  35.  
  36. rm -f hello.u? hello
  37. icon -P 'procedure main(); write("HOWDY!"); end'
  38.  
  39. : done
  40.