Skip to content

Commit 3fe86f2

Browse files
committed
reduces changeset, improves SymbExLogger unit tests to rely on subset behavior
1 parent a55b75a commit 3fe86f2

7 files changed

Lines changed: 2 additions & 44 deletions

File tree

.gitignore

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,5 +21,5 @@ lib/
2121
silver
2222
src/test/resources/symbExLogTests/*.alog
2323
.DS_Store
24-
viper_tutorial_examples/
24+
viper_tutorial_examples
2525
.bsp/

src/main/resources/logback.xml

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,3 @@
1-
<!-- This Source Code Form is subject to the terms of the Mozilla Public -->
2-
<!-- License, v. 2.0. If a copy of the MPL was not distributed with this -->
3-
<!-- file, You can obtain one at http://mozilla.org/MPL/2.0/. -->
4-
<!-- -->
5-
<!-- Copyright (c) 2011-2019 ETH Zurich. -->
6-
71
<!--
82
~ This Source Code Form is subject to the terms of the Mozilla Public
93
~ License, v. 2.0. If a copy of the MPL was not distributed with this

src/main/scala/Silicon.scala

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,6 @@ package viper.silicon
99
import java.nio.file.Paths
1010
import java.text.SimpleDateFormat
1111
import java.util.concurrent.{Callable, Executors, TimeUnit, TimeoutException}
12-
1312
import scala.collection.immutable.ArraySeq
1413
import scala.util.{Left, Right}
1514
import ch.qos.logback.classic.{Level, Logger}

src/main/scala/rules/Brancher.scala

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,6 @@
77
package viper.silicon.rules
88

99
import java.util.concurrent._
10-
1110
import viper.silicon.common.concurrency._
1211
import viper.silicon.interfaces.{Unreachable, VerificationResult}
1312
import viper.silicon.logger.SymbExLogger

src/main/scala/verifier/DefaultMasterVerifier.scala

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,6 @@ package viper.silicon.verifier
88

99
import java.text.SimpleDateFormat
1010
import java.util.concurrent._
11-
1211
import scala.annotation.unused
1312
import scala.collection.mutable
1413
import scala.util.Random

src/test/resources/symbExLogTests/testLogConfig.json

Lines changed: 0 additions & 27 deletions
This file was deleted.

src/test/scala/SymbExLoggerTests.scala

Lines changed: 1 addition & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -19,12 +19,7 @@ import viper.silver.frontend.{DefaultStates, Frontend}
1919
import viper.silver.reporter.NoopReporter
2020

2121
class SymbExLoggerTests extends SilSuite {
22-
/** directory containing test files */
2322
val testDirectories = Seq("symbExLogTests")
24-
/**
25-
* config file specifying what should be logged by the SymbExLogger.
26-
* note that only a subset of records is collected to improve robustness of the tests */
27-
val logConfigFile = "symbExLogTests/testLogConfig.json"
2823

2924
override def frontend(verifier: Verifier, files: Seq[Path]): Frontend = {
3025
require(files.length == 1, "tests should consist of exactly one file")
@@ -71,8 +66,7 @@ class SymbExLoggerTests extends SilSuite {
7166
Seq(
7267
"--timeout", "300" /* seconds */,
7368
"--disableCaching", "--ideModeAdvanced",
74-
"--numberOfParallelVerifiers", "1",
75-
"--logConfig", getTestDirPath(logConfigFile).toString)
69+
"--numberOfParallelVerifiers", "1")
7670
}
7771

7872
class SiliconFrontendWithUnitTesting(path: Path) extends SiliconFrontend(NoopReporter) {

0 commit comments

Comments
 (0)