Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Migrate unit tests to satysfi-test #144

Merged
merged 39 commits into from
Apr 7, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
39 commits
Select commit Hold shift + click to select a range
e8ac4fe
GH-142: Migrate unit tests for Ref
zeptometer Feb 13, 2021
bbf142a
GH-142: Migrate unit tests for String
zeptometer Feb 13, 2021
63dd2d9
GH-142: Move test files to test
zeptometer Feb 13, 2021
423a49c
GH-142: Add a dependency to satysfi-test
zeptometer Feb 13, 2021
e08eadb
GH-142: Set up CI
zeptometer Feb 13, 2021
fd35f60
GH-142: Ignore report.txt
zeptometer Feb 13, 2021
28966cb
GH-142: Split test cases into files based on modules
zeptometer Feb 13, 2021
f49e166
GH-142: Migrate unit tests for List module
zeptometer Feb 13, 2021
f693b92
GH-142: Migrate unit tests for Array
zeptometer Feb 15, 2021
2ce4157
GH-142: Migrate unit tests for RegExp module
zeptometer Feb 17, 2021
5a35c5c
GH-142: Fix EOF
zeptometer Feb 17, 2021
13ad8bd
GH-142: Fix type definition of Pair.eq
zeptometer Feb 19, 2021
6714931
GH-142: Fix indent of String
zeptometer Feb 19, 2021
0e3ff5d
GH-142: Migrate test cases for Int module
zeptometer Mar 1, 2021
d6f8cf9
GH-142: Migrate added test cases of String
zeptometer Mar 2, 2024
ab9d894
GH-142: Migrate added tests of List
zeptometer Mar 2, 2024
46d02a8
GH-142: Migrate added tests of Array
zeptometer Mar 2, 2024
6a21bb6
GH-142: Migrate added tests of Int
zeptometer Mar 3, 2024
ee635a9
GH-142: Refine tests of Regex
zeptometer Mar 3, 2024
02dd6d5
GH-142: Migrate tests of Parser
zeptometer Mar 3, 2024
ce75934
GH-142: Add tests of Lexer
zeptometer Mar 3, 2024
f8fd339
GH-142: Migrate tests of Map
zeptometer Mar 3, 2024
fda0b82
GH-142: Migrate test cases of Color
zeptometer Mar 3, 2024
328585f
GH-142: Migrate test cases of Promise
zeptometer Mar 3, 2024
7b27027
GH-142: Migrate test cases of Float
zeptometer Mar 4, 2024
f2c674a
GH-142: Migrate test cases of Stream
zeptometer Mar 4, 2024
6d323f9
GH-142: Migrate test cases of Bool
zeptometer Mar 4, 2024
61cab62
GH-142: Migrate test cases of Fn
zeptometer Mar 4, 2024
b2a171c
GH-142: Migrate tests of TreeSet
zeptometer Mar 4, 2024
9c5717f
GH-142: Migrate tests of TreeMap
zeptometer Mar 4, 2024
c0fc5eb
GH-142: Migrate tests of BigInt
zeptometer Mar 5, 2024
ccbdbac
GH-142: Rename test sets
zeptometer Mar 5, 2024
c68b5f6
GH-142: Remove js-based snapshot tests for compiler output
zeptometer Mar 5, 2024
cef6fb6
GH-142: WIP: Fix ci
zeptometer Mar 5, 2024
ab86134
GH-142: Run unit tests for satysfi >= 0.0.5
zeptometer Mar 5, 2024
0f1106b
GH-142: Upload report only on failure
zeptometer Mar 5, 2024
e1a8190
GH-142: Fix config for regression tests in CI
zeptometer Mar 5, 2024
a526552
GH-142: Pin satysfi version in CI
zeptometer Mar 5, 2024
236aab2
GH-142: Drop support of satysfi:0.0.5
zeptometer Mar 5, 2024
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
42 changes: 40 additions & 2 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,45 @@ name: CI
on: [push, pull_request]

jobs:
unit-test:
name: unit tests
runs-on: ubuntu-latest
strategy:
matrix:
version: [
0.0.6,
0.0.7,
0.0.8,
0.0.9-6-ge0304803,
0.0.10,
0.0.11
]
container:
image: amutake/satysfi:${{ matrix.version }}
steps:
- uses: actions/checkout@v1
- name: Install Satyrographos dependencies
run: |
export HOME=/root
eval $(opam env)
opam update
opam pin add satysfi ${{ matrix.version }}
opam pin add satysfi-base.opam "file://${PWD}"
satyrographos install -l base
- name: Run tests
run: |
export HOME=/root
eval $(opam env)
cd test && sh run-test.sh -v
- if: always()
name: Install Apt dependencies
run: apt-get update && apt-get install -y xz-utils liblzma-dev
- if: ${{ failure() }}
name: Upload artifact
uses: actions/upload-artifact@master
with:
name: satysfi-test-report-${{ matrix.version }}
path: test/report.txt
regression-test:
name: Regression tests
runs-on: ubuntu-latest
Expand All @@ -12,7 +51,6 @@ jobs:
matrix:
satysfi-version:
[
0.0.5,
0.0.6,
0.0.7,
]
Expand All @@ -26,7 +64,7 @@ jobs:
eval $(opam env)
opam update
opam pin add satysfi ${{ matrix.satysfi-version }}
opam pin add --verbose --yes "."
opam pin add satysfi-base.opam "file://${PWD}"
satyrographos install -l base
- name: Run regression tests
run: |
Expand Down
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -2,3 +2,4 @@ __test__/satysrc/*.pdf
*.satysfi-aux
node_modules
*~
report.txt
2 changes: 1 addition & 1 deletion Satyristes
Original file line number Diff line number Diff line change
Expand Up @@ -6,4 +6,4 @@
((packageDir "src")
))
(opam "satysfi-base.opam")
(dependencies ((fonts-dejavu ()))))
(dependencies ((fonts-dejavu ()) (test ()))))
Loading