Skip to content

Commit

Permalink
Single workspace for test cases.
Browse files Browse the repository at this point in the history
  • Loading branch information
Helios-vmg committed Nov 6, 2024
1 parent 1200958 commit 41ed223
Show file tree
Hide file tree
Showing 33 changed files with 31 additions and 674 deletions.
Original file line number Diff line number Diff line change
@@ -1,8 +1,11 @@
[workspace]
exclude = [".cargo", "target"]
members = ["token-interface-events-*/*"]
exclude = [".cargo", "soroban-version", "target"]
members = ["*/*/vulnerable-example", "*/*/remediated-example"]
resolver = "2"

[workspace.package]
edition = "2021"

[workspace.dependencies]
soroban-sdk = { version = "=21.7.6" }
soroban-token-sdk = { version = "=21.7.6" }
Expand All @@ -20,4 +23,3 @@ strip = "symbols"
[profile.release-with-logs]
debug-assertions = true
inherits = "release"

21 changes: 0 additions & 21 deletions test-cases/assert-violation/Cargo.toml

This file was deleted.

21 changes: 0 additions & 21 deletions test-cases/avoid-core-mem-forget/Cargo.toml

This file was deleted.

21 changes: 0 additions & 21 deletions test-cases/avoid-panic-error/Cargo.toml

This file was deleted.

21 changes: 0 additions & 21 deletions test-cases/avoid-unsafe-block/Cargo.toml

This file was deleted.

21 changes: 0 additions & 21 deletions test-cases/divide-before-multiply/Cargo.toml

This file was deleted.

21 changes: 0 additions & 21 deletions test-cases/dos-unbounded-operation/Cargo.toml

This file was deleted.

21 changes: 0 additions & 21 deletions test-cases/dos-unexpected-revert-with-vector/Cargo.toml

This file was deleted.

21 changes: 0 additions & 21 deletions test-cases/dynamic-storage/Cargo.toml

This file was deleted.

23 changes: 0 additions & 23 deletions test-cases/front-running/Cargo.toml

This file was deleted.

21 changes: 0 additions & 21 deletions test-cases/incorrect-exponentiation/Cargo.toml

This file was deleted.

21 changes: 0 additions & 21 deletions test-cases/insufficiently-random-values/Cargo.toml

This file was deleted.

21 changes: 0 additions & 21 deletions test-cases/integer-overflow-or-underflow/Cargo.toml

This file was deleted.

21 changes: 0 additions & 21 deletions test-cases/iterators-over-indexing/Cargo.toml

This file was deleted.

Original file line number Diff line number Diff line change
@@ -1,28 +1,16 @@

[package]
edition = "2021"
name = "overflow-check-remediated-1"
version = "0.1.0"

[lib]
crate-type = ["cdylib"]

[dependencies]
soroban-sdk = { version = "=21.4.0" }
soroban-sdk = { workspace = true }

[dev-dependencies]
soroban-sdk = { version = "=21.4.0", features = ["testutils"] }
soroban-sdk = { workspace = true, features = ["testutils"] }

[features]
testutils = ["soroban-sdk/testutils"]

[profile.release]
codegen-units = 1
debug = 0
debug-assertions = false
lto = true
opt-level = "z"
overflow-checks = true
panic = "abort"
strip = "symbols"

[profile.release-with-logs]
debug-assertions = true
inherits = "release"
Original file line number Diff line number Diff line change
@@ -1,28 +1,16 @@

[package]
edition = "2021"
name = "overflow-check-vulnerable-1"
version = "0.1.0"

[lib]
crate-type = ["cdylib"]

[dependencies]
soroban-sdk = { version = "=21.4.0" }
soroban-sdk = { workspace = true }

[dev-dependencies]
soroban-sdk = { version = "=21.4.0", features = ["testutils"] }
soroban-sdk = { workspace = true, features = ["testutils"] }

[features]
testutils = ["soroban-sdk/testutils"]

[profile.release]
codegen-units = 1
debug = 0
debug-assertions = false
lto = true
opt-level = "z"
overflow-checks = false
panic = "abort"
strip = "symbols"

[profile.release-with-logs]
debug-assertions = true
inherits = "release"
21 changes: 0 additions & 21 deletions test-cases/set-contract-storage/Cargo.toml

This file was deleted.

Loading

0 comments on commit 41ed223

Please sign in to comment.