1
1
2
-
3
2
[private ]
4
3
default :
5
4
@ just --list --unsorted --color=always
@@ -19,33 +18,38 @@ build-nightly-arm: (_build "nightly" "arm64" "linux/arm64" "arm64")
19
18
run :
20
19
docker run -v $PWD/ test:/ volume -w / volume -it rustmusl-temp / bin/ bash
21
20
21
+ # Build test runner
22
22
test-setup :
23
23
docker build -t test-runner . -f Dockerfile.test-runner
24
24
25
25
# Test an individual crate against built container
26
26
_ t crate :
27
- just {{ ENVIRON_FN }} {{ crate}}
27
+ . / test.sh {{ crate}}
28
28
29
- # poor man's environment detection for a man with 2 machines
30
- ENVIRON_FN := if os () == " macos" { " _t_arm" } else { " _t_amd" }
31
- # when running locally use one of these instead of _t
32
- _ t_amd crate :
29
+ # Test an individual crate locally using env vars set by _t_amd or t_arm
30
+ _ ti crate :
31
+ # poor man's environment multiplex
32
+ just _t_{{ os () }} _{{ arch () }} {{ crate}}
33
+
34
+ # when running locally we can use one of these instead of _t
35
+ _ t_linux_amd64 crate :
33
36
#!/ bin/ bash
34
37
export PLATFORM=" linux/amd64"
35
38
export TARGET_DIR=" x86_64-unknown-linux-musl"
36
39
export AR=" amd64"
37
40
./ test.sh {{ crate}}
38
- _ t_arm crate :
41
+ _ t_macos_aarch64 crate :
39
42
#!/ bin/ bash
40
43
export PLATFORM=" linux/arm64"
41
44
export TARGET_DIR=" aarch64-unknown-linux-musl"
42
45
export AR=" arm64"
43
46
./ test.sh {{ crate}}
44
47
45
-
46
- # Test all crates against built container
48
+ # Test all crates against built container locally
49
+ test : (_ti " plain" ) (_ti " ssl" ) (_ti " rustls" ) (_ti " pq" ) (_ti " serde" ) (_ti " zlib" ) (_ti " hyper" ) (_ti " dieselpg" ) (_ti " dieselsqlite" )
50
+ # Test all crates against built container in ci (inheriting set PLATFORM/TARGET_DIR/AR vars)
51
+ test-ci : (_t " plain" ) (_t " ssl" ) (_t " rustls" ) (_t " pq" ) (_t " serde" ) (_t " zlib" ) (_t " hyper" ) (_t " dieselpg" ) (_t " dieselsqlite" )
47
52
# NB: taken out curl for #96 and build issuse
48
- test : (_t " plain" ) (_t " ssl" ) (_t " rustls" ) (_t " pq" ) (_t " serde" ) (_t " zlib" ) (_t " hyper" ) (_t " dieselpg" ) (_t " dieselsqlite" )
49
53
50
54
# Cleanup everything
51
55
clean : clean -docker clean -tests
0 commit comments