Skip to content

Commit

Permalink
Remove haskell backend test infrastructure (#735)
Browse files Browse the repository at this point in the history
All the tests were converted to rust tests located in src/canister_tests/src/tests.rs.
  • Loading branch information
frederikrothenberger committed Jul 12, 2022
1 parent 7d866b2 commit 46c1db6
Show file tree
Hide file tree
Showing 14 changed files with 7 additions and 953 deletions.
49 changes: 0 additions & 49 deletions .github/workflows/canister-tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -180,55 +180,6 @@ jobs:
env:
RUST_BACKTRACE: 1

#####################
# The backend tests #
#####################

backend:
runs-on: ${{ matrix.os }}
needs: docker-build
strategy:
matrix:
os: [ ubuntu-latest, macos-latest ]
env:
GHC_VERSION: 8.8.4

steps:
- uses: actions/checkout@v2

- name: Cache ~/.cabal/store
uses: actions/cache@v2
with:
path: |
~/.cabal/store
key: cabal-${{ runner.os }}-${{ env.GHC_VERSION }}-${{ hashFiles('backend-tests/cabal.project', 'backend-tests//cabal.project.freeze') }}
restore-keys: cabal-${{ runner.os }}-${{ env.GHC_VERSION }}-

- uses: actions/setup-haskell@v1.1.3
with:
ghc-version: ${{ env.GHC_VERSION }}
cabal-version: "3.2"

- name: Build test runner
working-directory: backend-tests
run: |
cabal update
# we cannot use `cabal install` because the build is performed in
# another directory which breaks the relative path used in
# backend-tests.hs to internet_identity.did
cabal build --with-ghc ghc-${{ env.GHC_VERSION }}
- name: 'Download wasm'
uses: actions/download-artifact@v2
with:
name: internet_identity_test.wasm
path: .

- name: Run Tests
shell: bash
working-directory: backend-tests
run: mv ../internet_identity_test.wasm ../internet_identity.wasm && cabal run

######################
# The selenium tests #
######################
Expand Down
1 change: 0 additions & 1 deletion backend-tests/.gitignore

This file was deleted.

54 changes: 0 additions & 54 deletions backend-tests/Prometheus.hs

This file was deleted.

52 changes: 0 additions & 52 deletions backend-tests/README.md

This file was deleted.

42 changes: 0 additions & 42 deletions backend-tests/backend-tests.cabal

This file was deleted.

Loading

0 comments on commit 46c1db6

Please sign in to comment.