Skip to content

Commit 2f9a5a3

Browse files
committed
[ fix ] various escaping things
1 parent f8c17d4 commit 2f9a5a3

File tree

24 files changed

+29
-24
lines changed

24 files changed

+29
-24
lines changed

tests/Makefile

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,3 +15,8 @@ test: ./runtests
1515

1616
retest: ./runtests
1717
./runtests "$(AGDA)" $(INTERACTIVE) --timing --failure-file failures --only-file failures --only $(only)
18+
19+
clean:
20+
rm -rf runtests
21+
rm -rf _config/_build
22+
rm -rf _config/dist-newstyle

tests/_config/config.sh

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ set -eu
1515
goldenTest () {
1616

1717
AGDA=$1
18-
TEST_NAME=$2
18+
TEST_NAME="stdlib-test-$2"
1919

2020
# Remember whether the script has an input -- ugh
2121
if [ -f input ]; then
@@ -43,7 +43,7 @@ goldenTest () {
4343
ln -sf "$CABAL_BUILD_DIR" dist-newstyle
4444

4545
# Compile the Agda module and build the generated code
46-
"$AGDA" --library-file=../../_config/libraries --compile-dir=_build -c --ghc-dont-call-ghc Main.agda > logs/agda-build
46+
$AGDA --library-file=../../_config/libraries --compile-dir=_build -c --ghc-dont-call-ghc Main.agda > logs/agda-build
4747
cabal build "$TEST_NAME" --with-compiler "$GHC_EXEC" > logs/cabal-build
4848

4949
# Run the test

tests/data/appending/TakeWhile.agda

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ import Data.Nat
1313
open import Relation.Unary
1414
open import Relation.Binary.PropositionalEquality as P using (_≡_)
1515
open import Relation.Nullary
16-
open import Relation.Nullary.Product
16+
open import Relation.Nullary.Decidable
1717

1818
-- Original bug reported in #1765 by James Wood
1919
_ : Appending (3 ∷ []) (2 ∷ []) (32 ∷ [])

tests/data/appending/run

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,2 @@
11
. ../../_config/config.sh
2-
goldenTest $1 "appending"
2+
goldenTest "$1" "appending"

tests/data/colist/run

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,2 @@
11
. ../../_config/config.sh
2-
goldenTest $1 "colist"
2+
goldenTest "$1" "colist"

tests/data/list/run

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,2 @@
11
. ../../_config/config.sh
2-
goldenTest $1 "list"
2+
goldenTest "$1" "list"
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,2 @@
11
. ../../_config/config.sh
2-
goldenTest $1 "rational-unnormalised"
2+
goldenTest "$1" "rational-unnormalised"

tests/data/rational/run

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,2 @@
11
. ../../_config/config.sh
2-
goldenTest $1 "rational"
2+
goldenTest "$1" "rational"

tests/data/trie/run

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,2 @@
11
. ../../_config/config.sh
2-
goldenTest $1 "trie"
2+
goldenTest "$1" "trie"

tests/monad/counting/run

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,2 @@
11
. ../../_config/config.sh
2-
goldenTest $1 "counting"
2+
goldenTest "$1" "counting"

0 commit comments

Comments
 (0)