Skip to content

Commit

Permalink
Fix build.gradle.kts
Browse files Browse the repository at this point in the history
  • Loading branch information
aartdem committed May 5, 2024
1 parent ed1d127 commit 7485a5c
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 8 deletions.
2 changes: 1 addition & 1 deletion work1/build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ dependencies {
implementation("org.apache.commons:commons-math3:3.6.1")
implementation("org.jetbrains.kotlinx:kotlinx-coroutines-core:1.8.0")
testImplementation("org.jetbrains.kotlinx:lincheck:2.26")
testImplementation("org.jetbrains.kotlin:kotlin-test")
testImplementation(kotlin("test"))
}

tasks.test {
Expand Down
18 changes: 11 additions & 7 deletions work1/src/test/kotlin/stack/ConcurrentStackTests.kt
Original file line number Diff line number Diff line change
Expand Up @@ -21,33 +21,37 @@ abstract class ConcurrentStackTests(private val stack: ConcurrentStack<Int>) {

@Test
fun stressTest() = StressOptions()
.sequentialSpecification(SequentialStack::class.java)
.iterations(50)
.actorsPerThread(3)
.invocationsPerIteration(1000)
.sequentialSpecification(SequentialStack::class.java)
.check(this::class)

@Test
fun fourThreadsStressTest() = StressOptions()
.sequentialSpecification(SequentialStack::class.java)
.threads(4)
.iterations(10)
.invocationsPerIteration(50)
.iterations(50)
.actorsPerThread(3)
.invocationsPerIteration(1000)
.sequentialSpecification(SequentialStack::class.java)
.check(this::class)

@Test
fun modelCheckingTest() = ModelCheckingOptions()
.sequentialSpecification(SequentialStack::class.java)
.iterations(50)
.actorsPerThread(3)
.invocationsPerIteration(1000)
.sequentialSpecification(SequentialStack::class.java)
.checkObstructionFreedom()
.check(this::class)

@Test
fun fourThreadsModelCheckingTest() = ModelCheckingOptions()
.sequentialSpecification(SequentialStack::class.java)
.threads(4)
.iterations(50)
.invocationsPerIteration(500)
.actorsPerThread(3)
.invocationsPerIteration(1000)
.sequentialSpecification(SequentialStack::class.java)
.checkObstructionFreedom()
.check(this::class)
}
Expand Down

0 comments on commit 7485a5c

Please sign in to comment.