Advertisement
Guest User

Untitled

a guest
Mar 16th, 2018
62
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 11.75 KB | None | 0 0
  1. make: `parseline' is up to date.
  2.  
  3. ------------------------
  4. Looking for source files
  5. ------------------------
  6.  
  7. Found: create_stages.c create_stages.h output_formatted.c output_formatted.h parseline.c shared.h tokenize_input.c tokenize_input.h validate_input.c validate_input.h
  8.  
  9. --------------------------------
  10. Checking for long lines (no program should have any lines > 80 chars)
  11. (run ~pnico/bin/longlines.pl on your files to check.)
  12. --------------------------------
  13.  
  14. Line length ok.
  15.  
  16. Found: Makefile
  17.  
  18. ------------------------------------
  19. Building the application: "make parseline"
  20. ------------------------------------
  21.  
  22. make parseline
  23. make: `parseline' is up to date.
  24.  
  25. ---------------
  26. checking for executable
  27. ---------------
  28.  
  29.  
  30. ------------------------
  31. Running the application
  32. ------------------------
  33.  
  34.  
  35. --------------------------------------------------------
  36. Test Results:
  37. These are the results of trying your parseline against
  38. mine on a number of different test cases.
  39.  
  40. The output of your version of parseline is compared to
  41. the output of ~pn-cs357/demos/parseline using diff (1).
  42. If they differ the test case is a failure.
  43.  
  44. The test commands are located in /home/pn-cs357/lib/asgn5//Tests/commands and the
  45. associated data are in /home/pn-cs357/lib/asgn5//Tests/Inputs
  46.  
  47. Note: The early usage tests give bad arguments and expect
  48. a non-zero exit status and see a message of the form:
  49. "usage: parseline [ -c ] [ -d ] set1 [ set2 ]" The message
  50. doesn't have to be exactly the same, but it's looking for the
  51. word "usage".
  52.  
  53. Each command is run with a timeout of 10 seconds, so
  54. if your program takes longer than that, it will be interrupted.
  55.  
  56.  
  57. Tests:
  58. 1) A__LineTooLong ... ok.
  59. 2) B__TooManyStages ... ok.
  60. 3) C__TooManyArgs ... ok.
  61. 4) 00_Empty ... ok.
  62. 5) 01_NoArgs ... FAILURE.
  63. 6) 02_Args ... FAILURE.
  64. 7) 03_RedirectFrom ... ok.
  65. 8) 04_RedirectInto ... FAILURE.
  66. 9) 05_OnePipe ... FAILURE.
  67. 10) 06_OnePipeArgs ... FAILURE.
  68. 11) 07_ManyPipes ... FAILURE.
  69. 12) 08_ManyPipesArgs ... FAILURE.
  70. 13) 09_RedirectBoth ... ok.
  71. 14) 10_AmbiguousInput ... FAILURE (expected error message on stderr)
  72. 15) 11_AmbiguousOutput ... FAILURE (expected error message on stderr)
  73. 16) 12_NullCmdInPipe ... FAILURE (expected error message on stderr)
  74. Passed 6 out of 16 tests.
  75.  
  76. FAILED.
  77.  
  78.  
  79.  
  80. #############################
  81. # Failure details are below #
  82. #############################
  83.  
  84.  
  85. ==========================================
  86. 5) 01_NoArgs (FAILURE.)
  87. cmd: "ls"
  88. ==========================================
  89. --------------------------
  90. Submitted's stdout:
  91.  
  92. --------------------------
  93. --------------------------
  94. Submitted's stderr:
  95. command too long
  96.  
  97. --------------------------
  98. --------------------------
  99. Reference output:
  100.  
  101. --------
  102. Stage 0: " ls"
  103. --------
  104. input: original stdin
  105. output: original stdout
  106. argc: 1
  107. argv: "ls"
  108. --------------------------
  109. --------------------------
  110. Diff -bBw (< Reference > Submitted):
  111. 2,8d1
  112. < --------
  113. < Stage 0: " ls"
  114. < --------
  115. < input: original stdin
  116. < output: original stdout
  117. < argc: 1
  118. < argv: "ls"
  119.  
  120. --------------------------
  121.  
  122. ==========================================
  123. 6) 02_Args (FAILURE.)
  124. cmd: "ls a b c d e f g "
  125. ==========================================
  126. --------------------------
  127. Submitted's stdout:
  128. --------
  129. Stage 0: " ls a b c d e f g "
  130. --------
  131. input:
  132. output: original stdout
  133. argc: 8
  134. argv: "ls", "a", "b", "c", "d", "e", "f", "g"
  135.  
  136. --------------------------
  137. --------------------------
  138. Reference output:
  139.  
  140. --------
  141. Stage 0: " ls a b c d e f g "
  142. --------
  143. input: original stdin
  144. output: original stdout
  145. argc: 8
  146. argv: "ls","a","b","c","d","e","f","g"
  147. --------------------------
  148. --------------------------
  149. Diff -bBw (< Reference > Submitted):
  150. 5c4
  151. < input: original stdin
  152. ---
  153. input:
  154.  
  155. --------------------------
  156.  
  157. ==========================================
  158. 8) 04_RedirectInto (FAILURE.)
  159. cmd: "cat > /dev/null"
  160. ==========================================
  161. --------------------------
  162. Submitted's stdout:
  163. --------
  164. Stage 0: " cat > /dev/null"
  165. --------
  166. input:
  167. output: /dev/null
  168. argc: 1
  169. argv: "cat"
  170.  
  171. --------------------------
  172. --------------------------
  173. Reference output:
  174.  
  175. --------
  176. Stage 0: " cat > /dev/null"
  177. --------
  178. input: original stdin
  179. output: /dev/null
  180. argc: 1
  181. argv: "cat"
  182. --------------------------
  183. --------------------------
  184. Diff -bBw (< Reference > Submitted):
  185. 5c4
  186. < input: original stdin
  187. ---
  188. input:
  189.  
  190. --------------------------
  191.  
  192. ==========================================
  193. 9) 05_OnePipe (FAILURE.)
  194. cmd: "ls | cat"
  195. ==========================================
  196. --------------------------
  197. Submitted's stdout:
  198. --------
  199. Stage 0: " ls "
  200. --------
  201. input:
  202. output: pipe to stage 1
  203. argc: 1
  204. argv: "ls"
  205. --------
  206. Stage 1: " cat"
  207. --------
  208. input: pipe from stage 0
  209. output: original stdout
  210. argc: 1
  211. argv: "cat"
  212.  
  213. --------------------------
  214. --------------------------
  215. Reference output:
  216.  
  217. --------
  218. Stage 0: " ls "
  219. --------
  220. input: original stdin
  221. output: pipe to stage 1
  222. argc: 1
  223. argv: "ls"
  224.  
  225. --------
  226. Stage 1: " cat"
  227. --------
  228. input: pipe from stage 0
  229. output: original stdout
  230. argc: 1
  231. argv: "cat"
  232. --------------------------
  233. --------------------------
  234. Diff -bBw (< Reference > Submitted):
  235. 5c4
  236. < input: original stdin
  237. ---
  238. input:
  239.  
  240. --------------------------
  241.  
  242. ==========================================
  243. 10) 06_OnePipeArgs (FAILURE.)
  244. cmd: "ls a b c | cat"
  245. ==========================================
  246. --------------------------
  247. Submitted's stdout:
  248. --------
  249. Stage 0: " ls a b c "
  250. --------
  251. input:
  252. output: pipe to stage 1
  253. argc: 4
  254. argv: "ls", "a", "b", "c"
  255. --------
  256. Stage 1: " cat"
  257. --------
  258. input: pipe from stage 0
  259. output: original stdout
  260. argc: 1
  261. argv: "cat"
  262.  
  263. --------------------------
  264. --------------------------
  265. Reference output:
  266.  
  267. --------
  268. Stage 0: " ls a b c "
  269. --------
  270. input: original stdin
  271. output: pipe to stage 1
  272. argc: 4
  273. argv: "ls","a","b","c"
  274.  
  275. --------
  276. Stage 1: " cat"
  277. --------
  278. input: pipe from stage 0
  279. output: original stdout
  280. argc: 1
  281. argv: "cat"
  282. --------------------------
  283. --------------------------
  284. Diff -bBw (< Reference > Submitted):
  285. 5c4
  286. < input: original stdin
  287. ---
  288. input:
  289.  
  290. --------------------------
  291.  
  292. ==========================================
  293. 11) 07_ManyPipes (FAILURE.)
  294. cmd: "ls | cat | cat | cat | cat | cat "
  295. ==========================================
  296. --------------------------
  297. Submitted's stdout:
  298.  
  299. --------------------------
  300. --------------------------
  301. Submitted's stderr:
  302. command too long
  303.  
  304. --------------------------
  305. --------------------------
  306. Reference output:
  307.  
  308. --------
  309. Stage 0: " ls "
  310. --------
  311. input: original stdin
  312. output: pipe to stage 1
  313. argc: 1
  314. argv: "ls"
  315.  
  316. --------
  317. Stage 1: " cat "
  318. --------
  319. input: pipe from stage 0
  320. output: pipe to stage 2
  321. argc: 1
  322. argv: "cat"
  323.  
  324. --------
  325. Stage 2: " cat "
  326. --------
  327. /home/pnico/bin/iolimit.Linux.x86_64: output line limit (20) exceeded.
  328. --------------------------
  329. --------------------------
  330. Diff -bBw (< Reference > Submitted):
  331. 2,48d1
  332. < --------
  333. < Stage 0: " ls "
  334. < --------
  335. < input: original stdin
  336. < output: pipe to stage 1
  337. < argc: 1
  338. < argv: "ls"
  339. <
  340. < --------
  341. < Stage 1: " cat "
  342. < --------
  343. < input: pipe from stage 0
  344. < output: pipe to stage 2
  345. < argc: 1
  346. < argv: "cat"
  347. <
  348. < --------
  349. < Stage 2: " cat "
  350. < --------
  351. /home/pnico/bin/iolimit.Linux.x86_64: output line limit (20) exceeded.
  352.  
  353. --------------------------
  354.  
  355. ==========================================
  356. 12) 08_ManyPipesArgs (FAILURE.)
  357. cmd: "ls a b c | tee /dev/null | tee /dev/null | tee /dev/null | tee /dev/null "
  358. ==========================================
  359. --------------------------
  360. Submitted's stdout:
  361.  
  362. --------------------------
  363. --------------------------
  364. Submitted's stderr:
  365. command too long
  366.  
  367. --------------------------
  368. --------------------------
  369. Reference output:
  370.  
  371. --------
  372. Stage 0: " ls a b c "
  373. --------
  374. input: original stdin
  375. output: pipe to stage 1
  376. argc: 4
  377. argv: "ls","a","b","c"
  378.  
  379. --------
  380. Stage 1: " tee /dev/null "
  381. --------
  382. input: pipe from stage 0
  383. output: pipe to stage 2
  384. argc: 2
  385. argv: "tee","/dev/null"
  386.  
  387. --------
  388. Stage 2: " tee /dev/null "
  389. --------
  390. /home/pnico/bin/iolimit.Linux.x86_64: output line limit (20) exceeded.
  391. --------------------------
  392. --------------------------
  393. Diff -bBw (< Reference > Submitted):
  394. 2,40d1
  395. < --------
  396. < Stage 0: " ls a b c "
  397. < --------
  398. < input: original stdin
  399. < output: pipe to stage 1
  400. < argc: 4
  401. < argv: "ls","a","b","c"
  402. <
  403. < --------
  404. < Stage 1: " tee /dev/null "
  405. < --------
  406. < input: pipe from stage 0
  407. < output: pipe to stage 2
  408. < argc: 2
  409. < argv: "tee","/dev/null"
  410. <
  411. < --------
  412. < Stage 2: " tee /dev/null "
  413. < --------
  414. /home/pnico/bin/iolimit.Linux.x86_64: output line limit (20) exceeded.
  415.  
  416. --------------------------
  417.  
  418. ==========================================
  419. 14) 10_AmbiguousInput (FAILURE (expected error message on stderr))
  420. cmd: "ls | more < foo"
  421. ==========================================
  422. --------------------------
  423. Submitted's stdout:
  424. --------
  425. Stage 0: " ls "
  426. --------
  427. input:
  428. output: pipe to stage 1
  429. argc: 1
  430. argv: "ls"
  431. --------
  432. Stage 1: " more < foo"
  433. --------
  434. input: pipe from stage 0
  435. output: original stdout
  436. argc: 1
  437. argv: "more"
  438.  
  439. --------------------------
  440.  
  441. ==========================================
  442. 15) 11_AmbiguousOutput (FAILURE (expected error message on stderr))
  443. cmd: "ls > foo | more"
  444. ==========================================
  445. --------------------------
  446. Submitted's stdout:
  447. --------
  448. Stage 0: " ls > foo "
  449. --------
  450. input:
  451. output: pipe to stage 1
  452. argc: 1
  453. argv: "ls"
  454. --------
  455. Stage 1: " more"
  456. --------
  457. input: pipe from stage 0
  458. output: foo
  459. argc: 1
  460. argv: "more"
  461.  
  462. --------------------------
  463.  
  464. ==========================================
  465. 16) 12_NullCmdInPipe (FAILURE (expected error message on stderr))
  466. cmd: "ls | | more"
  467. ==========================================
  468. --------------------------
  469. Submitted's stdout:
  470. --------
  471. Stage 0: " ls "
  472. --------
  473. input:
  474. output: pipe to stage 1
  475. argc: 1
  476. argv: "ls"
  477.  
  478. --------------------------
  479.  
  480. pbartlet Tests: 37/100 Total: 37/100
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement