mirror of
https://github.com/leanprover/lean4.git
synced 2026-03-17 10:24:07 +00:00
Also refactor util.sh in the process, so test scripts become easier to write (inspired in part by lake's test suite).
19 lines
593 B
Bash
Executable File
19 lines
593 B
Bash
Executable File
#!/usr/bin/env bash
|
|
source ../../env_test.sh
|
|
|
|
# This test covers importing modules which are defined in multiple packages
|
|
# (with the same original package name).
|
|
|
|
./clean.sh
|
|
run lake resolve-deps
|
|
|
|
# Test that importing a module with multiple identical candidates works
|
|
run lake build Test.ImportSame
|
|
|
|
# Test that importing a module with multiple sufficiently similar candidates works
|
|
run lake build Test.ImportSimilar
|
|
|
|
# Test that importing a module with multiple distinct candidates fails
|
|
capture_fail lake build Test.ImportDiff
|
|
check_out_contains 'could not disambiguate the module `Diff`'
|