diff options
author | Aleksander Mistewicz <a.mistewicz@samsung.com> | 2016-11-30 15:49:58 +0100 |
---|---|---|
committer | Aleksander Mistewicz <a.mistewicz@samsung.com> | 2017-01-16 11:07:48 +0100 |
commit | 428bf2d8355b576e883a3fb1cd8fe16b464c6716 (patch) | |
tree | ab9f41ebb7642a934c48ecf1df432db95326f4b1 /test | |
parent | 038ed43fed6a4ba82236cd28922974725021cc95 (diff) | |
download | major-428bf2d8355b576e883a3fb1cd8fe16b464c6716.tar.gz major-428bf2d8355b576e883a3fb1cd8fe16b464c6716.tar.bz2 major-428bf2d8355b576e883a3fb1cd8fe16b464c6716.zip |
Add url2profile() to tsp/common.sh
Add url2profile tests to test/tsp_common.bats
Change-Id: Ia0cd72a3abd859fa0af409867392d585cf49986c
Signed-off-by: Aleksander Mistewicz <a.mistewicz@samsung.com>
Diffstat (limited to 'test')
-rwxr-xr-x | test/tsp_common.bats | 30 |
1 files changed, 30 insertions, 0 deletions
diff --git a/test/tsp_common.bats b/test/tsp_common.bats index 47b8605..9dae581 100755 --- a/test/tsp_common.bats +++ b/test/tsp_common.bats @@ -17,3 +17,33 @@ RES1="$(url2sr http://download.tizen.org/snapshots/tizen/common/tizen-common_20160909.2/ 2>&1)" [ "$RES1" = "tizen-common_20160909.2" ] } + +@test "url2profile: snap_url (tizen common)" { + RES1="$(url2profile http://download.tizen.org/snapshots/tizen/common/tizen-common_20160909.2/ 2>&1)" + [ "$RES1" = "common" ] +} + +@test "url2profile: snap_url (tizen common 3.0)" { + RES1="$(url2profile http://download.tizen.org/snapshots/tizen/3.0-common/tizen-3.0-common_20160909.2/ 2>&1)" + [ "$RES1" = "3.0-common" ] +} + +@test "url2profile: pre_url (tizen common)" { + RES1="$(url2profile http://download.tizen.org/prerelease/tizen/common/tizen-common_20160613.3/tizen-common_20160613.3.20160614.075200/ 2>&1)" + [ "$RES1" = "common" ] +} + +@test "url2profile: pre_url (tizen common 3.0)" { + RES1="$(url2profile http://download.tizen.org/prerelease/tizen/3.0-common/tizen-common_20160613.3/tizen-3.0-common_20160613.3.20160614.075200/ 2>&1)" + [ "$RES1" = "3.0-common" ] +} + +@test "url2profile: snap_url (tizen mobile 3.0)" { + RES1="$(url2profile http://download.tizen.org/snapshots/tizen/3.0-mobile/tizen-3.0-mobile_20161116.1/ 2>&1)" + [ "$RES1" = "3.0-mobile" ] +} + +@test "url2profile: pre_url (tizen mobile 3.0)" { + RES1="$(url2profile http://download.tizen.org/prerelease/tizen/3.0-mobile/tizen-3.0-mobile_20161116.1/tizen-3.0-mobile_20161116.1.20161116.094536/ 2>&1)" + [ "$RES1" = "3.0-mobile" ] +} |