Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
65 commits
Select commit Hold shift + click to select a range
adf2413
fix: some modification to make a code compilable
shotonoff Apr 25, 2023
a180c09
fix: some modification to make a code compilable
shotonoff Apr 26, 2023
4827482
fix: some modification to make a code compilable
shotonoff Apr 27, 2023
15ffcb8
fix: some modification to make a code compilable
shotonoff Apr 27, 2023
bd38419
fix: some modification to make a code compilable
shotonoff Apr 27, 2023
7d86910
fix: some modification to make a code compilable
shotonoff Apr 27, 2023
6c71853
fix: some modification to make a code compilable
shotonoff Apr 27, 2023
a2e56a4
fix: some modification to make a code compilable
shotonoff Apr 27, 2023
0966879
fix: some modification to make a code compilable
shotonoff Apr 28, 2023
27e954e
fix: some modification to make a code compilable
shotonoff Apr 28, 2023
bceb96b
fix: some modification to make a code compilable
shotonoff May 4, 2023
07aebf2
fix: p2tr_from_untweaked
shotonoff May 5, 2023
780e3b3
fix: some failed tests
shotonoff May 9, 2023
5196654
fix: some failed tests
shotonoff May 11, 2023
a07e9cc
fix: some failed tests
shotonoff May 11, 2023
7395d89
fix: some failed tests
shotonoff May 11, 2023
ef377a7
fix: some failed tests
shotonoff May 11, 2023
87d4fc7
fix: some failed tests
shotonoff May 11, 2023
d81d540
fix: some failed tests
shotonoff May 12, 2023
e13d04a
chore: add contrib
shotonoff May 12, 2023
31878cb
chore: moved fuzz
shotonoff May 12, 2023
182b046
fix: wip
shotonoff May 15, 2023
8e256c6
fix: wip
shotonoff May 15, 2023
e845878
fix: wip
shotonoff May 15, 2023
635877f
fix: wip
shotonoff May 16, 2023
09cd1c0
fix: wip
shotonoff May 16, 2023
b05cda3
fix: wip
shotonoff May 16, 2023
79be056
fix: wip
shotonoff May 16, 2023
6781039
fix: wip
shotonoff May 17, 2023
eed609c
fix: wip
shotonoff May 17, 2023
84b1e20
fix: wip
shotonoff May 17, 2023
c385793
fix: wip
shotonoff May 17, 2023
9a51b4f
chore: update fuzz crate
shotonoff May 17, 2023
3a7ca00
chore: replace bitcoin on dash
shotonoff May 17, 2023
aa8de7c
chore: remove experimental feature
shotonoff May 17, 2023
f1ff058
chore: update fuzz
shotonoff May 17, 2023
fb5ed2a
fix: remove experimental attributes
shotonoff May 17, 2023
5d77311
fix: update rust.yml Embedded
shotonoff May 17, 2023
2f658ce
fix: wip
shotonoff May 17, 2023
577452b
fix: wip
shotonoff May 17, 2023
e3a1b58
fix: wip
shotonoff May 19, 2023
3352b27
fix: wip
shotonoff May 19, 2023
a1b1f2c
fix: wip
shotonoff May 19, 2023
91eba33
fix: wip
shotonoff May 19, 2023
15baf32
fix: wip
shotonoff May 22, 2023
c2afde9
fix: wip
shotonoff May 22, 2023
fd47f4b
fix: wip
shotonoff May 22, 2023
a87484a
fix: wip
shotonoff May 22, 2023
2939155
fix: wip
shotonoff May 22, 2023
14e8e3d
fix: wip
shotonoff May 22, 2023
d1d1495
fix: wip
shotonoff May 22, 2023
b96e278
fix: wip
shotonoff May 22, 2023
93e772f
fix: wip
shotonoff May 24, 2023
24e614e
woop
fominok May 24, 2023
d48969b
wip
fominok May 24, 2023
d1b5a22
wip
fominok May 24, 2023
c9eaf60
fix: wip
shotonoff May 25, 2023
d118480
fix: wip
shotonoff May 25, 2023
f8cd335
fix: wip
shotonoff May 25, 2023
ce269d1
fix: wip
shotonoff May 25, 2023
06d5cbb
fix: wip
shotonoff May 25, 2023
653ebb5
fix: backport feat/addons
shotonoff May 25, 2023
e50e295
fix: backport feat/addons
shotonoff May 25, 2023
5e47da8
fix: add missing docs
shotonoff May 25, 2023
14bee72
fix: wip
shotonoff May 26, 2023
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
The table of contents is too big for display.
Diff view
Diff view
  •  
  •  
  •  
38 changes: 31 additions & 7 deletions .github/workflows/fuzz.yml
Original file line number Diff line number Diff line change
@@ -1,16 +1,41 @@
# Automatically generated by fuzz/generate-files.sh
name: Fuzz

on: [push, pull_request]
on:
push:
branches:
- master
- 'test-ci/**'
pull_request:

jobs:

fuzz:
if: ${{ !github.event.act }}
runs-on: ubuntu-20.04
strategy:
fail-fast: false
matrix:
fuzz_target: [deser_net_msg, deserialize_address, deserialize_amount, deserialize_block, deserialize_psbt, deserialize_script, deserialize_transaction, deserialize_witness, outpoint_string, uint128_fuzz, script_bytes_to_asm_fmt]
fuzz_target: [
dash_outpoint_string,
dash_deserialize_amount,
# TODO fix the inputs placed in fuzz/hfuzz_input/deserialize_transaction/input
# dash_deserialize_transaction,
dash_deser_net_msg,
dash_deserialize_address,
dash_script_bytes_to_asm_fmt,
dash_deserialize_prefilled_transaction,
dash_deserialize_witness,
dash_deserialize_psbt,
dash_deserialize_block,
dash_deserialize_script,
hashes_json,
hashes_cbor,
hashes_sha256,
hashes_ripemd160,
hashes_sha512_256,
hashes_sha512,
hashes_sha1,
]
steps:
- name: Install test dependencies
run: sudo apt-get update -y && sudo apt-get install -y binutils-dev libunwind8-dev libcurl4-openssl-dev libelf-dev libdw-dev cmake gcc libiberty-dev
Expand All @@ -29,8 +54,8 @@ jobs:
override: true
profile: minimal
- name: fuzz
run: cd fuzz && ./travis-fuzz.sh "${{ matrix.fuzz_target }}"
- run: echo "${{ matrix.fuzz_target }}.rs" >executed_${{ matrix.fuzz_target }}
run: cd fuzz && ./fuzz.sh "${{ matrix.fuzz_target }}"
- run: echo "${{ matrix.fuzz_target }}" >executed_${{ matrix.fuzz_target }}
- uses: actions/upload-artifact@v2
with:
name: executed_${{ matrix.fuzz_target }}
Expand All @@ -46,5 +71,4 @@ jobs:
- name: Display structure of downloaded files
run: ls -R
- run: find executed_* -type f -exec cat {} + | sort > executed
- run: ls fuzz/fuzz_targets | sort > expected
- run: diff expected executed
- run: source ./fuzz/fuzz-util.sh && listTargetNames | sort | diff - executed
47 changes: 25 additions & 22 deletions .github/workflows/rust.yml
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,8 @@ jobs:
DO_NO_STD: true
- rust: nightly
env:
DO_BENCH: true
# TODO: running with DO_BENCH: true causes the test to fail
# DO_BENCH: true
AS_DEPENDENCY: true
DO_NO_STD: true
DO_DOCS: true
Expand Down Expand Up @@ -61,24 +62,26 @@ jobs:
- name: run cross test
run: cross test --target s390x-unknown-linux-gnu

Embedded:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v2
- name: Set up QEMU
run: sudo apt update && sudo apt install -y qemu-system-arm gcc-arm-none-eabi
- name: Checkout Toolchain
uses: actions-rs/toolchain@v1
with:
profile: minimal
toolchain: nightly
override: true
components: rust-src
target: thumbv7m-none-eabi
- name: Run
env:
RUSTFLAGS: "-C link-arg=-Tlink.x"
CARGO_TARGET_THUMBV7M_NONE_EABI_RUNNER: "qemu-system-arm -cpu cortex-m3 -machine mps2-an385 -nographic -semihosting-config enable=on,target=native -kernel"
run: cd embedded && cargo run --target thumbv7m-none-eabi

# TODO: need to fix the ability to run the embedded tests
# Embedded:
# runs-on: ubuntu-latest
# env:
# RUSTFLAGS: "-C link-arg=-Tlink.x"
# CARGO_TARGET_THUMBV7M_NONE_EABI_RUNNER: "qemu-system-arm -cpu cortex-m3 -machine mps2-an385 -nographic -semihosting-config enable=on,target=native -kernel"
# steps:
# - name: Checkout
# uses: actions/checkout@v3
# - name: Set up QEMU
# run: sudo apt update && sudo apt install -y qemu-system-arm gcc-arm-none-eabi
# - name: Checkout Toolchain
# uses: dtolnay/rust-toolchain@nightly
# with:
# targets: thumbv7m-none-eabi
# - name: Install src
# run: rustup component add rust-src
# - name: Run dash/embedded
# run: cd dash/embedded && cargo run --target thumbv7m-none-eabi
# - name: Run hashes/embedded no alloc
# run: cd hashes/embedded && cargo run --target thumbv7m-none-eabi
# - name: Run hashes/embedded with alloc
# run: cd hashes/embedded && cargo run --target thumbv7m-none-eabi --features=alloc
Loading