-
Notifications
You must be signed in to change notification settings - Fork 3
/
Copy pathMakefile
28 lines (22 loc) · 970 Bytes
/
Makefile
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
CODESIGN=codesign
CARGO=cargo
CARGO_NIGHTLY=$(CARGO) +nightly
ENTITLEMENTS=entitlements.xml
TARGET=applevisor
TARGET_DEBUG=target/debug/$(TARGET)
TARGET_RELEASE=target/release/$(TARGET)
.PHONY: build-tests tests build-tests-nightly tests-nightly
build-tests:
$(CARGO) test --no-run
$(CODESIGN) --sign - --entitlements "$(ENTITLEMENTS)" --deep --force \
$(shell $(CARGO) test --no-run --message-format=json | \
jq -r "select(.profile.test == true) | .filenames[]")
tests: build-tests
$(CARGO) test --tests -- --nocapture --test-threads=1
build-tests-nightly:
$(CARGO_NIGHTLY) test --features=simd_nightly --no-run
$(CODESIGN) --sign - --entitlements "$(ENTITLEMENTS)" --deep --force \
$(shell $(CARGO_NIGHTLY) test --features=simd_nightly --no-run --message-format=json | \
jq -r "select(.profile.test == true) | .filenames[]")
tests-nightly: build-tests-nightly
$(CARGO_NIGHTLY) test --tests --features=simd_nightly -- --nocapture --test-threads=1