This commit introduces LAYOUT_191215 check rule.
Signed-off-by: Jonghyun Park <jh1302.park@samsung.com>
--- /dev/null
+#!/bin/bash
+
+# Check whether the package has the following layout:
+#
+# bin/
+# model2nnpkg.sh
+# tf2circle
+# tf2nnpkg
+# lib/
+# libexo.so
+# liblocoex_customop.so
+# libloco.so
+# libmoco_import.so
+# libmoco_lang.so
+# libmoco_log.so
+# libmoco_pass.so
+# libmoco_service.so
+# libmoco_support.so
+# libmoco_tf_frontend.so
+
+function prepare()
+{
+ export QUESTION="Is compatible with the 2019/12/15 layout?"
+}
+
+function run()
+{
+ # The result of running "find . -print | sort | tr -d '\n\0'" from the expected package
+ EXPECTED="."
+ EXPECTED+="./bin./bin/model2nnpkg.sh./bin/tf2circle./bin/tf2nnpkg"
+ EXPECTED+="./lib./lib/libexo.so./lib/liblocoex_customop.so"
+ EXPECTED+="./lib/libloco.so./lib/libmoco_import.so./lib/libmoco_lang.so./lib/libmoco_log.so./lib/libmoco_pass.so./lib/libmoco_service.so./lib/libmoco_support.so./lib/libmoco_tf_frontend.so"
+
+ OBTAINED=$(cd "${NNAS_INSTALL_PREFIX}" && find . -print | sort | tr -d '\n\0')
+
+ if [[ "${OBTAINED}" = "${EXPECTED}" ]]; then
+ export PASSED=1
+ fi
+}