Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save JonathanCMitchell/ef97ab78fbd52ef60d44586ae721ffa7 to your computer and use it in GitHub Desktop.
Save JonathanCMitchell/ef97ab78fbd52ef60d44586ae721ffa7 to your computer and use it in GitHub Desktop.
sanity check passing then failing
odin@odin-System-Product-Name:~/Projects/os/project_0$ ls
a.out functions.sh lab0.c new.txt test_script.sh textnewgdbtest.txt
backtrace.png helloworld.txt Makefile README textmom.txt text_newr.txt
breakpoint.png lab0-503807455.tar.gz newoutput.txt smoketest.sh text_newer.txt text_new.txt
odin@odin-System-Product-Name:~/Projects/os/project_0$ ./test_script.sh 503807455
... using test directory /home/odin/Projects/os/project_0/CS111_test.odin
... extracting /home/odin/Projects/os/project_0/lab0-503807455.tar.gz
lab0.c
backtrace.png
breakpoint.png
README
Makefile
smoketest.sh
... checking for README file
README ... OK
... checking for submitter ID in README
single submitter: 503807455
... checking for submitter email in README
single address: jcmitchell@g.ucla.edu ... OK
... checking for submitter name in README
submitter(s): Jonathan Mitchell ... OK
... checking slip-day use in README
0 days
... checking for other expected files
Makefile ... OK
lab0.c ... OK
backtrace.png ... OK
breakpoint.png ... OK
... checking for required Make targets
Makefile target clean ... OK
Makefile target dist ... OK
Makefile target check ... OK
... checking for required compillation options
Makefile includes Wall ... OK
Makefile includes Wextra ... OK
before build line 146 errors: 0
... building default target(s)
gcc -o lab0 -g -Wall -Wextra lab0.c
RC=0 ... OK
error output ... NONE
...============================= checking make check
gcc -o lab0 -g -Wall -Wextra lab0.c
./smoketest.sh
Smoke testing...lab0
Executible lab0 exists
output file: first.txt created
output file: firstcopy.txt created
exit status 0
first.txt, firstcopy.txt are same
RC=0 ... OK
... checking make dist
tar -czf lab0-503807455.tar.gz lab0.c backtrace.png breakpoint.png README Makefile smoketest.sh
RC=0 ... OK
error output ... NONE
lab0-503807455.tar.gz ... OK
... checking make clean
rm first.txt firstcopy.txt lab0-503807455.tar.gz lab0
RC=0 ... OK
restored to freshly untar-ed state ... OK
... redo default make
gcc -o lab0 -g -Wall -Wextra lab0.c
RC=0 ... OK
error output ... NONE
... checking for expected products
lab0 ... OK
... lab0 detects/reports bogus arguments
RC=1 ... OK
./lab0: unrecognized option '--bogus'
Usage incorrect <run> -i <filename1> -o <filename2> -s -c... exercise bad --input from a nonexistent file
RC=2 ... OK
Error 2 opening --input filenameNON_EXISTENT_FILE, msg: No such file or directory
... exercise bad --output to an unwritable file
RC=3 ... OK
optarg: CANT_TOUCH_THISError 13 opening --output filename: CANT_TOUCH_THIS, msg: Permission denied
Permission denied
... exercise --segfault option
./test_script.sh: line 244: 28512 Segmentation fault (core dumped) ./$PGM --segfault
RC=139 ... OK
... exercise --catch --segfault option
RC=4 ... FAIL (RC=3)
Segmentation Fault Caught!! Exiting...... copy stdin -> stdout
RC=0 ... OK
data comparison ... OK
... copy --input -> stdout
Input File valid
RC=0 ... OK
data comparison ... OK
... copy stdin -> --output
optarg: OUTPUTOutput File created
RC=0 ... OK
data comparison ... OK
... copy --input -> --output
Input File valid
optarg: OUTPUTOutput File created
RC=0 ... OK
data comparison ... OK
... use of expected routines
getopt_long ... OK
signal ... OK
strerror ... OK
close ... OK
dup2\|dup ... OK
THIS SUBMISSION WILL USE NO SLIP-DAYS
THE ONLY STUDENTS WHO WILL RECEIVE CREDIT FOR THIS SUBMISSION ARE:
503807455 jcmitchell@g.ucla.edu
... cleaning up temporary files
... removing test directory /home/odin/Projects/os/project_0/CS111_test.odin
SUBMISSION lab0-503807455.tar.gz ... passes sanity check
odin@odin-System-Product-Name:~/Projects/os/project_0$ ./test_script.sh 503807455
... using test directory /home/odin/Projects/os/project_0/CS111_test.odin
... extracting /home/odin/Projects/os/project_0/lab0-503807455.tar.gz
lab0.c
backtrace.png
breakpoint.png
README
Makefile
smoketest.sh
... checking for README file
README ... OK
... checking for submitter ID in README
single submitter: 503807455
... checking for submitter email in README
single address: jcmitchell@g.ucla.edu ... OK
... checking for submitter name in README
submitter(s): Jonathan Mitchell ... OK
... checking slip-day use in README
0 days
... checking for other expected files
Makefile ... OK
lab0.c ... OK
backtrace.png ... OK
breakpoint.png ... OK
... checking for required Make targets
Makefile target clean ... OK
Makefile target dist ... OK
Makefile target check ... OK
... checking for required compillation options
Makefile includes Wall ... OK
Makefile includes Wextra ... OK
before build line 146 errors: 0
... building default target(s)
gcc -o lab0 -g -Wall -Wextra lab0.c
RC=0 ... OK
error output ... NONE
...============================= checking make check
gcc -o lab0 -g -Wall -Wextra lab0.c
./smoketest.sh
Smoke testing...lab0
Executible lab0 exists
output file: first.txt created
output file: firstcopy.txt created
exit status 0
first.txt, firstcopy.txt are same
RC=0 ... OK
... checking make dist
tar -czf lab0-503807455.tar.gz lab0.c backtrace.png breakpoint.png README Makefile smoketest.sh
RC=0 ... OK
error output ... NONE
lab0-503807455.tar.gz ... OK
... checking make clean
rm first.txt firstcopy.txt lab0-503807455.tar.gz lab0
RC=0 ... OK
restored to freshly untar-ed state ... OK
... redo default make
gcc -o lab0 -g -Wall -Wextra lab0.c
RC=0 ... OK
error output ... NONE
... checking for expected products
lab0 ... OK
... lab0 detects/reports bogus arguments
RC=1 ... OK
./lab0: unrecognized option '--bogus'
Usage incorrect <run> -i <filename1> -o <filename2> -s -c... exercise bad --input from a nonexistent file
RC=2 ... OK
Error 2 opening --input filenameNON_EXISTENT_FILE, msg: No such file or directory
... exercise bad --output to an unwritable file
RC=3 ... OK
optarg: CANT_TOUCH_THISError 13 opening --output filename: CANT_TOUCH_THIS, msg: Permission denied
Permission denied
... exercise --segfault option
./test_script.sh: line 244: 28644 Segmentation fault (core dumped) ./$PGM --segfault
RC=139 ... OK
... exercise --catch --segfault option
RC=4 ... FAIL (RC=3)
Segmentation Fault Caught!! Exiting...... copy stdin -> stdout
RC=0 ... OK
cmp: EOF on STDOUT
data comparison ... FAILURE
... copy --input -> stdout
Input File valid
RC=0 ... OK
data comparison ... OK
... copy stdin -> --output
optarg: OUTPUTOutput File created
RC=0 ... OK
data comparison ... OK
... copy --input -> --output
Input File valid
optarg: OUTPUTOutput File created
RC=0 ... OK
data comparison ... OK
... use of expected routines
getopt_long ... OK
signal ... OK
strerror ... OK
close ... OK
dup2\|dup ... OK
THIS SUBMISSION WILL USE NO SLIP-DAYS
THE ONLY STUDENTS WHO WILL RECEIVE CREDIT FOR THIS SUBMISSION ARE:
503807455 jcmitchell@g.ucla.edu
... cleaning up temporary files
... removing test directory /home/odin/Projects/os/project_0/CS111_test.odin
SUBMISSION lab0-503807455.tar.gz ... FAILS sanity check with 1 errors
odin@odin-System-Product-Name:~/Projects/os/project_0$
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment