forked from kaspanet/rusty-kaspa
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.test.yml
More file actions
96 lines (86 loc) · 2.54 KB
/
docker-compose.test.yml
File metadata and controls
96 lines (86 loc) · 2.54 KB
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
# Docker Compose for ML-DSA Testing
#
# Usage:
# docker-compose -f docker-compose.test.yml up mldsa-transaction-test
# docker-compose -f docker-compose.test.yml up mldsa-propagation-test
# docker-compose -f docker-compose.test.yml up all-mldsa-tests
version: '3.8'
services:
# Base service with build configuration
base:
build:
context: .
dockerfile: Dockerfile.test
image: kaspa-mldsa-test:latest
volumes:
# Mount cargo cache for faster rebuilds (optional)
- cargo-cache:/usr/local/cargo/registry
- cargo-git:/usr/local/cargo/git
environment:
- RUST_BACKTRACE=1
- RUST_LOG=info
- ENABLE_MLDSA_MASTER=1
# ML-DSA Transaction Creation and Mining Test
mldsa-transaction-test:
extends: base
command: >
cargo test -p kaspa-txscript --release
test_mldsa_transaction_creation_and_mining
-- --ignored --nocapture
# ML-DSA Transaction Propagation Test
mldsa-propagation-test:
extends: base
command: >
cargo test -p kaspa-txscript --release
test_mldsa_transaction_propagation
-- --ignored --nocapture
# All ML-DSA E2E Tests
all-mldsa-tests:
extends: base
command: >
cargo test -p kaspa-txscript --release
mldsa_transactions_e2e
-- --ignored --nocapture
# Network Integration Tests
network-tests:
extends: base
command: >
bash -c "
echo '🚀 Running Network E2E Tests' &&
./tests/network_e2e.sh
"
# All E2E Tests (ML-DSA signature tests)
e2e-comprehensive:
extends: base
command: >
cargo test -p kaspa-txscript --release
e2e_comprehensive
-- --ignored --nocapture
# All Integration Tests
all-integration-tests:
extends: base
command: >
bash -c "
echo '===== ML-DSA Unit Tests =====' &&
cargo test -p kaspa-mldsa --release &&
echo '' &&
echo '===== ML-DSA Integration Tests =====' &&
cargo test -p kaspa-txscript --release integration_mldsa -- --ignored --nocapture &&
echo '' &&
echo '===== ML-DSA E2E Comprehensive Tests =====' &&
cargo test -p kaspa-txscript --release e2e_comprehensive -- --ignored --nocapture &&
echo '' &&
echo '===== ML-DSA Transaction E2E Tests =====' &&
cargo test -p kaspa-txscript --release mldsa_transactions_e2e -- --ignored --nocapture &&
echo '' &&
echo '🎉 All tests completed!'
"
# Interactive shell for debugging
shell:
extends: base
command: /bin/bash
stdin_open: true
tty: true
volumes:
cargo-cache:
cargo-git: