PageRenderTime 45ms CodeModel.GetById 18ms RepoModel.GetById 0ms app.codeStats 0ms

/bin/test/TEST.csh

https://bitbucket.org/warthurton/gno
C Shell | 147 lines | 117 code | 28 blank | 2 comment | 4 complexity | 89c1b3ceb7e6232645a8f9187e124827 MD5 | raw file
Possible License(s): AGPL-1.0
  1. # @(#)TEST.csh 5.1 (Berkeley) 6/8/92
  2. alias t './test \!*; echo $status'
  3. #alias t 'test \!*; echo $status'
  4. echo 't -b /dev/ttyp2'
  5. t -b /dev/ttyp2
  6. echo 't -b /dev/jb1a'
  7. t -b /dev/jb1a
  8. echo 't -c test.c'
  9. t -c test.c
  10. echo 't -c /dev/tty'
  11. t -c /dev/tty
  12. echo 't -d test.c'
  13. t -d test.c
  14. echo 't -d /etc'
  15. t -d /etc
  16. echo 't -e noexist'
  17. t -e noexist
  18. echo 't -e test.c'
  19. t -e test.c
  20. echo 't -f noexist'
  21. t -f noexist
  22. echo 't -f /dev/tty'
  23. t -f /dev/tty
  24. echo 't -f test.c'
  25. t -f test.c
  26. echo 't -g test.c'
  27. t -g test.c
  28. echo 't -g /bin/ps'
  29. t -g /bin/ps
  30. echo 't -n ""'
  31. t -n ""
  32. echo 't -n "hello"'
  33. t -n "hello"
  34. echo 't -p test.c'
  35. t -p test.c
  36. echo 't -r noexist'
  37. t -r noexist
  38. echo 't -r /etc/master.passwd'
  39. t -r /etc/master.passwd
  40. echo 't -r test.c'
  41. t -r test.c
  42. echo 't -s noexist'
  43. t -s noexist
  44. echo 't -s /dev/null'
  45. t -s /dev/null
  46. echo 't -s test.c'
  47. t -s test.c
  48. echo 't -t 20'
  49. t -t 20
  50. echo 't -t 0'
  51. t -t 0
  52. echo 't -u test.c'
  53. t -u test.c
  54. echo 't -u /bin/rcp'
  55. t -u /bin/rcp
  56. echo 't -w noexist'
  57. t -w noexist
  58. echo 't -w /etc/master.passwd'
  59. t -w /etc/master.passwd
  60. echo 't -w /dev/null'
  61. t -w /dev/null
  62. echo 't -x noexist'
  63. t -x noexist
  64. echo 't -x /bin/ps'
  65. t -x /bin/ps
  66. echo 't -x /etc/motd'
  67. t -x /etc/motd
  68. echo 't -z ""'
  69. t -z ""
  70. echo 't -z "foo"'
  71. t -z "foo"
  72. echo 't "foo"'
  73. t "foo"
  74. echo 't ""'
  75. t ""
  76. echo 't "hello" = "hello"'
  77. t "hello" = "hello"
  78. echo 't "hello" = "goodbye"'
  79. t "hello" = "goodbye"
  80. echo 't "hello" != "hello"'
  81. t "hello" != "hello"
  82. echo 't "hello" != "goodbye"'
  83. t "hello" != "goodbye"
  84. echo 't 200 -eq 200'
  85. t 200 -eq 200
  86. echo 't 34 -eq 222'
  87. t 34 -eq 222
  88. echo 't 200 -ne 200'
  89. t 200 -ne 200
  90. echo 't 34 -ne 222'
  91. t 34 -ne 222
  92. echo 't 200 -gt 200'
  93. t 200 -gt 200
  94. echo 't 340 -gt 222'
  95. t 340 -gt 222
  96. echo 't 200 -ge 200'
  97. t 200 -ge 200
  98. echo 't 34 -ge 222'
  99. t 34 -ge 222
  100. echo 't 200 -lt 200'
  101. t 200 -lt 200
  102. echo 't 34 -lt 222'
  103. t 34 -lt 222
  104. echo 't 200 -le 200'
  105. t 200 -le 200
  106. echo 't 340 -le 222'
  107. t 340 -le 222
  108. echo 't 700 -le 1000 -a -n "1" -a "20" = "20"'
  109. t 700 -le 1000 -a -n "1" -a "20" = "20"
  110. echo 't ! \( 700 -le 1000 -a -n "1" -a "20" = "20" \)'
  111. t ! \( 700 -le 1000 -a -n "1" -a "20" = "20" \)
  112. echo 't foo -a ""'
  113. t foo -a ""
  114. echo 't "" -a foo'
  115. t "" -a foo
  116. echo 't "" -a ""'
  117. t "" -a ""
  118. echo 't "" -o ""'
  119. t "" -o ""