test: Fixed project setup tests for mac

This commit is contained in:
Eberhard Graether
2018-08-28 14:20:28 +02:00
parent 21d58357f2
commit db23d50614
26 changed files with 182 additions and 25 deletions
+8 -2
View File
@@ -1,6 +1,12 @@
#!/bin/bash
# get absolute path to parent directory of script
MY_PATH=`dirname "$0"`
if [[ "${MY_PATH}" != *\\* ]]
then
cd $MY_PATH
MY_PATH=`pwd`
fi
MY_PATH="${MY_PATH//\\//}"
SRC_PATH=$MY_PATH/data
@@ -10,7 +16,7 @@ CDB_PATH=$WORKING_COPY_PATH/compile_commands.json
mkdir -p $WORKING_COPY_PATH
cp -ar $SRC_PATH/. $WORKING_COPY_PATH
cp -a $SRC_PATH/. $WORKING_COPY_PATH
echo "[" >> $CDB_PATH
echo " {" >> $CDB_PATH