git subrepo clone git@github.com:compihu/platform-test-f4-ll.git platforms/platform-test-f4-ll

subrepo:
  subdir:   "platforms/platform-test-f4-ll"
  merged:   "bc41134"
upstream:
  origin:   "git@github.com:compihu/platform-test-f4-ll.git"
  branch:   "master"
  commit:   "bc41134"
git-subrepo:
  version:  "0.4.3"
  origin:   "https://github.com/ingydotnet/git-subrepo"
  commit:   "87ee373"
This commit is contained in:
Attila Body 2021-02-24 21:46:35 +01:00
parent 46ce55c6a0
commit 95af4ce0d8
460 changed files with 84105 additions and 0 deletions

View file

@ -0,0 +1,56 @@
#!/bin/bash
# run from the builds directory
listGccMacVersions()
{
port select --list gcc
}
if [ -z "$1" ]; then
echo "usage: $0 gcc-version\navailable versions:" 1>&2
listGccMacVersions
exit 1
fi
gcc_v=$1
setGccMac()
{
sudo port select --set gcc $1
}
setGccLinux()
{
echo "Not implemented for Linux"
exit 1
# if [ ! -f "/usr/bin/gcc-$1" ] || [ ! -f "/usr/bin/g++-$1" ]; then
# echo "no such version gcc/g++ installed" 1>&2
# exit 1
# fi
# update-alternatives --set gcc "/usr/bin/gcc-$1"
# update-alternatives --set g++ "/usr/bin/g++-$1"
}
if [ "$(uname)" == "Darwin" ]; then
setGccMac $gcc_v
elif [ "$(expr substr $(uname -s) 1 5)" == "Linux" ]; then
setGccLinux $gcc_v
else
echo "can't determine OS"
exit 1
fi
pushd ..
cpputest_home=$(pwd)
popd
mkdir -p $gcc_v
cd $gcc_v
../../configure
make
make check
#these links keep compatibility with makefile worker
ln -s $cpputest_home/include include
ln -s $cpputest_home/build build
ln -s $cpputest_home/scripts scripts