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
+10 -4
View File
@@ -1,17 +1,23 @@
#!/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
WORKING_COPY_PATH=$MY_PATH/working_copy
WORKING_COPY_SRC_PATH=$WORKING_COPY_PATH/src
CBD_PATH=$WORKING_COPY_PATH/Test.cbp
CBP_PATH=$WORKING_COPY_PATH/Test.cbp
mkdir -p $WORKING_COPY_PATH
cp -ar $SRC_PATH/. $WORKING_COPY_PATH
cp -a $SRC_PATH/. $WORKING_COPY_PATH
sed -i "s|<source_path>|${WORKING_COPY_SRC_PATH}|g" ${CBD_PATH}
sed "s|<source_path>|${WORKING_COPY_SRC_PATH}|g" $MY_PATH/data/Test.cbp > ${CBP_PATH}
echo "Setup Complete"
+8
View File
@@ -1,5 +1,13 @@
#!/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//\\//}"
WORKING_COPY_PATH=$MY_PATH/working_copy
+8
View File
@@ -1,5 +1,13 @@
#!/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//\\//}"
WORKING_COPY_PATH=$MY_PATH/working_copy
+2 -3
View File
@@ -4,9 +4,9 @@
* Enter a project name
* Set "./working_copy" as project location
* Click "Add Source Group"
* Select "C++" -> C/C++ from Compilation Database"
* Select "C++" -> C/C++ from Code::Blocks"
* Click "Next"
* Pick "./working_copy/Test.cbp" at "Compilation Database"
* Pick "Test.cbp" at "Code::Blocks Project"
* Click "show source files" button
* Validate "Source Files" list contains "src/main.cpp"
* Click "OK"
@@ -31,4 +31,3 @@
* Click "OK"
* Close Sourcetrail
* Run "3_teardown.sh"