Skip to content

Commit

Permalink
fix existing package discovery in tests
Browse files Browse the repository at this point in the history
  • Loading branch information
mattpolzin committed Dec 16, 2024
1 parent e227910 commit e8bee99
Show file tree
Hide file tree
Showing 4 changed files with 40 additions and 0 deletions.
10 changes: 10 additions & 0 deletions tests/idris2/pkg/pkg006/run
Original file line number Diff line number Diff line change
@@ -1,7 +1,17 @@
. ../../../testutils.sh

TTC_VERSION="$(idris2 --ttc-version)"

for folder in ./depends/*; do
mkdir -p "${folder}/${TTC_VERSION}"
done

idris2 --build test1.ipkg
idris2 --build test2.ipkg
idris2 --build test3.ipkg
idris2 --build test4.ipkg
idris2 --build test5.ipkg

for folder in ./depends/*; do
rmdir "${folder}/${TTC_VERSION}"
done
10 changes: 10 additions & 0 deletions tests/idris2/pkg/pkg013/run
Original file line number Diff line number Diff line change
@@ -1,3 +1,13 @@
. ../../../testutils.sh

TTC_VERSION="$(idris2 --ttc-version)"

for folder in ./depends/*; do
mkdir -p "${folder}/${TTC_VERSION}"
done

idris2 --build test.ipkg --log package.depends:10 | filter_test_dir

for folder in ./depends/*; do
rmdir "${folder}/${TTC_VERSION}"
done
10 changes: 10 additions & 0 deletions tests/idris2/pkg/pkg014/run
Original file line number Diff line number Diff line change
@@ -1,3 +1,13 @@
. ../../../testutils.sh

TTC_VERSION="$(idris2 --ttc-version)"

for folder in ./depends/*; do
mkdir -p "${folder}/${TTC_VERSION}"
done

idris2 --build test.ipkg --log package.depends:10 | filter_test_dir

for folder in ./depends/*; do
rmdir "${folder}/${TTC_VERSION}"
done
10 changes: 10 additions & 0 deletions tests/idris2/pkg/pkg015/run
Original file line number Diff line number Diff line change
@@ -1,3 +1,13 @@
. ../../../testutils.sh

TTC_VERSION="$(idris2 --ttc-version)"

for folder in ./depends/*; do
mkdir -p "${folder}/${TTC_VERSION}"
done

idris2 --build test.ipkg --log package.depends:10

for folder in ./depends/*; do
rmdir "${folder}/${TTC_VERSION}"
done

0 comments on commit e8bee99

Please sign in to comment.