- Jun 1: An online makeup class material becomes available.
- May 30: The last class on June 8 (Thurs) will be an offline class to prepare a final exam.
- May 15: From May 23, instead of having a separate makeup class, our class hour will be extended by 15 min (i.e., from 4 - 5:30 PM) for the remaining 5 lectures.
- May 9: No class on May 9 (Tuesday). A make-up class schedule will be announced later.
- April 25: No class on May 4 (Thursday). A make-up class schedule will be announced later.
-
Instructor: Prof. Moonzoo Kim
- Office: 2434 (located at the east wing of E3-1)
- Phone: 042-350-3543
- E-mail: moonzoo.kim @ gmail.com
- Office hour: Tues 3:00-4:00 PM (reservation e-mail is preferred)
-
Teaching assistants: Youngseok Choi (youngseok.choi@kaist.ac.kr) and Mehdi Aghakishiyev (agakisiyev@kaist.ac.kr)
-
Lecture hours: Tue/Thur 4:00 - 5:15 PM
-
Lecture room: E3 Rm#1101 (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=145058
- 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=145058
-
Questions on the course materials and homeworks should be posted as github issues
-
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 28 : Introduction [pdf]
-
Mar 2, 7: 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 9: 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 14, 16: 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 21: 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/)
-
Mar 23: gcov tutorial [pdf]
-
Mar 30, Apr 4: Logic coverage [pdf]
-
Apr 6: Mutation testing [pdf]
-
Apr 13: Q&A for midterm exam
-
Apr 18: Midterm exam (closed book) 4:00-5:00 pm
-
Mar 23: CLang tutorial 1/2: Clang AST [pdf]
-
Mar 28: Clang tutorial 2/2: a program analysis tool by using Clang [pdf]
-
Apr 25, 27: LLVM pass [pdf], Clang vs LLVM IR [pdf]
Part IV: Automated Test Generation (Fuzzing and Concolic Testing (a.k.a., Dynamic Symbolic Execution))
-
May 2: Modern fuzzing technique overview (i.e., coverage-guided automated greybox testing) [pdf]
-
May 4, May 9: No class
-
May 16: Advanced Issues on Fuzzing [pdf]
-
May 18: [Case study of Fuzzing Application: POWERUP fuzzer]
-
May 18, 23: Automated SW analysis for high reliability: a Concolic testing approach [pdf]
-
May 23, 25: CROWN tutorial [pdf]
-
May 25, 30: CROWN Examples [pdf]
-
May 30: SMTlib tutorial [pdf], SMTLib web page, First order theories [pdf]
-
June 1: System-level concolic testing: Busybox application examples through CROWN [pdf]
-
Online makeup class: Industrial case studies (pre-recorded movie clip) (can be included in the final exam)
-
June 8: Automated unit testing [pdf], Unit-level concolic testing: Busybox ls example [pdf]
- **Dec 14: Final exam (closed book) 5:30-7:00 pm **