-
Notifications
You must be signed in to change notification settings - Fork 159
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[npud] Move npud code to the contrib folder
This commit moves npud code into contrib folder and removes the npud related configurations. If someone is interested in NPUD details, Please refer to #9258 issue. - #9258 ONE-DCO-1.0-Signed-off-by: Jiyoung Yun <[email protected]>
- Loading branch information
Showing
45 changed files
with
3 additions
and
122 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
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
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
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
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 |
---|---|---|
@@ -1,59 +1,5 @@ | ||
#!/bin/bash | ||
|
||
set -eo pipefail | ||
|
||
CURRENT_PATH="$(cd "$(dirname "${BASH_SOURCE[0]}")" && pwd)" | ||
ROOT_PATH="$(cd ${CURRENT_PATH}/../../ && pwd)" | ||
|
||
# Install path on CI | ||
INSTALL_PATH="$ROOT_PATH/Product/out" | ||
MODEL_PATH="${INSTALL_PATH}/npud-gtest/models" | ||
|
||
# Install dbus configuration file | ||
DBUS_CONF="${INSTALL_PATH}/share/org.tizen.npud.conf" | ||
mkdir -p /usr/share/dbus-1/system.d/ | ||
cp ${DBUS_CONF} /usr/share/dbus-1/system.d/ | ||
|
||
service dbus restart | ||
|
||
function TestPrepared() | ||
{ | ||
if [[ -z "${MODELFILE}" ]]; then | ||
echo "Model file is not set. Try to use default setting." | ||
exit 1 | ||
fi | ||
|
||
mkdir -p ${MODEL_PATH} | ||
if [[ "${MODELFILE: -7}" == ".tar.gz" ]]; then | ||
curl -o model.tar.gz -kLsSO ${MODELFILE} | ||
tar -zxf model.tar.gz -C ${MODEL_PATH} | ||
else | ||
echo "The file format is not supported." | ||
echo "Supported format: tar.gz" | ||
exit 1 | ||
fi | ||
} | ||
|
||
function TestCleanUp() | ||
{ | ||
rm -rf ${MODEL_PATH} | ||
} | ||
|
||
function NpudTest() | ||
{ | ||
pushd ${ROOT_PATH} > /dev/null | ||
|
||
$INSTALL_PATH/npud-gtest/npud_gtest | ||
EXITCODE=$? | ||
if [ ${EXITCODE} -ne 0 ]; then | ||
exit ${EXITCODE} | ||
fi | ||
|
||
popd > /dev/null | ||
} | ||
|
||
TestPrepared | ||
|
||
DEVICE_MODULE_PATH=${INSTALL_PATH}/lib GTEST_MODEL_PATH=${MODEL_PATH} NpudTest | ||
|
||
TestCleanUp | ||
# DO NOTHING | ||
# THIS FILE WILL BE REMOVED AFTER JENKINS SCRIPT IS UPDATED. | ||
exit 0 |
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
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
This file was deleted.
Oops, something went wrong.