May 13: Final exam 17:30-18:45 June 12 (Thurs) @ E3-1 Rm#2443 as determined by the dept. of academic affairs KAIST.
May 13: No class on June 3 due to the predidential election
Apr 9: Midterm exam 17:30-18:45 April 17 (Thurs) @ E3-1 Rm#2443 as determined by the dept. of academic affairs KAIST.
Mar 31: Lecture movies on the mutation testing are uploaded.
Mar 25: No class on Apr 1, 3 due to ICST 25 conf. I will upload class movie files instead of real-time classes.
-
Instructor: Prof. Moonzoo Kim
- Office: E3-1 Rm# 2434 (located at the east wing of E3-1)
- Phone: 042-350-3543
- E-mail: moonzoo.kim @ gmail.com
- Office hour: Tues 4:00-5:00 PM (reservation e-mail is preferred)
-
Teaching assistants: Heechan Yang (heechan.yang96@gmail.com)
-
Lecture hours: Tue/Thur 17:30-19:00
-
Lecture room: E3 Rm# 2443 (and through Zoom)
- a face-to-face lecture on Tues and an online lecture on Thurs (this plan may change later)
- Zoom link for Thurs class: https://kaist.zoom.us/j/5258253316
-
Recommended prerequisite: CS230 System Programming, proficiency in C/C++ programming and Linux utilities
- Due to the high load of TA, TA will not provide help for basic C/C++/Linux questions.
- This class can be difficult to follow for exchange students.
-
Grading: attendance/class participation/quiz: 20%, HW: 50%, mid/final exams:30%
- You should turn on your web cam when you participate an online class; class attendance will not be counted otherwise.
- More than 7 absences of the class will get F grade
- Late attendance shall be counted as 1/3 absence. If a student is not able to attend a class due to an important event (e.g., attending conf., etc.), he/she should submit 1 week prior notice to the professor.
- The official language in the class is English. All students should submit all written documents such as homework, project reports, exam, etc. in English; 20% penalty of the max score otherwise.
-
Homework:
- Homework should be submitted through KLMS https://klms.kaist.ac.kr/course/view.php?id=165485
- Hint: many questions of exams are from the homeworks.
- Late HW will be accepted with 10% penalty of the max score in 1 day, 30% penalty of the max score in 3 days. HW will not be accepted after then.
- All programming HWs you submit must be able to be replayed by executing a single script file on a TA's server account (i.e., submitted HW should not have a dependency on your home directory, environment, etc.). Also, the replayed execution must demonstrate the same output to the submitted hw. You will get 10% penalty of the max score otherwise.
- For your programming HWs, you should not use external libraries which are not available on the server machines. If you really need an external library, you have to ask TAs to install it on the server machines.
- Please, include your student ID in the name of your submiited file(s), so that TAs can easily identify which files are yours.
- Homework should be submitted through KLMS https://klms.kaist.ac.kr/course/view.php?id=165485
-
Questions on the course materials and homeworks should be posted as github issues
- https://github.com/swtv-kaist/cs458-spring25/issues
- You can see the Q&A of the previous year's CS458 class
-
Excerpts from 강의평가 (4.93 out of 5 in Spring 23)
- "이번 학기에 졸업하는데, 지금까지 들은 과목 중 가장 재미있고 실용적이었던 것 같아요! 과제도 이전 평에 비해 너무 어렵지 않고 딱 적당했던 것 같습니다."
- "테스팅에 대해 많이 배워갈 수 있었습니다. 과제가 많긴 하지만 다 도움이 되는 것 같습니다. 감사합니다."
- "먼저, 좋은 강의 해주셔서 진심으로 감사합니다. 본 강의를 통해 전반적인 테스팅 기법들에 대해 알 수 있었던 것 같습니다. 특히, fuzzing, concolic testing, SMT solver 등 실질적으로 써먹을 수 있는 기법들을 실습과 병행해서 잘 배울 수 있었던 것 같습니다... 이번 학기 가장 많은 것을 얻은 과목이라고 자부합니다. 교수님께서 학생들에게 진심을 다해 강의해주시는 모습을 보며 큰 동기부여가 되었고, 많은 지식을 습득할 수 있었던 것 같습니다. 항상 감사합니다."
This class covers automated SW testing/verification techniques to detect SW bugs by analyzing SW source code and its diverse runtime behaviors. In particular, this class focuses to teach techniques that automatically generate test cases to achieve high code coverage and, thus, to detect many bugs.
The class teaches practical applications of testing/verification techniques by applying open-source testing/verification tools to complete homework tasks. Also, it guides students to learn the underlying fundamental algorithms of such techniques/tools to improve the performance of automated testing/verification.
“Software testers do not make software; they only make them better.” – Anonymous
- Feb 25 : Introduction [pdf]
-
Feb 27: Necessity for systematic & automated testing techniques [pdf]
- "Variability and Reproducibility in Software Engineering: A Study of Four Companies that Developed the Same System" by Anda et al. IEEE Trans. on Software Engineering vol. 35, no. 3, pp. 407-429, May-June 2009.
-
Mar 4: Overview of testing techniques (including the input partitioning technique) [pdf]
“It’s hard enough to find an error in your code when you’re looking for it; it’s even harder when you’ve assumed your code is error-free.”— Steve McConnell
-
Mar 6: Graph coverage [pdf]
- Intro to Software Testing web site
- "An Experimental Comparison of Four Unit Test Criteria: Mutation, Edge-Pair, All-uses and Prime Path Coverage" by Nan Li et al. '09 Intl. Conf. on Software Testing, Verification, and Validation Workshops
-
Mar 11, 13: Graph coverage for source code [pdf], Generating CFG using GCC and Graphviz [pdf]
- http://www.webgraphviz.com/
- Cyclometic complexity (또다른 한글문서) https://www.guru99.com/cyclomatic-complexity.html
- Useful commercial tools to manually analyze SW:
- Understand C++ (https://scitools.com) (free academic version available)
- Source Insight (https://www.sourceinsight.com/)
-
Homework 1: Graph coverage
-
Mar 18: gcov tutorial [pdf]
-
Mar 20, 25: Logic coverage [pdf]
-
Homework 2: Manual testing of
grep
utility for branch coverage (graph coverage) -
Mar 28: Logic coverage from source code [pdf]
-
Mar 27, Apr 1: Mutation testing [pdf]
-
Homework 3: Manual testing of
tcas
utility for MC/DC coverage (logic coverage)
-
Apr 8: Clang tutorial 2/2: a program analysis tool by using Clang [pdf]
-
Apr 10: Q&A for midterm exam
-
Homework 4: kcov coverage tool (Clang)
-
Apr TBD: Midterm exam (closed book, NOT including Clang part) 5:30-7:00 pm
-
Apr 24, 29: LLVM pass [pdf], Clang vs LLVM IR [pdf]
-
Homework 5: kcov coverage tool (LLVM IR)
-
May 1: Automated Bug Detection through Static Analysis [pdf]
-
May 15: Case study of Fuzzing Application: POWERUP fuzzer [pdf]
-
Homework 6: Automated testing of grep by applying AFL++
-
May 20: Automated SW analysis for high reliability: a Concolic testing approach [pdf]
-
May 22: CROWN tutorial [pdf]
-
May 27: CROWN Examples [pdf], Example: Concolic testing a circular queue [pdf]
-
Homework 7: Automated testing of TCAS by applying CROWN
-
June 3: No class due to the president election
-
June 5: Unit-level concolic testing: Busybox ls example [pdf]
- June 12th : Final exam (closed book) 5:30-7:00 pm