Skip to content

Commit

Permalink
add test that exercises new installdir command
Browse files Browse the repository at this point in the history
  • Loading branch information
mattpolzin committed Sep 11, 2024
1 parent 2560acb commit 1787664
Show file tree
Hide file tree
Showing 4 changed files with 24 additions and 0 deletions.
2 changes: 2 additions & 0 deletions tests/idris2/pkg/pkg020/expected
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
/idris2-0.7.0/test-0.3.0
/idris2-0.7.0
9 changes: 9 additions & 0 deletions tests/idris2/pkg/pkg020/run
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
. ../../../testutils.sh

# pretend Idris2 is installed at root for reproducible
# installdirs:
IDRIS2_PREFIX=/ idris2 --dump-installdir test.ipkg

# by contrast, the location containing all installed packages:
IDRIS2_PREFIX=/ idris2 --libdir

5 changes: 5 additions & 0 deletions tests/idris2/pkg/pkg020/src/Stuff.idr
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
module Stuff

export
say : String
say = "Stuff"
8 changes: 8 additions & 0 deletions tests/idris2/pkg/pkg020/test.ipkg
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
package test
version = 0.3.0

-- modules to install
modules = Stuff

sourcedir = "src"

0 comments on commit 1787664

Please sign in to comment.