Skip to content
This repository was archived by the owner on Mar 11, 2025. It is now read-only.

Commit 428d93b

Browse files
author
Tyera Eulberg
authored
Move program-2022 tests to new crate (#2892)
1 parent 11d9952 commit 428d93b

File tree

18 files changed

+34
-13
lines changed

18 files changed

+34
-13
lines changed

Cargo.lock

Lines changed: 12 additions & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

Cargo.toml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -31,6 +31,7 @@ members = [
3131
"token/cli",
3232
"token/program",
3333
"token/program-2022",
34+
"token/program-2022-test",
3435
"token/rust",
3536
"utils/cgen",
3637
"utils/test-client",

associated-token-account/program/Cargo.toml

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -10,15 +10,11 @@ edition = "2018"
1010
[features]
1111
no-entrypoint = []
1212
test-bpf = []
13-
# When spl-token depends on spl-token-client, which depends on this with no-entrypoint,
14-
# all tests fail! Normally, we want no-entrypoint, except when testing spl-token
15-
no-token-entrypoint = [ "spl-token/no-entrypoint" ]
16-
default = [ "no-token-entrypoint" ]
1713

1814
[dependencies]
1915
borsh = "0.9.1"
2016
solana-program = "1.9.5"
21-
spl-token = { version = "0.1", path = "../../token/program-2022", package = "spl-token-2022" }
17+
spl-token = { version = "0.1", path = "../../token/program-2022", package = "spl-token-2022", features = ["no-entrypoint"] }
2218

2319
[dev-dependencies]
2420
solana-program-test = "1.9.5"

token/program-2022-test/Cargo.toml

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
[package]
2+
authors = ["Solana Maintainers <[email protected]>"]
3+
description = "SPL-Token 2022 Integration Tests"
4+
edition = "2018"
5+
license = "Apache-2.0"
6+
name = "spl-token-2022-test"
7+
repository = "https://github.com/solana-labs/solana-program-library"
8+
version = "0.0.1"
9+
10+
[features]
11+
test-bpf = []
12+
13+
[dev-dependencies]
14+
async-trait = "0.1"
15+
solana-program-test = "=1.9.5"
16+
solana-sdk = "=1.9.5"
17+
spl-associated-token-account = { version = "1.0.5", path = "../../associated-token-account/program" }
18+
spl-token-2022 = { version = "0.1", path="../program-2022", features = ["no-entrypoint"] }
19+
spl-token-client = { version = "0.0.1", path = "../rust" }

0 commit comments

Comments
 (0)