-
Notifications
You must be signed in to change notification settings - Fork 250
[ new ] golden testing framework #1518
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
Merged
Merged
Changes from all commits
Commits
Show all changes
84 commits
Select commit
Hold shift + click to select a range
dbc1ad3
[ new ] System.Clock
gallais a0af28f
[ cleanup ] Thin System.Exit.Primitive's dependencies
gallais 4296a0e
[ new ] various IO utility functions
gallais 5f40d59
[ cleanup ] make lift′ available to everyone
gallais ff61450
[ more ] Exit code conversion function
gallais 8b4e676
[ new ] System.Process
gallais e5f21ca
[ new ] tests for exit codes
gallais ac56119
[ new ] golden testing framework
gallais b653654
[ cosmetic ] nicer printing of timing
gallais 2051198
[ new ] System.FilePath.Posix
gallais 02c5e4f
[ new ] System.Directory
gallais a0e92be
[ new ] System.Directory.Tree
gallais 6e6f3c7
[ fix ] missing files & missing unsafe declarations
gallais 01a1b13
[ fix ] checking filepaths exist before opening
gallais c240c44
[ revert ] the addition of System.Directory.Tree
gallais e9999b2
[ more ] flipped IO monad combinators
gallais f2b83d1
[ new ] test suite for the stdlib
gallais d10c95b
[ test ] new test for showing rose trees
gallais eeb7093
[ test ] new test showing nums
gallais fa7b6aa
[ cosmetic ] change package names
gallais 9df96f0
[ fix ] exit codes can be negative
gallais bee453c
[ caching ] use a shared `--compile-dir` for all tests
gallais 9467206
[ fix ] no need for sized types in the num case
gallais 6067858
[ fix ] better matches!
gallais 4bb0ba7
[ fix ] caching mechanism
gallais 8688aae
[ test ] for regular expression matcher!
gallais 8b25aff
[ fix ] even better matches!
gallais 79eb43c
[ fix ] better regex example & logging for building phase
gallais f47971e
[ cleanup ] drop the numeric suffixes
gallais e634081
[ admin ] ignore log files
gallais c6be7fc
[ test ] for reflection machinery
gallais 4139438
[ cleanup ] remove more numeric suffixes
gallais 934d9b3
[ test ] for tabular primitives
gallais 936a4be
[ test ] for printf
gallais e861b3e
[ test ] for sytem environment
gallais 26d4296
[ more ] dependencies to force more module compilations :D
gallais 9a6ca32
[ cosmetic ] drop the 100th of seconds
gallais ac461f8
[ test ] for zipper & sort
gallais 530525a
[ more ] chaotic nats
gallais f623406
[ test ] for Trie (and AVL trees too)
gallais 56a2c91
[ test ] for colist
gallais 241bf54
[ test ] more dependencies for the colist example
gallais 0d60499
[ ci ] run the testsuite
gallais 678876b
[ fix ] ignore missing runtests
gallais bd2ae47
Merge branch 'master' into testing
gallais a7ed768
[ ci ] run golden tests before the HTML generation
gallais 7035025
[ ci ] explicitly pass the PATH & add clock dependency
gallais c85d922
[ ci ] install dependencies first
gallais 0f45017
make ->
gallais 74a889a
try v1-install
gallais a3925c2
drop overwrite with v1-install
gallais 33bff62
[ ci ] trying "install --lib"
gallais c99f59a
[ revert ] bad changes
gallais 870913a
[ cleanup ] System.Clock
gallais d4c246c
[ format ] put `public' first
gallais 150e4e1
[ doc ] explaining the use of coerce
gallais b3f36f8
[ cleanup ] whitespace in System.Process.Primitive
gallais cc42689
[ cleanup ] remove ASCII arrows
gallais 0accb4d
[ doc ] change name to match the record field
gallais bee04ff
[ cosmetic ] indent nested with
gallais 26f2917
[ ci ] move golden test after typechecking test
gallais d8adaf0
[ ci ] support for INTERACTIVE
gallais ebc257e
[ fix ] make test more robust by sorting directory names
gallais 610c447
[ fix ] bug in the option parser
gallais 7b70015
[ new ] test for pretty printer
gallais de27986
Merge branch 'master' into testing
gallais 4076ff1
[ fix ] update expected output
gallais da99cb9
[ fix ] Agda stdlib uses lowercase names for constructors
gallais de76a08
[ cleanup ] use Agda.Builtin.IO
gallais 3a24887
[ new ] define and use ANSI escape codes
gallais c5eee77
[ cleanup ] spacing
gallais 36a4f3f
[ more ] ANSI codes & test case for it!
gallais 0859cf4
[ ci ] use 2.6.2 for integration
gallais c938e52
[ GNUmakefile ] Updated a comment.
asr 7c049e5
[ .gitignore ] Added `.stack-work` directory.
asr bb562ed
Tested with GHC 8.10.5.
asr a35c9f2
[ ci ] GHC 8.10.5 is not supported yet when using `haskell-ci`.
asr 2410cab
Fix CHANGELOG entry
MatthewDaggitt 2cf869f
Add algebra morphism identity and composition constructions (#1502)
Taneb 0fefd23
Setup admin-y things for next version
MatthewDaggitt fed2299
[ new ] add --no-colour flag
gallais 74800f0
Merge branch 'master' into testing
gallais e6ca792
[ changelog ] document the changes
gallais 7e44e3f
Merge branch 'master' into testing
MatthewDaggitt File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -68,12 +68,12 @@ jobs: | |
if [[ '${{ github.ref }}' == 'refs/heads/master' \ | ||
|| '${{ github.base_ref }}' == 'master' ]]; then | ||
# Pick Agda version for master | ||
echo "AGDA_COMMIT=tags/v2.6.1.3.20210524" >> $GITHUB_ENV; | ||
echo "AGDA_COMMIT=tags/v2.6.2" >> $GITHUB_ENV; | ||
echo "AGDA_HTML_DIR=html" >> $GITHUB_ENV | ||
elif [[ '${{ github.ref }}' == 'refs/heads/experimental' \ | ||
|| '${{ github.base_ref }}' == 'experimental' ]]; then | ||
# Pick Agda version for experimental | ||
echo "AGDA_COMMIT=tags/v2.6.1.3.20210524" >> $GITHUB_ENV; | ||
echo "AGDA_COMMIT=tags/v2.6.2" >> $GITHUB_ENV; | ||
echo "AGDA_HTML_DIR=html/experimental" >> $GITHUB_ENV | ||
fi | ||
|
||
|
@@ -130,7 +130,7 @@ jobs: | |
cd .. | ||
|
||
######################################################################## | ||
## TESTING AND DEPLOYMENT | ||
## TESTING | ||
######################################################################## | ||
|
||
# By default github actions do not pull the repo | ||
|
@@ -139,13 +139,22 @@ jobs: | |
|
||
- name: Test stdlib | ||
run: | | ||
${{ env.CABAL_INSTALL }} agda-stdlib-utils.cabal | ||
cabal run GenerateEverything | ||
cp travis/* . | ||
./index.sh | ||
${{ env.AGDA }} --safe EverythingSafe.agda | ||
${{ env.AGDA }} index.agda | ||
|
||
- name: Golden testing | ||
run: | | ||
${{ env.CABAL_INSTALL }} --lib clock | ||
make testsuite INTERACTIVE='' AGDA_EXEC='~/.cabal/bin/agda' | ||
|
||
|
||
######################################################################## | ||
## DOC DEPLOYMENT | ||
######################################################################## | ||
|
||
# We start by retrieving the currently deployed docs | ||
# We remove the content that is in the directory we are going to populate | ||
# so that stale files corresponding to deleted modules do not accumulate. | ||
|
@@ -157,25 +166,11 @@ jobs: | |
rm -f '${{ env.AGDA_HTML_DIR }}'/*.css | ||
${{ env.AGDA }} --html --html-dir ${{ env.AGDA_HTML_DIR }} index.agda | ||
|
||
# This is a massive hack at the moment | ||
# - name: Compile stdlib | ||
# run: | | ||
# ${{ env.AGDA }} -c --no-main --ghc-dont-call-ghc --compile-dir=tmp Everything.agda | ||
# cd tmp | ||
# yes | cabal init --interactive | ||
# head -n -17 tmp.cabal > tmp | ||
# mv tmp tmp.cabal | ||
# cat ../travis/ghc-options >> tmp.cabal | ||
# cabal build | ||
|
||
## ${{ env.AGDA }} -c README/Foreign/Haskell.agda && ./Haskell | ||
|
||
|
||
- name: Deploy HTML | ||
uses: JamesIves/[email protected] | ||
if: ${{ success() && env.AGDA_DEPLOY }} | ||
|
||
with: | ||
branch: gh-pages | ||
folder: html | ||
git-config-name: Github Actions | ||
git-config-name: Github Actions |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
------------------------------------------------------------------------ | ||
-- The Agda standard library | ||
-- | ||
-- Showing unnormalised rational numbers | ||
------------------------------------------------------------------------ | ||
|
||
{-# OPTIONS --without-K --safe #-} | ||
|
||
module Data.Rational.Unnormalised.Show where | ||
|
||
import Data.Integer.Show as ℤ | ||
open import Data.Rational.Unnormalised.Base | ||
open import Data.String.Base using (String; _++_) | ||
|
||
show : ℚᵘ → String | ||
show p = ℤ.show (↥ p) ++ "/" ++ ℤ.show (↧ p) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.