mirror of
https://github.com/marcoallegretti/WEFT_OS.git
synced 2026-03-27 01:13:09 +00:00
Two new tests cover appd_socket_path(): - appd_socket_path_uses_override_env: WEFT_APPD_SOCKET takes precedence - appd_socket_path_errors_without_xdg_and_no_override: returns error when both WEFT_APPD_SOCKET and XDG_RUNTIME_DIR are unset wsl-test.sh: add --test-threads=1 for weft-appd to prevent WEFT_RUNTIME_BIN races between the supervisor integration tests.
42 lines
964 B
Bash
42 lines
964 B
Bash
#!/usr/bin/env bash
|
|
set -e
|
|
|
|
PROJECT="/mnt/c/Users/might/Desktop/Development/Systems/WEFT OS"
|
|
|
|
FAKE_PC_DIR="$HOME/.local/fake-pkgconfig"
|
|
mkdir -p "$FAKE_PC_DIR"
|
|
cat > "$FAKE_PC_DIR/libdisplay-info.pc" << 'EOF'
|
|
prefix=/usr
|
|
exec_prefix=${prefix}
|
|
libdir=/usr/lib64
|
|
includedir=/usr/include
|
|
|
|
Name: libdisplay-info
|
|
Description: EDID and DisplayID library (version shim for cargo check)
|
|
Version: 0.2.9
|
|
Libs: -L${libdir} -ldisplay-info
|
|
Cflags: -I${includedir}
|
|
EOF
|
|
|
|
source "$HOME/.cargo/env"
|
|
export PKG_CONFIG_PATH="$FAKE_PC_DIR:/usr/lib64/pkgconfig:/usr/share/pkgconfig"
|
|
|
|
cd "$PROJECT"
|
|
|
|
echo "==> cargo test -p weft-compositor"
|
|
cargo test -p weft-compositor 2>&1
|
|
|
|
echo ""
|
|
echo "==> cargo test -p weft-appd"
|
|
cargo test -p weft-appd -- --test-threads=1 2>&1
|
|
|
|
echo ""
|
|
echo "==> cargo test -p weft-runtime"
|
|
cargo test -p weft-runtime -- --test-threads=1 2>&1
|
|
|
|
echo ""
|
|
echo "==> cargo test -p weft-pack"
|
|
cargo test -p weft-pack -- --test-threads=1 2>&1
|
|
|
|
echo ""
|
|
echo "ALL DONE"
|