Fuzzing for CPS Mutation Testing
Authors:
- 11 September 2023
- conference paper
- Published by Institute of Electrical and Electronics Engineers (IEEE)
- p. 1377-1389
Abstract
Mutation testing can help reduce the risks of releasing faulty software. For such reason, it is a desired practice for the development of embedded software running in safety-critical cyber-physical systems (CPS). Unfortunately, state-of-the-art test data generation techniques for mutation testing of C and C++ software, two typical languages for CPS software, rely on symbolic execution, whose limitations often prevent its application (e.g., it cannot test black-box components). We propose a mutation testing approach that leverages fuzz testing, which has proved effective with C and C++ software. Fuzz testing automatically generates diverse test inputs that exercise program branches in a varied number of ways and, therefore, exercise statements in different program states, thus maximizing the likelihood of killing mutants, our objective. We performed an empirical assessment of our approach with software components used in satellite systems currently in orbit. Our empirical evaluation shows that mutation testing based on fuzz testing kills a significantly higher proportion of live mutants than symbolic execution (i.e., up to an additional 47 percentage points). Further, when symbolic execution cannot be applied, fuzz testing provides significant benefits (i.e., up to 41% mutants killed). Our study is the first one comparing fuzz testing and symbolic execution for mutation testing; our results provide guidance towards the development of fuzz testing tools dedicated to mutation testing.Keywords
All Related Versions
Funding Information
- Entomological Society of America
- Natural Sciences and Engineering Research Council of Canada
- Canada Research Chairs
This publication has 49 references indexed in Scilit:
- Achieving scalable mutation-based generation of whole test suitesEmpirical Software Engineering, 2014
- An orchestrated survey of methodologies for automated software test case generationJournal of Systems and Software, 2013
- Covering and Uncovering Equivalent MutantsSoftware Testing, Verification and Reliability, 2012
- AUSTIN: An open source tool for search based software testing of C programsInformation and Software Technology, 2012
- Propositional Satisfiability and Constraint ProgrammingACM Computing Surveys, 2006
- Search‐based software test data generation: a surveySoftware Testing, Verification and Reliability, 2004
- Interface Mutation: an approach for integration testingIEEE Transactions on Software Engineering, 2001
- Applicability of modified condition/decision coverage to software testingSoftware Engineering Journal, 1994
- Fisher's Exact TestJournal of the Royal Statistical Society Series A: Statistics in Society, 1992
- Automated software test data generationIEEE Transactions on Software Engineering, 1990