File tree Expand file tree Collapse file tree
build/office-suite/scripts Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -14,8 +14,11 @@ mkdir -p "$HOME"
1414
1515DESKTOP_FILE=" $XDG_DATA_HOME /applications/sourceos-office.desktop"
1616OPEN_BIN=" $HOME /.local/bin/sourceos-office-open"
17+ SOURCEOS_OFFICE_BIN=" $HOME /.local/bin/sourceos-office"
1718CLOUD_BIN=" $HOME /.local/bin/office_cloud_handoff.sh"
1819MIME_FILE=" $XDG_CONFIG_HOME /mimeapps.list"
20+ TEST_DOC=" $TMPDIR /demo.txt"
21+ echo " SourceOS office shell smoke" > " $TEST_DOC "
1922
2023[[ -f " $DESKTOP_FILE " ]] || {
2124 echo " office shell installer smoke failed: missing desktop entry" >&2
@@ -27,6 +30,11 @@ MIME_FILE="$XDG_CONFIG_HOME/mimeapps.list"
2730 exit 1
2831}
2932
33+ [[ -x " $SOURCEOS_OFFICE_BIN " ]] || {
34+ echo " office shell installer smoke failed: missing sourceos-office command" >&2
35+ exit 1
36+ }
37+
3038[[ -x " $CLOUD_BIN " ]] || {
3139 echo " office shell installer smoke failed: missing cloud handoff helper" >&2
3240 exit 1
@@ -37,4 +45,13 @@ MIME_FILE="$XDG_CONFIG_HOME/mimeapps.list"
3745 exit 1
3846}
3947
48+ OUT=" $( SOURCEOS_OFFICE_MODE=cloud " $SOURCEOS_OFFICE_BIN " open " $TEST_DOC " ) "
49+ case " $OUT " in
50+ http://* |https://* ) ;;
51+ * )
52+ echo " office shell installer smoke failed: installed sourceos-office open path did not return URL" >&2
53+ exit 1
54+ ;;
55+ esac
56+
4057echo " office shell installer smoke passed"
You can’t perform that action at this time.
0 commit comments