Skip to content

Commit

Permalink
Group tests by directory
Browse files Browse the repository at this point in the history
  • Loading branch information
madman-bob committed Sep 1, 2023
1 parent c346519 commit a51da70
Show file tree
Hide file tree
Showing 2,504 changed files with 1,912 additions and 2,324 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/ci-idris2.yml
Original file line number Diff line number Diff line change
Expand Up @@ -483,7 +483,7 @@ jobs:
run: make install-api
shell: bash
- name: Test API
run: cd tests/idris2/api001 && ./run idris2
run: cd tests/idris2/api/api001 && ./run idris2
shell: bash

######################################################################
Expand Down
439 changes: 115 additions & 324 deletions tests/Main.idr

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion tests/chez/barrier001/Main.idr
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,6 @@ main = do
putStrLn "Hello"
barrierWait barrier
putStrLn "Goodbye"
for threadIDs $ \threadID =>
for_ threadIDs $ \threadID =>
threadWait threadID
sleep 1
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
6 changes: 6 additions & 0 deletions tests/idris2/api/api001/run
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
. ../../../testutils.sh

idris2 -p idris2 -p contrib -p network LazyCodegen.idr -o lazy-idris2
./build/exec/lazy-idris2 --cg lazy Hello.idr -o hello > output
diff expected output
cmp -n 15 expected output
6 changes: 0 additions & 6 deletions tests/idris2/api001/run

This file was deleted.

File renamed without changes.
File renamed without changes.
File renamed without changes.
3 changes: 3 additions & 0 deletions tests/idris2/basic/basic001/run
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
. ../../../testutils.sh

idris2 --no-prelude Vect.idr < input
File renamed without changes.
File renamed without changes.
File renamed without changes.
3 changes: 3 additions & 0 deletions tests/idris2/basic/basic002/run
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
. ../../../testutils.sh

idris2 --no-prelude Do.idr < input
File renamed without changes.
File renamed without changes.
File renamed without changes.
4 changes: 4 additions & 0 deletions tests/idris2/basic/basic003/run
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
. ../../../testutils.sh

echo ':q' | idris2 --no-prelude Ambig1.idr
echo ':q' | idris2 --no-prelude Ambig2.idr
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
3 changes: 3 additions & 0 deletions tests/idris2/basic/basic004/run
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
. ../../../testutils.sh

idris2 --no-prelude Wheres.idr < input
File renamed without changes.
File renamed without changes.
3 changes: 3 additions & 0 deletions tests/idris2/basic/basic005/run
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
. ../../../testutils.sh

echo ':q' | idris2 --no-prelude NoInfer.idr
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
3 changes: 3 additions & 0 deletions tests/idris2/basic/basic006/run
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
. ../../../testutils.sh

idris2 --no-prelude PMLet.idr < input
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
3 changes: 3 additions & 0 deletions tests/idris2/basic/basic007/run
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
. ../../../testutils.sh

idris2 --no-prelude DoLocal.idr < input
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
3 changes: 3 additions & 0 deletions tests/idris2/basic/basic008/run
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
. ../../../testutils.sh

idris2 --no-prelude If.idr < input
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
3 changes: 3 additions & 0 deletions tests/idris2/basic/basic009/run
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
. ../../../testutils.sh

idris2 --no-prelude LetCase.idr < input
File renamed without changes.
File renamed without changes.
File renamed without changes.
3 changes: 3 additions & 0 deletions tests/idris2/basic/basic010/run
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
. ../../../testutils.sh

idris2 --no-prelude Comp.idr < input
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
5 changes: 5 additions & 0 deletions tests/idris2/basic/basic011/run
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
. ../../../testutils.sh

check Dots1.idr
check Dots2.idr
check Dots3.idr
File renamed without changes.
File renamed without changes.
3 changes: 3 additions & 0 deletions tests/idris2/basic/basic012/run
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
. ../../../testutils.sh

check VIndex.idr
File renamed without changes.
File renamed without changes.
3 changes: 3 additions & 0 deletions tests/idris2/basic/basic013/run
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
. ../../../testutils.sh

check Implicits.idr
File renamed without changes.
File renamed without changes.
3 changes: 3 additions & 0 deletions tests/idris2/basic/basic014/run
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
. ../../../testutils.sh

check Rewrite.idr
File renamed without changes.
File renamed without changes.
3 changes: 3 additions & 0 deletions tests/idris2/basic/basic015/run
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
. ../../../testutils.sh

check George.idr
File renamed without changes.
File renamed without changes.
File renamed without changes.
4 changes: 4 additions & 0 deletions tests/idris2/basic/basic016/run
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
. ../../../testutils.sh

check Eta.idr
check Eta2.idr
File renamed without changes.
File renamed without changes.
File renamed without changes.
3 changes: 3 additions & 0 deletions tests/idris2/basic/basic017/run
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
. ../../../testutils.sh

idris2 CaseInf.idr < input
File renamed without changes.
File renamed without changes.
3 changes: 3 additions & 0 deletions tests/idris2/basic/basic018/run
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
. ../../../testutils.sh

check Fin.idr
File renamed without changes.
File renamed without changes.
File renamed without changes.
3 changes: 3 additions & 0 deletions tests/idris2/basic/basic019/run
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
. ../../../testutils.sh

idris2 CaseBlock.idr < input
File renamed without changes.
File renamed without changes.
File renamed without changes.
3 changes: 3 additions & 0 deletions tests/idris2/basic/basic020/run
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
. ../../../testutils.sh

idris2 Mut.idr < input
File renamed without changes.
File renamed without changes.
File renamed without changes.
3 changes: 3 additions & 0 deletions tests/idris2/basic/basic021/run
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
. ../../../testutils.sh

idris2 CaseDep.idr < input
File renamed without changes.
File renamed without changes.
File renamed without changes.
3 changes: 3 additions & 0 deletions tests/idris2/basic/basic022/run
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
. ../../../testutils.sh

idris2 Erase.idr < input
File renamed without changes.
File renamed without changes.
File renamed without changes.
3 changes: 3 additions & 0 deletions tests/idris2/basic/basic023/run
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
. ../../../testutils.sh

idris2 Params.idr < input
File renamed without changes.
File renamed without changes.
File renamed without changes.
3 changes: 3 additions & 0 deletions tests/idris2/basic/basic024/run
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
. ../../../testutils.sh

idris2 PatLam.idr < input
File renamed without changes.
File renamed without changes.
3 changes: 3 additions & 0 deletions tests/idris2/basic/basic025/run
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
. ../../../testutils.sh

idris2 < input
File renamed without changes.
File renamed without changes.
3 changes: 3 additions & 0 deletions tests/idris2/basic/basic026/run
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
. ../../../testutils.sh

check Erl.idr
File renamed without changes.
File renamed without changes.
3 changes: 3 additions & 0 deletions tests/idris2/basic/basic027/run
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
. ../../../testutils.sh

check Temp.idr
File renamed without changes.
File renamed without changes.
File renamed without changes.
5 changes: 5 additions & 0 deletions tests/idris2/basic/basic028/run
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
. ../../../testutils.sh

unset IDRIS2_PATH

idris2 --no-prelude < input
File renamed without changes.
File renamed without changes.
File renamed without changes.
3 changes: 3 additions & 0 deletions tests/idris2/basic/basic029/run
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
. ../../../testutils.sh

idris2 Params.idr < input
File renamed without changes.
File renamed without changes.
3 changes: 3 additions & 0 deletions tests/idris2/basic/basic030/run
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
. ../../../testutils.sh

check arity.idr
File renamed without changes.
File renamed without changes.
3 changes: 3 additions & 0 deletions tests/idris2/basic/basic031/run
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
. ../../../testutils.sh

check erased.idr
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
4 changes: 4 additions & 0 deletions tests/idris2/basic/basic032/run
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
. ../../../testutils.sh

idris2 Idiom.idr < input
check Idiom2.idr
File renamed without changes.
3 changes: 3 additions & 0 deletions tests/idris2/basic/basic033/run
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
. ../../../testutils.sh

check unboundimps.idr
File renamed without changes.
File renamed without changes.
File renamed without changes.
3 changes: 3 additions & 0 deletions tests/idris2/basic/basic034/run
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
. ../../../testutils.sh

check lets.idr
File renamed without changes.
File renamed without changes.
3 changes: 3 additions & 0 deletions tests/idris2/basic/basic035/run
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
. ../../../testutils.sh

idris2 using.idr < input
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
3 changes: 3 additions & 0 deletions tests/idris2/basic/basic036/run
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
. ../../../testutils.sh

idris2 defimp.idr < input
File renamed without changes.
File renamed without changes.
File renamed without changes.
4 changes: 4 additions & 0 deletions tests/idris2/basic/basic037/run
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
. ../../../testutils.sh

echo ':q' | idris2 --no-prelude Comments.idr
echo ':q' | idris2 Issue279.idr
File renamed without changes.
File renamed without changes.
File renamed without changes.
3 changes: 3 additions & 0 deletions tests/idris2/basic/basic038/run
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
. ../../../testutils.sh

idris2 Resugar.idr < input
File renamed without changes.
File renamed without changes.
File renamed without changes.
3 changes: 3 additions & 0 deletions tests/idris2/basic/basic039/run
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
. ../../../testutils.sh

idris2 Main.idr < input
File renamed without changes.
File renamed without changes.
3 changes: 3 additions & 0 deletions tests/idris2/basic/basic040/run
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
. ../../../testutils.sh

echo ":q" | idris2 Default.idr
File renamed without changes.
File renamed without changes.
3 changes: 3 additions & 0 deletions tests/idris2/basic/basic041/run
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
. ../../../testutils.sh

check QDo.idr
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
4 changes: 4 additions & 0 deletions tests/idris2/basic/basic042/run
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
. ../../../testutils.sh

idris2 LiteralsString.idr < input
idris2 LiteralsInteger.idr < input2
File renamed without changes.
File renamed without changes.
File renamed without changes.
3 changes: 3 additions & 0 deletions tests/idris2/basic/basic043/run
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
. ../../../testutils.sh

idris2 BitCasts.idr < input
File renamed without changes.
File renamed without changes.
File renamed without changes.
8 changes: 8 additions & 0 deletions tests/idris2/basic/basic044/run
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
. ../../../testutils.sh

echo ":q" | idris2 --log unify.equal:10 --log unify:5 Term.idr \
| sed -E "s/[0-9]+}/N}/g" | sed -E "s/resolved([0-9]+)/resolvedN/g" \
| sed -E "s/case in ([0-9]+)/case in N/g" | sed -E "s/[0-9]+:[0-9]+/L:C/g"
echo ":q" | idris2 --log unify:3 --log elab.ambiguous:5 Vec.idr \
| sed -E "s/[0-9]+}/N}/g" | sed -E "s/resolved([0-9]+)/resolvedN/g" \
| sed -E "s/case in ([0-9]+)/case in N/g" | sed -E "s/[0-9]+:[0-9]+/L:C/g"
File renamed without changes.
File renamed without changes.
3 changes: 3 additions & 0 deletions tests/idris2/basic/basic045/run
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
. ../../../testutils.sh

check Main.idr
File renamed without changes.
File renamed without changes.
File renamed without changes.
3 changes: 3 additions & 0 deletions tests/idris2/basic/basic046/run
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
. ../../../testutils.sh

idris2 TupleSections.idr < input
File renamed without changes.
File renamed without changes.
File renamed without changes.
3 changes: 3 additions & 0 deletions tests/idris2/basic/basic047/run
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
. ../../../testutils.sh

idris2 InterleavingLets.idr < input
File renamed without changes.
File renamed without changes.
File renamed without changes.
3 changes: 3 additions & 0 deletions tests/idris2/basic/basic049/run
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
. ../../../testutils.sh

idris2 Fld.idr < input
File renamed without changes.
File renamed without changes.
File renamed without changes.
3 changes: 3 additions & 0 deletions tests/idris2/basic/basic050/run
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
. ../../../testutils.sh

idris2 Ilc.idr < input
File renamed without changes.
File renamed without changes.
3 changes: 3 additions & 0 deletions tests/idris2/basic/basic051/run
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
. ../../../testutils.sh

check Issue833.idr
File renamed without changes.
File renamed without changes.
File renamed without changes.
3 changes: 3 additions & 0 deletions tests/idris2/basic/basic052/run
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
. ../../../testutils.sh

idris2 DoubleClBrace.idr < input
File renamed without changes.
File renamed without changes.
3 changes: 3 additions & 0 deletions tests/idris2/basic/basic053/run
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
. ../../../testutils.sh

idris2 UnderscoredIntegerLiterals.idr < input
File renamed without changes.
File renamed without changes.
3 changes: 3 additions & 0 deletions tests/idris2/basic/basic054/run
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
. ../../../testutils.sh

run Issue1023.idr
File renamed without changes.
File renamed without changes.
3 changes: 3 additions & 0 deletions tests/idris2/basic/basic055/run
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
. ../../../testutils.sh

run BitOps.idr
File renamed without changes.
File renamed without changes.
3 changes: 3 additions & 0 deletions tests/idris2/basic/basic056/run
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
. ../../../testutils.sh

run DoubleLit.idr
File renamed without changes.
File renamed without changes.
3 changes: 3 additions & 0 deletions tests/idris2/basic/basic057/run
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
. ../../../testutils.sh

check LetIn.idr
File renamed without changes.
File renamed without changes.
File renamed without changes.
4 changes: 4 additions & 0 deletions tests/idris2/basic/basic058/run
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
. ../../../testutils.sh

check DataTypeOp.idr
check DataTypeProj.idr
File renamed without changes.
File renamed without changes.
3 changes: 3 additions & 0 deletions tests/idris2/basic/basic059/run
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
. ../../../testutils.sh

check MultiClaim.idr
File renamed without changes.
File renamed without changes.
File renamed without changes.
3 changes: 3 additions & 0 deletions tests/idris2/basic/basic060/run
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
. ../../../testutils.sh

idris2 Snoc.idr < input
File renamed without changes.
File renamed without changes.
File renamed without changes.
3 changes: 3 additions & 0 deletions tests/idris2/basic/basic061/run
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
. ../../../testutils.sh

idris2 IgnoreDo.idr < input
File renamed without changes.
File renamed without changes.
3 changes: 3 additions & 0 deletions tests/idris2/basic/basic062/run
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
. ../../../testutils.sh

check Issue1943.idr
File renamed without changes.
File renamed without changes.
File renamed without changes.
3 changes: 3 additions & 0 deletions tests/idris2/basic/basic063/run
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
. ../../../testutils.sh

idris2 NoDeclaration.idr < input
File renamed without changes.
File renamed without changes.
File renamed without changes.
3 changes: 3 additions & 0 deletions tests/idris2/basic/basic064/run
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
. ../../../testutils.sh

idris2 Issue2072.idr < input
File renamed without changes.
File renamed without changes.
3 changes: 3 additions & 0 deletions tests/idris2/basic/basic065/run
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
. ../../../testutils.sh

check Issue215.idr
File renamed without changes.
File renamed without changes.
3 changes: 3 additions & 0 deletions tests/idris2/basic/basic066/run
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
. ../../../testutils.sh

check comment.idr
File renamed without changes.
File renamed without changes.
8 changes: 8 additions & 0 deletions tests/idris2/basic/basic067/run
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
. ../../../testutils.sh

echo "unclosed1.idr"
idris2 unclosed1.idr < input
echo "unclosed2.idr"
idris2 unclosed2.idr < input
echo "unclosed3.idr"
idris2 unclosed3.idr < input
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
3 changes: 3 additions & 0 deletions tests/idris2/basic/basic068/run
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
. ../../../testutils.sh

run Issue2138.idr
File renamed without changes.
File renamed without changes.
3 changes: 3 additions & 0 deletions tests/idris2/basic/basic069/run
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
. ../../../testutils.sh

run DebugInfo.idr
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
6 changes: 6 additions & 0 deletions tests/idris2/basic/basic070/run
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
. ../../../testutils.sh

check Issue3016.idr
check Issue2782.idr
check Issue2592.idr
check Issue2593.idr
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
3 changes: 3 additions & 0 deletions tests/idris2/basic/dotted001/run
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
. ../../../testutils.sh

idris2 -c Issue2726.idr
File renamed without changes.
File renamed without changes.
3 changes: 3 additions & 0 deletions tests/idris2/basic/idiom001/run
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
. ../../../testutils.sh

run Main.idr
File renamed without changes.
3 changes: 3 additions & 0 deletions tests/idris2/basic/interpolation001/run
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
. ../../../testutils.sh

check --alt-error-count 10 IfThenElse.idr
File renamed without changes.
3 changes: 3 additions & 0 deletions tests/idris2/basic/interpolation002/run
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
. ../../../testutils.sh

idris2 --exec test StringLiteral.idr
File renamed without changes.
File renamed without changes.
File renamed without changes.
3 changes: 3 additions & 0 deletions tests/idris2/basic/interpolation003/run
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
. ../../../testutils.sh

idris2 Test.idr < input
File renamed without changes.
3 changes: 3 additions & 0 deletions tests/idris2/basic/interpolation004/run
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
. ../../../testutils.sh

check StringLiteral.idr
File renamed without changes.
File renamed without changes.
File renamed without changes.
Loading

0 comments on commit a51da70

Please sign in to comment.