Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

include test always #113

Merged
merged 1 commit into from
Jul 17, 2023
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
13 changes: 3 additions & 10 deletions languages/c/templates/sdk/scripts/install.sh
Original file line number Diff line number Diff line change
Expand Up @@ -4,24 +4,21 @@ usage()
echo "options:"
echo " -i install path"
echo " -s sdk path"
echo " -t include test"
echo " -m module name. i.e, core/manage"
echo
echo "usage: "
echo " ./install.sh -p path"
echo " ./install.sh -i path -s sdk path-m core"
}

SdkPath=".."
InstallPath=".."
IncludeTest="OFF"
ModuleName="core"
while getopts i:s:m:th flag
while getopts i:s:m:h flag
do
case "${flag}" in
i) InstallPath="${OPTARG}";;
s) SdkPath="${OPTARG}";;
m) ModuleName="${OPTARG}";;
t) IncludeTest="ON";;
h) usage && exit 1;;
esac
done
Expand All @@ -48,11 +45,7 @@ cp -ar ${SdkPath}/include ${ReleasePath}
cp -ar ${SdkPath}/cmake ${ReleasePath}
cp -ar ${SdkPath}/scripts/build.sh ${ReleasePath}
cp -ar ${SdkPath}/CMakeLists.txt ${ReleasePath}

if [ "${IncludeTest}" == "ON" ];
then
cp -ar ${SdkPath}/ctest ${ReleasePath}/test
fi
cp -ar ${SdkPath}/ctest ${ReleasePath}/test

sed -i '/EnableTest="ON";;/d' ${ReleasePath}/build.sh
sed -i 's/getopts p:s:tch/getopts p:s:ch/g' ${ReleasePath}/build.sh
Expand Down
Loading