Skip to content

Commit 8c6700d

Browse files
authored
Split test and bench out to separate packages (#43)
1 parent 1c43de8 commit 8c6700d

File tree

109 files changed

+353
-269
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

109 files changed

+353
-269
lines changed

.github/workflows/build.yaml

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -12,8 +12,8 @@ on:
1212
- package.yaml
1313
- stack.yaml
1414
- stack.yaml.lock
15-
- "src/**/*.hs"
16-
- "test/**/*.hs"
15+
- "bitcoin/**/*.hs"
16+
- "bitcoin-test/**/*.hs"
1717
- ".github/workflows/build.yaml"
1818
types:
1919
- synchronize
@@ -27,14 +27,13 @@ on:
2727
- package.yaml
2828
- stack.yaml
2929
- stack.yaml.lock
30-
- "src/**/*.hs"
31-
- "test/**/*.hs"
30+
- "bitcoin/**/*.hs"
31+
- "bitcoin-test/**/*.hs"
3232
- ".github/workflows/build.yaml"
3333
workflow_dispatch:
3434
inputs: {}
3535

3636
jobs:
37-
3837
build:
3938
strategy:
4039
fail-fast: false

.github/workflows/hlint.yaml

Lines changed: 9 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -12,8 +12,9 @@ on:
1212
paths:
1313
- stack.yaml
1414
- .hlint.yaml
15-
- "src/**/*.hs"
16-
- "test/**/*.hs"
15+
- "bitcoin/**/*.hs"
16+
- "bitcoin-test/**/*.hs"
17+
- "bitcoin-bench/**/*.hs"
1718
- ".github/workflows/hlint.yaml"
1819
types:
1920
- synchronize
@@ -26,8 +27,8 @@ on:
2627
paths:
2728
- stack.yaml
2829
- .hlint.yaml
29-
- "src/**/*.hs"
30-
- "test/**/*.hs"
30+
- "bitcoin/**/*.hs"
31+
- "bitcoin-test/**/*.hs"
3132
- ".github/workflows/hlint.yaml"
3233
workflow_dispatch:
3334
inputs: {}
@@ -39,14 +40,14 @@ jobs:
3940
steps:
4041
- uses: actions/checkout@v3
4142

42-
- name: 'Set up HLint'
43+
- name: "Set up HLint"
4344
uses: haskell/actions/hlint-setup@v2
4445
with:
45-
version: '3.5'
46+
version: "3.5"
4647

47-
- name: 'Run HLint'
48+
- name: "Run HLint"
4849
uses: haskell/actions/hlint-run@v2
4950
with:
5051
# For some reason this has to be a string containing JSON rather than a YAML sequence
51-
path: '[ "src/", "test/"]'
52+
path: '[ "bitcoin/", "bitcoin-test/", "bitcoin-bench/" ]'
5253
fail-on: warning
File renamed without changes.

bitcoin-bench/bitcoin-bench.cabal

Lines changed: 47 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,47 @@
1+
cabal-version: 1.12
2+
3+
-- This file has been generated from package.yaml by hpack version 0.35.0.
4+
--
5+
-- see: https://github.com/sol/hpack
6+
7+
name: bitcoin-bench
8+
version: 0.1.0
9+
synopsis: Bitcoin benchmark library for Haskell
10+
description: Please see the README on GitHub at <https://github.com/haskell-bitcoin/bitcoin#readme>
11+
category: Bitcoin, Finance, Network
12+
homepage: http://github.com/haskell-bitcoin/bitcoin#readme
13+
bug-reports: http://github.com/haskell-bitcoin/bitcoin/issues
14+
author: Philippe Laprade,
15+
Jean-Pierre Rupp,
16+
Matthew Wraith,
17+
Keagan McClelland
18+
maintainer: [email protected]
19+
license: BSD3
20+
build-type: Simple
21+
extra-source-files:
22+
./data/block-758000.dat
23+
./data/block-758100.dat
24+
./data/block-758200.dat
25+
./data/block-758300.dat
26+
./data/tx-A.dat
27+
./data/tx-B.dat
28+
./data/tx-C.dat
29+
30+
source-repository head
31+
type: git
32+
location: git://github.com/haskell-bitcoin/bitcoin.git
33+
34+
benchmark benchmark
35+
type: exitcode-stdio-1.0
36+
main-is: Main.hs
37+
other-modules:
38+
Paths_bitcoin_bench
39+
build-depends:
40+
base >=4.9 && <5
41+
, binary >=0.8.8
42+
, bitcoin
43+
, bytestring >=0.10.10.0
44+
, criterion >=1.5 && <1.7
45+
, deepseq >=1.4.4.0
46+
, text >=1.2.3.0
47+
default-language: Haskell2010
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.

0 commit comments

Comments
 (0)