forked from status-im/nim-eth
-
Notifications
You must be signed in to change notification settings - Fork 1
/
eth.nimble
103 lines (88 loc) · 2.13 KB
/
eth.nimble
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
version = "1.0.0"
author = "Status Research & Development GmbH"
description = "Ethereum Common library"
license = "MIT"
skipDirs = @["tests"]
requires "nim >= 0.19.0",
"nimcrypto",
"ranges",
"stint",
"byteutils",
"secp256k1",
"rocksdb",
"chronos",
"chronicles",
"std_shims",
"result",
"nat_traversal"
proc runTest(path: string) =
echo "\nRunning: ", path
exec "nim c -r -d:release -d:chronicles_log_level=ERROR --verbosity:0 --hints:off --warnings:off " & path
rmFile path
proc runKeyfileTests() =
for filename in [
"test_keyfile",
"test_uuid",
]:
runTest("tests/keyfile/" & filename)
task test_keyfile, "run keyfile tests":
runKeyfileTests()
proc runKeysTests() =
for filename in [
"test_keys",
]:
runTest("tests/keys/" & filename)
task test_keys, "run keys tests":
runKeysTests()
proc runP2pTests() =
for filename in [
"les/test_flow_control",
"test_auth",
"test_crypt",
"test_discovery",
"test_ecies",
"test_enode",
"test_shh",
"test_shh_connect",
"test_protocol_handlers",
]:
runTest("tests/p2p/" & filename)
task test_p2p, "run p2p tests":
runP2pTests()
proc runRlpTests() =
for filename in [
"test_api_usage",
"test_json_suite",
"test_object_serialization",
]:
runTest("tests/rlp/" & filename)
task test_rlp, "run rlp tests":
runRlpTests()
proc runTrieTests() =
for filename in [
"test_binaries_utils",
"test_bin_trie",
"test_branches_utils",
"test_caching_db_backend",
"test_examples",
"test_hexary_trie",
"test_json_suite",
"test_nibbles",
"test_sparse_binary_trie",
"test_storage_backends",
"test_transaction_db",
]:
runTest("tests/trie/" & filename)
task test_trie, "run trie tests":
runTrieTests()
task test, "run tests":
for filename in [
"test_bloom",
"test_common",
]:
runTest("tests/" & filename)
runKeyfileTests()
runKeysTests()
runP2pTests()
runRlpTests()
runTrieTests()