Skip to content

Commit 3d3726d

Browse files
committed
[ ci ] all the tests require text?
1 parent b544933 commit 3d3726d

File tree

3 files changed

+3
-58
lines changed

3 files changed

+3
-58
lines changed

tests/_config/template.cabal

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,7 @@ common common-build-parameters
1515

1616
build-depends:
1717
base >= 4.12 && < 4.20
18+
, text >= 2.0 && <2.2
1819

1920
ghc-options: -Wno-missing-home-modules
2021

tests/data/appending/appending.cabal

Lines changed: 0 additions & 26 deletions
This file was deleted.

tests/data/appending/run

Lines changed: 2 additions & 32 deletions
Original file line numberDiff line numberDiff line change
@@ -1,32 +1,2 @@
1-
TEST_NAME=appending
2-
3-
# Use the shared version numbers
4-
. ../../_config/version-numbers.sh
5-
6-
# Specialise template agda-lib
7-
sed "s/TEST_NAME/$TEST_NAME/g" ../../_config/template.agda-lib > "$TEST_NAME".agda-lib
8-
9-
# Set up clean logs directory
10-
rm -rf logs/
11-
mkdir logs
12-
13-
# Use shared directories to avoid rechecking stdlib modules
14-
AGDA_BUILD_DIR=../../_config/_build
15-
CABAL_BUILD_DIR=../../_config/dist-newstyle
16-
17-
mkdir -p "$AGDA_BUILD_DIR"
18-
ln -sf "$AGDA_BUILD_DIR" _build
19-
mkdir -p "$CABAL_BUILD_DIR"
20-
ln -sf "$CABAL_BUILD_DIR" dist-newstyle
21-
22-
# Compile the Agda module and build the generated code
23-
$1 --library-file ../../_config/libraries --compile-dir=_build -c --ghc-dont-call-ghc Main.agda > logs/agda-build
24-
cabal build "$TEST_NAME" --with-compiler "$GHC_EXEC" > logs/cabal-build
25-
26-
# Run the test
27-
cabal exec -v0 "$TEST_NAME" --with-compiler "$GHC_EXEC" < input > output
28-
29-
# Clean up after ourselves
30-
rm "$TEST_NAME".agda-lib
31-
rm -R dist-newstyle
32-
rm -R _build/MAlonzo/Code/
1+
. ../../_config/config.sh
2+
goldenTest $1 "appending"

0 commit comments

Comments
 (0)