mirror of
https://github.com/asterinas/asterinas.git
synced 2025-06-09 13:26:48 +00:00
Update OSDK testing behaviors in the Makefile and the CI
This commit is contained in:
parent
d91573248c
commit
d809a26a2f
10
.github/workflows/test_osdk.yml
vendored
10
.github/workflows/test_osdk.yml
vendored
@ -40,10 +40,7 @@ jobs:
|
|||||||
# So the RUSTUP_HOME needs to be set here.
|
# So the RUSTUP_HOME needs to be set here.
|
||||||
- name: Unit test
|
- name: Unit test
|
||||||
id: unit_test
|
id: unit_test
|
||||||
run: |
|
run: RUSTUP_HOME=/root/.rustup make test_osdk
|
||||||
cd osdk
|
|
||||||
RUSTUP_HOME=/root/.rustup cargo build
|
|
||||||
RUSTUP_HOME=/root/.rustup cargo test
|
|
||||||
|
|
||||||
osdk-test-tdx:
|
osdk-test-tdx:
|
||||||
if: github.event_name == 'schedule'
|
if: github.event_name == 'schedule'
|
||||||
@ -74,7 +71,4 @@ jobs:
|
|||||||
# So the RUSTUP_HOME needs to be set here.
|
# So the RUSTUP_HOME needs to be set here.
|
||||||
- name: Unit test
|
- name: Unit test
|
||||||
id: unit_test
|
id: unit_test
|
||||||
run: |
|
run: RUSTUP_HOME=/root/.rustup INTEL_TDX=1 make test_osdk
|
||||||
cd osdk
|
|
||||||
RUSTUP_HOME=/root/.rustup INTEL_TDX=1 cargo build
|
|
||||||
RUSTUP_HOME=/root/.rustup INTEL_TDX=1 cargo test
|
|
||||||
|
20
Makefile
20
Makefile
@ -140,6 +140,16 @@ install_osdk:
|
|||||||
$(CARGO_OSDK):
|
$(CARGO_OSDK):
|
||||||
@make --no-print-directory install_osdk
|
@make --no-print-directory install_osdk
|
||||||
|
|
||||||
|
.PHONY: check_osdk
|
||||||
|
check_osdk:
|
||||||
|
@cd osdk && cargo clippy -- -D warnings
|
||||||
|
|
||||||
|
.PHONY: test_osdk
|
||||||
|
test_osdk:
|
||||||
|
@cd osdk && \
|
||||||
|
OSDK_LOCAL_DEV=1 cargo build && \
|
||||||
|
OSDK_LOCAL_DEV=1 cargo test
|
||||||
|
|
||||||
.PHONY: initramfs
|
.PHONY: initramfs
|
||||||
initramfs:
|
initramfs:
|
||||||
@make --no-print-directory -C test
|
@make --no-print-directory -C test
|
||||||
@ -230,13 +240,15 @@ check: initramfs $(CARGO_OSDK)
|
|||||||
done
|
done
|
||||||
@make --no-print-directory -C test check
|
@make --no-print-directory -C test check
|
||||||
|
|
||||||
.PHONY: check_osdk
|
|
||||||
check_osdk:
|
|
||||||
@cd osdk && cargo clippy -- -D warnings
|
|
||||||
|
|
||||||
.PHONY: clean
|
.PHONY: clean
|
||||||
clean:
|
clean:
|
||||||
|
@echo "Cleaning up Asterinas workspace target files"
|
||||||
@cargo clean
|
@cargo clean
|
||||||
|
@echo "Cleaning up OSDK workspace target files"
|
||||||
|
@cd osdk && cargo clean
|
||||||
|
@echo "Cleaning up documentation target files"
|
||||||
@cd docs && mdbook clean
|
@cd docs && mdbook clean
|
||||||
|
@echo "Cleaning up test target files"
|
||||||
@make --no-print-directory -C test clean
|
@make --no-print-directory -C test clean
|
||||||
|
@echo "Uninstalling OSDK"
|
||||||
@rm -f $(CARGO_OSDK)
|
@rm -f $(CARGO_OSDK)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user