User Tools

Site Tools


haas:spring2017:cprog:projects:mbe0

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revisionPrevious revision
Next revision
Previous revision
haas:spring2017:cprog:projects:mbe0 [2017/02/08 12:29] – [Errata] wedgehaas:spring2017:cprog:projects:mbe0 [2017/02/15 15:42] (current) – [Total output comparison] wedge
Line 361: Line 361:
 You can repeat this for the other data files (output.73 for an input of 73, etc.) You can repeat this for the other data files (output.73 for an input of 73, etc.)
  
 +===Isolate just the STDOUT or the STDERR===
 +Additionally, you may want to specifically look at your program's STDOUT or STDERR independent of each other.
 +
 +To do this, you can do the following.
 +
 +To isolate STDOUT and STDERR into separate files, you can do the following:
 +
 +<cli>
 +lab46:~/src/cprog/mbe0$ ./mbe0 <<< 37 1>stdout.37 2>stderr.37
 +lab46:~/src/cprog/mbe0$ 
 +</cli>
 +
 +You can then compare those particular collections of information against my copies (located in the **mbe0** subdirectory of the CPROG Public Directory, by the same file names).
 ====automated verification==== ====automated verification====
 I have rigged up **pchk** to work for this project; it will check for differences and compare MD5sum hashes for stderr, stdout, and total (combined) output. I have rigged up **pchk** to work for this project; it will check for differences and compare MD5sum hashes for stderr, stdout, and total (combined) output.
Line 371: Line 384:
 =          mbe0 output validation check           = =          mbe0 output validation check           =
 =================================================== ===================================================
-[ 37] stderr diff: MATCH    stderr md5sum: MATCH +      stderr diff: MATCH    stderr md5sum: MATCH 
-      stdout diff: MATCH    stdout md5sum: MATCH+[ 37] stdout diff: MATCH    stdout md5sum: MATCH
       output diff: MATCH    output md5sum: MATCH       output diff: MATCH    output md5sum: MATCH
  
-[ 73] stderr diff: MATCH    stderr md5sum: MATCH +      stderr diff: MATCH    stderr md5sum: MATCH 
-      stdout diff: MATCH    stdout md5sum: MATCH+[ 73] stdout diff: MATCH    stdout md5sum: MATCH
       output diff: MATCH    output md5sum: MATCH       output diff: MATCH    output md5sum: MATCH
  
-[128] stderr diff: MATCH    stderr md5sum: MATCH +      stderr diff: MATCH    stderr md5sum: MATCH 
-      stdout diff: MATCH    stdout md5sum: MATCH+[128] stdout diff: MATCH    stdout md5sum: MATCH
       output diff: MATCH    output md5sum: MATCH       output diff: MATCH    output md5sum: MATCH
  
-[480] stderr diff: MATCH    stderr md5sum: MATCH +      stderr diff: MATCH    stderr md5sum: MATCH 
-      stdout diff: MATCH    stdout md5sum: MATCH+[480] stdout diff: MATCH    stdout md5sum: MATCH
       output diff: MATCH    output md5sum: MATCH       output diff: MATCH    output md5sum: MATCH
  
-[907] stderr diff: MATCH    stderr md5sum: MATCH +      stderr diff: MATCH    stderr md5sum: MATCH 
-      stdout diff: MATCH    stdout md5sum: MATCH+[907] stdout diff: MATCH    stdout md5sum: MATCH
       output diff: MATCH    output md5sum: MATCH       output diff: MATCH    output md5sum: MATCH
  
-[933] stderr diff: MATCH    stderr md5sum: MATCH +      stderr diff: MATCH    stderr md5sum: MATCH 
-      stdout diff: MATCH    stdout md5sum: MATCH+[933] stdout diff: MATCH    stdout md5sum: MATCH
       output diff: MATCH    output md5sum: MATCH       output diff: MATCH    output md5sum: MATCH
 =================================================== ===================================================
Line 412: Line 425:
  
   * Code must compile cleanly (no warnings or errors)   * Code must compile cleanly (no warnings or errors)
 +    * Again, I will be compiling as follows: gcc -Wall -o mbe0 mbe0.c
   * Submit the program in a file called **mbe0.c**   * Submit the program in a file called **mbe0.c**
   * Output must be correct, and match the form given in the sample output above.   * Output must be correct, and match the form given in the sample output above.
haas/spring2017/cprog/projects/mbe0.1486556977.txt.gz · Last modified: 2017/02/08 12:29 by wedge