仿真平台内核初版 -tlib库 包含<sparc arm riscv powerPC>
This commit is contained in:
58
lib/Migrant/tools/build.sh
Executable file
58
lib/Migrant/tools/build.sh
Executable file
@@ -0,0 +1,58 @@
|
||||
#!/bin/bash
|
||||
#
|
||||
# Migrant build script
|
||||
#
|
||||
|
||||
set -e
|
||||
set -u
|
||||
|
||||
TARGET=Build
|
||||
CLEAN=false
|
||||
TESTS=false
|
||||
SOLUTION=Migrant
|
||||
|
||||
function print_help() {
|
||||
echo -e "Usage: $0 [-c] [-t]\n\n-c clean\n-t build tests suite"
|
||||
}
|
||||
|
||||
if [ -x "$(command -v realpath)" ]
|
||||
then
|
||||
ROOT_PATH="`dirname \`realpath $0\``"
|
||||
fi
|
||||
|
||||
while getopts ":cdth" opt
|
||||
do
|
||||
case $opt in
|
||||
c)
|
||||
TARGET=Clean
|
||||
CLEAN=true
|
||||
;;
|
||||
d)
|
||||
TARGET=Debug
|
||||
;;
|
||||
t)
|
||||
TESTS=true
|
||||
SOLUTION=MigrantWithTests
|
||||
;;
|
||||
h)
|
||||
print_help
|
||||
exit 0
|
||||
;;
|
||||
\?)
|
||||
echo -e "Invalid option: -$OPTARG\n" >&2
|
||||
print_help
|
||||
exit 1
|
||||
;;
|
||||
esac
|
||||
done
|
||||
|
||||
if $CLEAN
|
||||
then
|
||||
rm -rf $ROOT_PATH/../packages
|
||||
elif $TESTS
|
||||
then
|
||||
nuget install -OutputDirectory $ROOT_PATH/../packages $ROOT_PATH/../PerformanceTester/packages.config
|
||||
nuget install -OutputDirectory $ROOT_PATH/../packages $ROOT_PATH/../Tests/packages.config
|
||||
fi
|
||||
|
||||
xbuild $ROOT_PATH/../$SOLUTION.sln /t:$TARGET
|
||||
14
lib/Migrant/tools/test.sh
Executable file
14
lib/Migrant/tools/test.sh
Executable file
@@ -0,0 +1,14 @@
|
||||
#!/bin/bash
|
||||
#
|
||||
# Migrant test script
|
||||
#
|
||||
|
||||
set -e
|
||||
set -u
|
||||
|
||||
if [ -x "$(command -v realpath)" ]
|
||||
then
|
||||
ROOT_PATH="`dirname \`realpath $0\``"
|
||||
fi
|
||||
|
||||
mono $ROOT_PATH/../packages/NUnit.ConsoleRunner.3.6.1/tools/nunit3-console.exe --labels=all --where="cat != MultiAssemblyTests" $ROOT_PATH/../Tests/bin/Debug/Tests.dll
|
||||
Reference in New Issue
Block a user