Add tizen 4.0 unified support 24/181824/1
authorAleksander Mistewicz <a.mistewicz@samsung.com>
Thu, 17 Aug 2017 13:41:40 +0000 (15:41 +0200)
committerAleksander Mistewicz <a.mistewicz@samsung.com>
Wed, 27 Sep 2017 16:58:33 +0000 (18:58 +0200)
Database update is required. Run:
    . tsp/common.sh
    sqlite3 "${DBPATH}" -batch < tsp/results-schema.sql

Change-Id: If8d823dad442e57b206c44584f4d4404a8518299

tsp/common.sh
tsp/jobs/update_www.sh
tsp/results-schema.sql

index fb191f6..810865a 100755 (executable)
@@ -59,6 +59,7 @@ DBNAME="results.db3"
 DBPATH="${WS_PUBLISH}/${DBNAME}"
 WWW_PUBLISH="${WS_PUBLISH}/current_status.html"
 WWW_3_PUBLISH="${WS_PUBLISH}/current_status_3.html"
+WWW_4_PUBLISH="${WS_PUBLISH}/current_status_4.html"
 UPDATE_WWW="/var/tmp/should_update_www"
 WS_PUBLISH_WWW="${WS_PUBLISH}/www"
 TSP_WWW="${TSP_DIR}/www"
index 804b121..c765f33 100755 (executable)
@@ -24,5 +24,6 @@ test -f "${UPDATE_WWW}" || die "No need to update the webpage" 0
 
 publish -limit 2048 -db "${DBPATH}" -out "${WWW_PUBLISH}"
 publish -limit 1024 -tizen3 -db "${DBPATH}" -out "${WWW_3_PUBLISH}"
+publish -limit 1024 -tizen4 -db "${DBPATH}" -out "${WWW_4_PUBLISH}"
 
 rm "${UPDATE_WWW}"
index 7b40105..c47fb9a 100644 (file)
@@ -43,3 +43,17 @@ CREATE VIEW IF NOT EXISTS currentstatus3 AS
     WHERE SR LIKE "%3.0-common%"
     ORDER BY SR DESC
 ;
+
+CREATE VIEW IF NOT EXISTS currentstatus4 AS
+    SELECT
+        test.tnumber AS "SR",
+        test.tdate AS "Date",
+        test.tbuildnr AS "Build nr",
+        device.dname AS "Device",
+        result.rname AS "Status"
+    FROM test
+    INNER JOIN device ON test.tdid = device.did
+    INNER JOIN result ON result.rid = test.trid
+    WHERE SR LIKE "%4.0-unified%"
+    ORDER BY SR DESC
+;