19
Working on Assignments CS/SE 3SH3

Working on Assignments - McMaster Universityqiao/courses/cs3mh3/tutorials/... · 2013-01-24 · Useful SVN commands •Check out –Retrieve files from repository to working directory

  • Upload
    others

  • View
    1

  • Download
    0

Embed Size (px)

Citation preview

Page 1: Working on Assignments - McMaster Universityqiao/courses/cs3mh3/tutorials/... · 2013-01-24 · Useful SVN commands •Check out –Retrieve files from repository to working directory

Working on Assignments

CS/SE 3SH3

Page 2: Working on Assignments - McMaster Universityqiao/courses/cs3mh3/tutorials/... · 2013-01-24 · Useful SVN commands •Check out –Retrieve files from repository to working directory

Preparation

• Mac user

– Terminal

• Windows user

– SSH client (PuTTY…)

Page 3: Working on Assignments - McMaster Universityqiao/courses/cs3mh3/tutorials/... · 2013-01-24 · Useful SVN commands •Check out –Retrieve files from repository to working directory

Working on Assignments

• Working on Penguin

• Submitting assignments to SVN

SVN Penguin

Get nachos code

Submit assignments

Login

Page 4: Working on Assignments - McMaster Universityqiao/courses/cs3mh3/tutorials/... · 2013-01-24 · Useful SVN commands •Check out –Retrieve files from repository to working directory

Working on Penguin

• Penguin, Port 22

• >SSH penguin.mcmaster.ca

• >SSH [email protected]

• Login use MacID

Page 5: Working on Assignments - McMaster Universityqiao/courses/cs3mh3/tutorials/... · 2013-01-24 · Useful SVN commands •Check out –Retrieve files from repository to working directory

> mkdir Assignment1 > mkdir Assignment2

Page 6: Working on Assignments - McMaster Universityqiao/courses/cs3mh3/tutorials/... · 2013-01-24 · Useful SVN commands •Check out –Retrieve files from repository to working directory

SVN Address

https://websvn.mcmaster.ca/nachos/

+ group number

For example:

https://websvn.mcmaster.ca/nachos/group1/

Page 7: Working on Assignments - McMaster Universityqiao/courses/cs3mh3/tutorials/... · 2013-01-24 · Useful SVN commands •Check out –Retrieve files from repository to working directory

7

Initial Project

How SVN works?

Page 8: Working on Assignments - McMaster Universityqiao/courses/cs3mh3/tutorials/... · 2013-01-24 · Useful SVN commands •Check out –Retrieve files from repository to working directory

Useful SVN commands

• Check out

– Retrieve files from repository to working directory

• Commit (check in)

– Place the changes in the working directory into repository

• Update

– Merge the latest changes in the repository into

the working copy files

Page 9: Working on Assignments - McMaster Universityqiao/courses/cs3mh3/tutorials/... · 2013-01-24 · Useful SVN commands •Check out –Retrieve files from repository to working directory

For Each Assignment

• Create a directory on penguin

• Checkout nachos code from assignment SVN directory

Page 10: Working on Assignments - McMaster Universityqiao/courses/cs3mh3/tutorials/... · 2013-01-24 · Useful SVN commands •Check out –Retrieve files from repository to working directory

Check Out – Get a nachos Copy

• svn checkout repository-URL [working_dir]

• svn co repository-URL [working_dir]

• > svn co https://websvn.mcmaster.ca/nachos/group1/Assignment1 ~/Assignment1

This checks out a nachos copy to “~/Assignment1”

Page 11: Working on Assignments - McMaster Universityqiao/courses/cs3mh3/tutorials/... · 2013-01-24 · Useful SVN commands •Check out –Retrieve files from repository to working directory

Compile Nachos

• Goto directory

“~/Assignment1/nachos-4.02/code/build.linux”

• > make clean

• > make depend

• > make

Page 12: Working on Assignments - McMaster Universityqiao/courses/cs3mh3/tutorials/... · 2013-01-24 · Useful SVN commands •Check out –Retrieve files from repository to working directory

Compile succeeded

• Run nachos

> ./nachos

Page 13: Working on Assignments - McMaster Universityqiao/courses/cs3mh3/tutorials/... · 2013-01-24 · Useful SVN commands •Check out –Retrieve files from repository to working directory

Check In – Submit your works

• Before Checkin your work

• 1. Compile and test

• 2. Check conflict with peers

• > svn update

• > svn commit –m “message”

Page 14: Working on Assignments - McMaster Universityqiao/courses/cs3mh3/tutorials/... · 2013-01-24 · Useful SVN commands •Check out –Retrieve files from repository to working directory

About assignment

• README.txt

– Plain text

– 60 chars / line

• Nachos codes

– Compiled, tested and well commented

Page 15: Working on Assignments - McMaster Universityqiao/courses/cs3mh3/tutorials/... · 2013-01-24 · Useful SVN commands •Check out –Retrieve files from repository to working directory

README.txt

• Names of all team members

• How late this assignment is, how much

extension time left

• File names modified and added

• Your design ideas (code snips)

• Output of your test

Page 16: Working on Assignments - McMaster Universityqiao/courses/cs3mh3/tutorials/... · 2013-01-24 · Useful SVN commands •Check out –Retrieve files from repository to working directory

Assignment submitted

Page 17: Working on Assignments - McMaster Universityqiao/courses/cs3mh3/tutorials/... · 2013-01-24 · Useful SVN commands •Check out –Retrieve files from repository to working directory

Add “README.txt” to SVN

• > svn add README.txt

Page 18: Working on Assignments - McMaster Universityqiao/courses/cs3mh3/tutorials/... · 2013-01-24 · Useful SVN commands •Check out –Retrieve files from repository to working directory

After Assignment Submission

• Check your submission using a browser

Page 19: Working on Assignments - McMaster Universityqiao/courses/cs3mh3/tutorials/... · 2013-01-24 · Useful SVN commands •Check out –Retrieve files from repository to working directory

Questions ?