Skip to content

Commit

Permalink
Added logging to test in XcfaAnalysis
Browse files Browse the repository at this point in the history
  • Loading branch information
leventeBajczi committed Jul 25, 2023
1 parent ed15da5 commit 2b09097
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 16 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -59,6 +59,7 @@ class XcfaAnalysisTest {
@ParameterizedTest
@MethodSource("data")
fun testNoporExpl(filepath: String, verdict: (SafetyResult<*, *>) -> Boolean) {
println("Testing NOPOR on $filepath...")
val stream = javaClass.getResourceAsStream(filepath)
val xcfa = getXcfaFromC(stream!!, ParseContext(), false, false).first

Expand Down Expand Up @@ -101,6 +102,7 @@ class XcfaAnalysisTest {
@ParameterizedTest
@MethodSource("data")
fun testSporExpl(filepath: String, verdict: (SafetyResult<*, *>) -> Boolean) {
println("Testing SPOR on $filepath...")
val stream = javaClass.getResourceAsStream(filepath)
val xcfa = getXcfaFromC(stream!!, ParseContext(), false, false).first

Expand Down Expand Up @@ -143,6 +145,7 @@ class XcfaAnalysisTest {
@ParameterizedTest
@MethodSource("data")
fun testDporExpl(filepath: String, verdict: (SafetyResult<*, *>) -> Boolean) {
println("Testing DPOR on $filepath...")
val stream = javaClass.getResourceAsStream(filepath)
val xcfa = getXcfaFromC(stream!!, ParseContext(), false, false).first

Expand Down Expand Up @@ -184,6 +187,7 @@ class XcfaAnalysisTest {
@ParameterizedTest
@MethodSource("data")
fun testAasporExpl(filepath: String, verdict: (SafetyResult<*, *>) -> Boolean) {
println("Testing AASPOR on $filepath...")
val stream = javaClass.getResourceAsStream(filepath)
val xcfa = getXcfaFromC(stream!!, ParseContext(), false, false).first

Expand Down Expand Up @@ -227,7 +231,7 @@ class XcfaAnalysisTest {
@ParameterizedTest
@MethodSource("data")
fun testAadporExpl(filepath: String, verdict: (SafetyResult<*, *>) -> Boolean) {
if (filepath.contains("multithread")) return // TODO: why does it fail to verify?
println("Testing AADPOR on $filepath...")
val stream = javaClass.getResourceAsStream(filepath)
val xcfa = getXcfaFromC(stream!!, ParseContext(), false, false).first

Expand Down

This file was deleted.

0 comments on commit 2b09097

Please sign in to comment.