-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
35199a2
commit 238ca8d
Showing
2 changed files
with
42 additions
and
37 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,42 @@ | ||
setup (){ | ||
load 'test_helper/helper' | ||
_setup_common | ||
. "$PROJECT_ROOT/ws_tool/lib/properties.bash" | ||
} | ||
|
||
@test "prop_ws_check_workstation_dir" { | ||
ws_unset_settings | ||
WORKSTATION_DIR="$(_mktemp "ws-dir")" | ||
WORKSTATION_VERSION=workcomp | ||
. "$PROJECT_ROOT/ws_tool/lib/settings.bash" | ||
|
||
run prop_ws_check_workstation_dir | ||
assert_failure | ||
|
||
run prop_ws_check_workstation_dir_fix | ||
assert_success | ||
|
||
run prop_ws_check_workstation_dir | ||
assert_success | ||
} | ||
|
||
@test "prop_ws_check_workstation_repo" { | ||
ws_unset_settings | ||
WORKSTATION_DIR="$(_mktemp "ws-dir")" | ||
WORKSTATION_VERSION=workcomp | ||
. "$PROJECT_ROOT/ws_tool/lib/settings.bash" | ||
|
||
# set up the workstation dir, but wont set up git, just project source | ||
run prop_ws_check_workstation_dir_fix | ||
assert_success | ||
|
||
run prop_ws_check_workstation_repo | ||
assert_failure | ||
|
||
# WORKSTATION_REPO_GIT_ORIGIN=https://github.com/joelmccracken/workstation.git | ||
run prop_ws_check_workstation_repo_fix | ||
assert_success | ||
|
||
run prop_ws_check_workstation_repo | ||
assert_success | ||
} |