home *** CD-ROM | disk | FTP | other *** search
/ InfoMagic Source Code 1993 July / THE_SOURCE_CODE_CD_ROM.iso / bsd_srcs / sys / tests / fstests / newtsts < prev    next >
Encoding:
Text File  |  1991-01-17  |  1.6 KB  |  70 lines

  1. #!/bin/csh -f
  2. set echo
  3. set time=2
  4. if ($#argv < 2) then
  5.     echo "Usage: newtsts special disk-type"
  6.     exit 1
  7. endif
  8. echo "8K/1K file system on $1 type $2"
  9. /etc/newfs $1 $2
  10. /etc/mount $1 /mnt
  11. mkdir /mnt/fststs
  12. if (! -e bin) then
  13.     mkdir bin
  14.     cc -o bin/write_4096 write_4096.c
  15.     cc -o bin/write_8192 write_8192.c
  16.     cc -o bin/rewrite_8192 rewrite_8192.c
  17.     cc -o bin/read_8192 read_8192.c
  18. endif
  19. echo "write_4096"
  20. rm -f /mnt/fststs/tst2
  21. bin/write_4096 /mnt/fststs/tst2
  22. rm -f /mnt/fststs/tst2
  23. bin/write_4096 /mnt/fststs/tst2
  24. rm -f /mnt/fststs/tst2
  25. bin/write_4096 /mnt/fststs/tst2
  26. echo "write_8192"
  27. rm -f /mnt/fststs/tst2
  28. bin/write_8192 /mnt/fststs/tst2
  29. rm -f /mnt/fststs/tst2
  30. bin/write_8192 /mnt/fststs/tst2
  31. rm -f /mnt/fststs/tst2
  32. bin/write_8192 /mnt/fststs/tst2
  33. echo "rewrite_8192"
  34. bin/rewrite_8192 /mnt/fststs/tst2
  35. bin/rewrite_8192 /mnt/fststs/tst2
  36. bin/rewrite_8192 /mnt/fststs/tst2
  37. echo "read_8192"
  38. bin/read_8192 /mnt/fststs/tst2
  39. bin/read_8192 /mnt/fststs/tst2
  40. bin/read_8192 /mnt/fststs/tst2
  41. umount $1
  42. sync
  43. echo
  44. echo "4K/1K file system on $1 type $2"
  45. newfs $1 $2
  46. mount $1 /mnt
  47. mkdir /mnt/fststs
  48. rm -f /mnt/fststs/tst2
  49. bin/write_4096 /mnt/fststs/tst2
  50. rm -f /mnt/fststs/tst2
  51. bin/write_4096 /mnt/fststs/tst2
  52. rm -f /mnt/fststs/tst2
  53. bin/write_4096 /mnt/fststs/tst2
  54. echo "write_8192"
  55. rm -f /mnt/fststs/tst2
  56. bin/write_8192 /mnt/fststs/tst2
  57. rm -f /mnt/fststs/tst2
  58. bin/write_8192 /mnt/fststs/tst2
  59. rm -f /mnt/fststs/tst2
  60. bin/write_8192 /mnt/fststs/tst2
  61. echo "rewrite_8192"
  62. bin/rewrite_8192 /mnt/fststs/tst2
  63. bin/rewrite_8192 /mnt/fststs/tst2
  64. bin/rewrite_8192 /mnt/fststs/tst2
  65. echo "read_8192"
  66. bin/read_8192 /mnt/fststs/tst2
  67. bin/read_8192 /mnt/fststs/tst2
  68. bin/read_8192 /mnt/fststs/tst2
  69. echo "done"
  70.