home *** CD-ROM | disk | FTP | other *** search
/ Linux Cubed Series 3: Developer Tools / Linux Cubed Series 3 - Developer Tools.iso / utils / file / conflict.0 / conflict / conflict-6.0 / run_test.sh < prev    next >
Encoding:
Linux/UNIX/POSIX Shell Script  |  1995-03-18  |  695 b   |  37 lines

  1. #!/bin/sh
  2. # $Id: run_test.sh,v 6.0 1995/03/18 13:33:43 dickey Rel $
  3. # Run a test to show that CONFLICT is working
  4. BIN=`pwd`
  5. PROG=$BIN/conflict
  6. PATH=".:$BIN:/bin"; export PATH
  7. #
  8. cat <<eof/
  9. **
  10. **    Set PATH = $PATH
  11. **    This produces no conflict (unless /bin contains conflict!):
  12. eof/
  13. $PROG
  14. #
  15. cat <<eof/
  16. **
  17. **    Set PATH = $PATH
  18. **    This shows conflict between different filetypes
  19. eof/
  20. $PROG -r -t.c.o. conflict
  21. cat <<eof/
  22. **
  23. **    Set PATH = $PATH
  24. **    This repeats the last test, with pathnames-only
  25. eof/
  26. $PROG -p -r -t.c.o. conflict
  27. cat <<eof/
  28. **
  29. **    Add a dummy executable in the temp-directory, producing a conflict:
  30. eof/
  31. cd /tmp
  32. rm -f conflict
  33. echo test >conflict
  34. chmod 755 conflict
  35. $PROG
  36. rm -f conflict
  37.