summaryrefslogtreecommitdiff
path: root/test/tsp_common.bats
diff options
context:
space:
mode:
authorAleksander Mistewicz <a.mistewicz@samsung.com>2016-11-30 16:04:04 +0100
committerAleksander Mistewicz <a.mistewicz@samsung.com>2017-01-16 11:07:49 +0100
commita3f9e0af3ca9c7e54a9b2d52e83522c382428434 (patch)
tree367dd55fda239e19a49d5f6a4f53614040118de8 /test/tsp_common.bats
parent428bf2d8355b576e883a3fb1cd8fe16b464c6716 (diff)
downloadmajor-a3f9e0af3ca9c7e54a9b2d52e83522c382428434.tar.gz
major-a3f9e0af3ca9c7e54a9b2d52e83522c382428434.tar.bz2
major-a3f9e0af3ca9c7e54a9b2d52e83522c382428434.zip
Add sr2profile() to tsp/common.sh
Add sr2profile tests to test/tsp_common.bats Change-Id: I8903012b22a6346ed2618bd242fc998a2228975c Signed-off-by: Aleksander Mistewicz <a.mistewicz@samsung.com>
Diffstat (limited to 'test/tsp_common.bats')
-rwxr-xr-xtest/tsp_common.bats20
1 files changed, 20 insertions, 0 deletions
diff --git a/test/tsp_common.bats b/test/tsp_common.bats
index 9dae581..bc3ef79 100755
--- a/test/tsp_common.bats
+++ b/test/tsp_common.bats
@@ -47,3 +47,23 @@
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" ]
}
+
+@test "sr2profile: snap_sr" {
+ RES1="$(sr2profile "tizen-common_20161005.3" 2>&1)"
+ [ "$RES1" = "common" ]
+}
+
+@test "sr2profile: pre_sr" {
+ RES1="$(sr2profile "tizen-common_20160613.3.20160614.075200" 2>&1)"
+ [ "$RES1" = "common" ]
+}
+
+@test "sr2profile: snap_sr (tizen common 3.0)" {
+ RES1="$(sr2profile "tizen-3.0-common_20160909.2" 2>&1)"
+ [ "$RES1" = "3.0-common" ]
+}
+
+@test "sr2profile: pre_sr (tizen common 3.0)" {
+ RES1="$(sr2profile "tizen-3.0-common_20160613.3.20160614.075200" 2>&1)"
+ [ "$RES1" = "3.0-common" ]
+}