Skip to content

lyeechong/439proj2-testcases

Repository files navigation

#Testcases for Project 2 (threads)

####test1 tests for correct behavior for the runqueue order ####test2 tests for correct behavior with multiple yields ####test3 tests for correct behavior with multiple yields with only one thread ####test4 is a little fun. Does fibonacci numbers and squares. Tests for not corrupting the local variables on the call stack I suppose. ####test5 very simple argument passing test with an int ####test6 simple argument passing test with an array ####test7 multiple threads combined with argument passing ####test8 ping pong, passing an arg between threads ####test9 testing that thread_exit actually exits the thread ####test10 running a thread which was passed as an argument to another thread ####test11 testing to see if a thread exits cleanly without the use of thread_exit

###Let me know if you think any of these are too much of a corner case?

##TODO ####cases:

  • runqueue ordering
  • multi yield
  • stack preservation
  • cases testing arguments passed to the functions
  • case testing two creates in a row
  • case for checking that thread_exit does exit
  • case for no thread_exit (see if the call stack pops the ret address succesfully)

##Grading script setup

.
  |-grade.sh
  |-439proj2-testcases
  | |-test1.c
  | |-test1_expected_out
  | |-test2.c
  | |-test2_expected_out
  | |-etc..
  |-student_submission_folder

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published