- Computer Environment Setting
- Homework Upload Tutorial
Reference: https://www.eriksmistad.no/getting-started-with-google-test-on-ubuntu/
sudo apt-get update
sudo apt-get install g++
sudo apt-get install make
sudo apt-get install libgtest-dev
sudo apt-get install cmake
cd /usr/src/gtest
sudo cmake CMakeLists.txt
sudo make
cd lib
sudo cp *.a /usr/lib
1. Download GoogleTest and run the following command.
Reference: https://gist.github.com/massenz/41bb2c8375294f4d9927
brew install cmake
cd ~/Downloads/googletest-release-1.8.0/googletest
mkdir build
cd build
cmake –Dgtest_build_samples=ON –Dgtest_build_tests=ON ~/Downloads/googletest-release-1.8.0/googletest
make
sudo mkdir /usr/local/Cellar/gtest
sudo cp ~/Downloads/googletest-release-1.8.0/googletest/build/libgtest.a /usr/local/Cellar/gtest/
sudo ln –snf /usr/local/Cellar/gtest/libgtest.a /usr/local/lib/libgtest.a
sudo cp –r ~/Downloads/googletest-release-1.8.0/googletest/include /usr/local/Cellar/gtest/
ln –snf /usr/local/Cellar/gtest/include/gtest /usr/local/include/gtest
-
Open the terminal and enter the following command.
Get in to project directory and initialize as git project.
$ cd /path/to/your/project
$ git init
-
Go to Gitlab to find your own project link.
Suggestion: Use https link instead of ssh link.
-
Link your git project to Gitlab repository.
Enter following command:
$ git remote add origin ${YOUR_URL}
** Replace ${YOUR_URL} with the gitlab project link from step 3.
- Look up the current status of git repository.
Enter following command:
$ git status
- Add the new/modified files to "Changes to be committed" queue:
Enter following command:
$ git add .
If the file status is "deleted", you'll need rm command:
$ git rm ${FILE_NAME}
- Check the current status again.
$ git status
- If the status in step 3 is correct, you can commit the current changes to git history.
By following command:
$ git commit -m "${YOUR_COMMIT_MESSAGE}"
${YOUR_COMMIT_MESSAGE} is the message to describe the current changes you commit.
4.5 If it's your first time to commit in your device, system will require you to provide your personal info.
Enter the following commands to fill in infos.
$ git config --global user.email ${YOUR_EMAIL}
$ git config --global user.name ${YOUR_NAME}
Then you can enter the commit message in step 4 again.
- Push your local commits to Gitlab server.
Enter the following command:
$ git push -u origin master
And enter your username & password.
** The password won't show when you enter.
-
Go to Gitlab to check your upload status.
-
Go to Jenkins to check your homework status.
The username and password are default in your student ID
For example, username: 106820000, password: 106820000
Please login and modified to your own password
- Projects to check:
- Check ${COURSE}_${STUDENT_ID}_HW, for example: psod2020f_106820000_HW.
- This project is for executing student's own unit tests. - Check ${COURSE}_${STUDENT_ID}_HW_TA, for example: psod2020f_106820000_HW_TA.
- This project is for executing TA provided unit tests.
- Check ${COURSE}_${STUDENT_ID}_HW, for example: psod2020f_106820000_HW.
- Project status:
If you click blue/red light, you can see the execution console to check execution status.