Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
18 changes: 18 additions & 0 deletions build/office-suite/scripts/install_sourceos_office_shell_smoke.sh
Original file line number Diff line number Diff line change
Expand Up @@ -66,4 +66,22 @@ VERIFY_OUT="$($SOURCEOS_OFFICE_BIN verify)"
exit 1
}

FAKEBIN="$TMPDIR/fakebin"
mkdir -p "$FAKEBIN"
cat > "$FAKEBIN/lampstand" <<EOF
#!/usr/bin/env bash
set -euo pipefail
printf '%s\n' "$TEST_DOC"
EOF
chmod +x "$FAKEBIN/lampstand"

SEARCH_OUT="$(PATH="$FAKEBIN:$PATH" SOURCEOS_OFFICE_MODE=cloud "$SOURCEOS_OFFICE_BIN" search demo)"
case "$SEARCH_OUT" in
http://*|https://*) ;;
*)
echo "office shell installer smoke failed: installed sourceos-office search path did not return URL" >&2
exit 1
;;
esac

echo "office shell installer smoke passed"