Skip to content

Commit 32c6c95

Browse files
committed
build(source-os): exercise installed sourceos-office search path in shell smoke
1 parent 675d67d commit 32c6c95

1 file changed

Lines changed: 18 additions & 0 deletions

File tree

build/office-suite/scripts/install_sourceos_office_shell_smoke.sh

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -66,4 +66,22 @@ VERIFY_OUT="$($SOURCEOS_OFFICE_BIN verify)"
6666
exit 1
6767
}
6868

69+
FAKEBIN="$TMPDIR/fakebin"
70+
mkdir -p "$FAKEBIN"
71+
cat > "$FAKEBIN/lampstand" <<EOF
72+
#!/usr/bin/env bash
73+
set -euo pipefail
74+
printf '%s\n' "$TEST_DOC"
75+
EOF
76+
chmod +x "$FAKEBIN/lampstand"
77+
78+
SEARCH_OUT="$(PATH="$FAKEBIN:$PATH" SOURCEOS_OFFICE_MODE=cloud "$SOURCEOS_OFFICE_BIN" search demo)"
79+
case "$SEARCH_OUT" in
80+
http://*|https://*) ;;
81+
*)
82+
echo "office shell installer smoke failed: installed sourceos-office search path did not return URL" >&2
83+
exit 1
84+
;;
85+
esac
86+
6987
echo "office shell installer smoke passed"

0 commit comments

Comments
 (0)