Skip to content

Commit

Permalink
"targets" test honors compat
Browse files Browse the repository at this point in the history
  • Loading branch information
00vareladavid committed Nov 24, 2019
1 parent a56f3bd commit a3b67eb
Show file tree
Hide file tree
Showing 4 changed files with 30 additions and 0 deletions.
8 changes: 8 additions & 0 deletions test/new.jl
Original file line number Diff line number Diff line change
Expand Up @@ -228,6 +228,14 @@ end
@test deps[UUID("c86f0f68-174e-41db-bd5e-b032223de205")].version == v"1.2.3"
end
end end
isolate(loaded_depot=false) do; mktempdir() do tempdir
path = copy_test_package(tempdir, "TestTargetCompat")
Pkg.activate(path)
inside_test_sandbox() do
deps = Pkg.dependencies()
@test deps[exuuid].version == v"0.3.0"
end
end end
end

#
Expand Down
13 changes: 13 additions & 0 deletions test/test_packages/TestTargetCompat/Project.toml
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
name = "TestTargetCompat"
uuid = "35eb4107-c6fc-4419-a960-db40ac6ea1fa"
authors = ["David Varela <[email protected]>"]
version = "0.1.0"

[compat]
Example = "= 0.3.0"

[extras]
Example = "7876af07-990d-54b4-ab0e-23690620f79a"

[targets]
test = ["Example"]
5 changes: 5 additions & 0 deletions test/test_packages/TestTargetCompat/src/TestTargetCompat.jl
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
module TestTargetCompat

greet() = print("Hello World!")

end # module
4 changes: 4 additions & 0 deletions test/test_packages/TestTargetCompat/test/runtests.jl
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
module Runtests
import Example

end

0 comments on commit a3b67eb

Please sign in to comment.