Query-Driven Program Testing

被引:0
|
作者
Holzer, Andreas [1 ]
Schallhart, Christian [1 ]
Tautschnig, Michael [1 ]
Veith, Helmut [1 ]
机构
[1] Tech Univ Darmstadt, FB Informat, Formal Methods Syst Engn, Darmstadt, Germany
关键词
TEST COVERAGE;
D O I
暂无
中图分类号
TP301 [理论、方法];
学科分类号
081202 ;
摘要
We present a new approach to program testing which enables the programmer to specify test suites in terms of a versatile query language. Our query language subsumes standard coverage criteria ranging from simple basic block coverage all the way to predicate complete coverage and multiple condition coverage, but also facilitates on-the-fly requests for test suites specific to the code structure, to external requirements, or to ad hoc needs arising in program understanding/exploration. The query language is supported by a model checking backend which employs the CBMC framework. Our main algorithmic contribution is a method called iterative constraint strengthening which enables us to solve a query for an arbitrary coverage criterion by a single call to the model checker and a novel form of incremental SAT solving: Whenever the SAT solver finds a solution, our algorithm compares this solution against the coverage criterion, and strengthens the clause database with additional clauses which exclude redundant new solutions. We demonstrate the scalability of our approach and its ability to compute compact test suites with experiments involving device drivers, automotive controllers, and open source projects.
引用
收藏
页码:151 / 166
页数:16
相关论文
共 50 条
  • [1] Query-driven Constraint Acquisition
    Bessiere, Christian
    Coletta, Remi
    O'Sullivan, Barry
    Paulin, Mathias
    [J]. 20TH INTERNATIONAL JOINT CONFERENCE ON ARTIFICIAL INTELLIGENCE, 2007, : 50 - 55
  • [2] Query-Driven Graph Processing
    Bonifati, Angela
    [J]. COMPANION PROCEEDINGS OF THE WEB CONFERENCE 2022, WWW 2022 COMPANION, 2022, : 311 - 312
  • [3] A Query-Driven Topic Model
    Fang, Zheng
    He, Yulan
    Procter, Rob
    [J]. FINDINGS OF THE ASSOCIATION FOR COMPUTATIONAL LINGUISTICS, ACL-IJCNLP 2021, 2021, : 1764 - 1777
  • [4] Progressive Query-Driven Entity Resolution
    Zecchini, Luca
    [J]. SIMILARITY SEARCH AND APPLICATIONS, SISAP 2021, 2021, 13058 : 395 - 401
  • [5] Query-driven Qualitative Constraint Acquisition
    Belaid, Mohamed-Bachir
    Belmecheri, Nassim
    Gotlieb, Arnaud
    Lazaar, Nadjib
    Spieker, Helge
    [J]. JOURNAL OF ARTIFICIAL INTELLIGENCE RESEARCH, 2024, 79 : 241 - 271
  • [6] Snicket: Query-Driven Distributed Tracing
    Berg, Jessica
    Ruffy, Fabian
    Khanh Nguyen
    Yang, Nicholas
    Kim, Taegyun
    Sivaraman, Anirudh
    Netravali, Ravi
    Narayana, Srinivas
    [J]. PROCEEDINGS OF THE THE 20TH ACM WORKSHOP ON HOT TOPICS IN NETWORKS, HOTNETS 2021, 2021, : 206 - 212
  • [7] Autonomous query-driven index tuning
    Sattler, KU
    Schallehn, E
    Geist, I
    [J]. INTERNATIONAL DATABASE ENGINEERING AND APPLICATIONS SYMPOSIUM, PROCEEDINGS, 2004, : 439 - 448
  • [8] Query-Driven Approach to Entity Resolution
    Altwaijry, Hotham
    Kalashnikov, Dmitri V.
    Mehrotra, Sharad
    [J]. PROCEEDINGS OF THE VLDB ENDOWMENT, 2013, 6 (14): : 1846 - 1857
  • [9] Variable interactions in query-driven visualization
    Gosink, Luke J.
    Anderson, John C.
    Bethel, E. Wes
    Joy, Kenneth I.
    [J]. IEEE TRANSACTIONS ON VISUALIZATION AND COMPUTER GRAPHICS, 2007, 13 (06) : 1400 - 1407
  • [10] Query-driven Qualitative Constraint Acquisition
    Belaid, Mohamed-Bachir
    Belmecheri, Nassim
    Gotlieb, Arnaud
    Lazaar, Nadjib
    Spieker, Helge
    [J]. Journal of Artificial Intelligence Research, 2024, 79 : 241 - 271