This PR sets up the new integrated test/bench suite. It then migrates all benchmarks and some related tests to the new suite. There's also some documentation and some linting. For now, a lot of the old tests are left alone so this PR doesn't become even larger than it already is. Eventually, all tests should be migrated to the new suite though so there isn't a confusing mix of two systems.
21 lines
464 B
Text
21 lines
464 B
Text
/-!
|
|
Regression tests for #11393 and #11389
|
|
-/
|
|
|
|
#guard_msgs in
|
|
open System in
|
|
def loadModuleContent : IO Unit := do
|
|
let lakefile : FilePath := "lakefile.lean"
|
|
|
|
if !(← lakefile.pathExists) then
|
|
IO.println "nope"
|
|
|
|
discard <| IO.Process.output {
|
|
cmd := "ls", args := #[]
|
|
}
|
|
|
|
#guard_msgs in
|
|
def test (s : String) : IO Bool := do
|
|
if s.startsWith "x" then return true
|
|
let b ← IO.Process.output {cmd := "true", args := #[]}
|
|
return b.exitCode == 0
|