test: added test descriptions and resources for manually testing different project setup methods

This commit is contained in:
mlangkabel
2018-08-28 11:13:05 +02:00
parent 0f5548f5f9
commit 1ba843fbec
64 changed files with 1156 additions and 0 deletions
@@ -0,0 +1,11 @@
MY_PATH=`dirname "$0"`
SRC_PATH=$MY_PATH/data
WORKING_COPY_PATH=$MY_PATH/working_copy
mkdir -p $WORKING_COPY_PATH
cp -ar $SRC_PATH/. $WORKING_COPY_PATH
echo "Setup Complete"
@@ -0,0 +1,9 @@
MY_PATH=`dirname "$0"`
WORKING_COPY_PATH=$MY_PATH/working_copy
echo "" >> $WORKING_COPY_PATH/src/Bar.h
echo "Update Complete"
@@ -0,0 +1,8 @@
MY_PATH=`dirname "$0"`
WORKING_COPY_PATH=$MY_PATH/working_copy
rm -rf $WORKING_COPY_PATH
echo "Teardown Complete"
@@ -0,0 +1,35 @@
* Run "1_setup.sh"
* Start up Sourcetrail
* Click "New Project"
* Enter a project name
* Set "./working_copy" as project location
* Click "Add Source Group"
* Select "C++" -> Empty C++ Source Group"
* Click "Next"
* Click "Next"
* Add "./src" to "Files & Directories to Index"
* Add "**/Foo.h" to "Excluded Files & Directories"
* Click "Next"
* Click "validate include directives"
* Validate result: "All include directives are resolved"
* Click "Next"
* Click "Next"
* Click "Create"
* Validate "All files" is the only option selectable
* Click "Start"
* Validate Project indexed without error
* Click "OK"
* Press "Refresh" button
* Validate "Updated files" is selected
* Validate "source files to index" shows "0"
* Click "Cancel"
* Run "2_update.sh"
* Press "Refresh" button
* Validate "Files to clear" shows "2"
* Validate "source files to index" shows "1"
* Click "Start"
* Validate Project indexed without error
* Click "OK"
* Close Sourcetrail
* Run "3_teardown.sh"
@@ -0,0 +1,10 @@
#ifndef FOO_H
#define FOO_H
#include "FooBar.h"
class Bar : public FooBar
{
};
#endif // FOO_H
@@ -0,0 +1,10 @@
#ifndef BAR_H
#define BAR_H
#include "FooBar.h"
class Foo : public FooBar
{
};
#endif // FOO_BAR_H
@@ -0,0 +1,8 @@
#ifndef FOO_BAR_H
#define FOO_BAR_H
class FooBar
{
};
#endif // FOO_BAR_H
@@ -0,0 +1,9 @@
#include "Foo.h"
#include "Bar.h"
void test()
{
Foo foo;
Bar bar;
}