Advertisement
CSenshi

OS - Threads (g_hw1) - Testing Commands

Apr 25th, 2019
259
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Bash 0.48 KB | None | 0 0
  1. # Run All Tests
  2. # .../pintos/src/threads
  3. make && make check
  4.  
  5. # Run Certain Test (Set CUR_TEST variable to test name)
  6. # .../pintos/src/threads
  7. CUR_TEST='alarm-single' && pintos run $CUR_TEST && echo -e '\n!!!!!!!!! TEST RESULTS !!!!!!!!!\n' && cat build/tests/threads/$CUR_TEST.result
  8.  
  9. # DEBUGGING
  10.  
  11. # (Term 1)
  12. #  DIR : .../pintos/src/threads
  13. pintos --gdb -- run alarm-multiple
  14.  
  15. # (Term 2)
  16. # DIR : .../pintos/src/threads/build
  17. pintos-gdb kernel.o
  18. (gdb) target remote localhost:1234
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement