Skip to content
This repository was archived by the owner on Nov 22, 2022. It is now read-only.

Commit 2c73f86

Browse files
authored
Merge pull request #1 from amaissen/amaissen/add-test-suite-for-adt-plugin
Add own test suite for ADT plugin
2 parents 748faf1 + d2c5578 commit 2c73f86

1 file changed

Lines changed: 31 additions & 0 deletions

File tree

Lines changed: 31 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,31 @@
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-2021 ETH Zurich.
6+
7+
8+
package viper.silicon.tests
9+
10+
import viper.silicon.Silicon
11+
import viper.silver.reporter.NoopReporter
12+
13+
14+
class AdtPluginTests extends SiliconTests {
15+
16+
override val testDirectories: Seq[String] = Seq("adt")
17+
18+
override val silicon: Silicon = {
19+
val reporter = NoopReporter
20+
val debugInfo = ("startedBy" -> "viper.silicon.AdtPluginTests") :: Nil
21+
new Silicon(reporter, debugInfo)
22+
}
23+
24+
override def verifiers = List(silicon)
25+
26+
override def configureVerifiersFromConfigMap(configMap: Map[String, Any]): Unit = {
27+
val newConfigMap = configMap.updated("silicon:plugin", "viper.silver.plugin.standard.adt.AdtPlugin")
28+
super.configureVerifiersFromConfigMap(newConfigMap)
29+
}
30+
31+
}

0 commit comments

Comments
 (0)