forked from vmware-archive/node-replicated-kernel
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathcommitable.sh
More file actions
41 lines (32 loc) · 1.12 KB
/
Copy pathcommitable.sh
File metadata and controls
41 lines (32 loc) · 1.12 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
#!/bin/bash
set -ex
#
# Makes sure that tests in CI will pass (hopefully).
#
# check formatting
cd ..
cargo fmt -- --check
cd kernel
# build kernel
RUST_TARGET_PATH=`pwd`/src/arch/x86_64 cargo build -Z build-std=core,alloc -Z build-std-features=compiler-builtins-mem -v --target=x86_64-nrk
# Try to compile with all/most of the code enabled
python3 run.py --kfeatures ethernet shmem rackscale integration-test gdb --kgdb --norun
# run kernel
python3 run.py
# run unix architecture
cargo run
# compile init binary
cd ../usr/init
RUST_TARGET_PATH=`pwd`/../ cargo build -Z build-std=core,alloc -Z build-std-features=compiler-builtins-mem --target x86_64-nrk-none --color always --release --all-features
cd ../../kernel
# run integration tests
RUST_TEST_THREADS=1 cargo test --features smoke -- --nocapture
# Testing stuff under lib/
cd ../lib/apic && cargo test --all-features
cd ../bootloader_shared && cargo test --all-features
cd ../kpi && cargo test --all-features
cd ../vibrio && cargo test --all-features
cd ../vmxnet3 && cargo test --all-features
cd ../rpc && cargo test --all-features
# Documentation
cd ../../doc && mdbook build