Aufgrund einer Wartung wird GitLab am 28.09. zwischen 10:00 und 11:00 Uhr kurzzeitig nicht zur Verfügung stehen. / Due to maintenance, GitLab will be temporarily unavailable on 28.09. between 10:00 and 11:00 am.

Added TargetCompilation.sh to easily check if the generated cmake projects are compilable

parent 57347af9
......@@ -22,7 +22,7 @@ public class GenerationTest extends AbstractSymtabTest {
TagHelper.resolveTags(taggingResolver, componentInstanceSymbol);
MasterGenerator masterGenerator = new MasterGenerator();
masterGenerator.setGenerationTargetPath("./target/generated-sources/basicGeneration/");
masterGenerator.setGenerationTargetPath("./target/generated-sources-emam/basicGeneration/src/");
masterGenerator.add(new CPPImpl(), "cpp");
masterGenerator.add(new RosCppImpl(), "roscpp");
......@@ -39,7 +39,7 @@ public class GenerationTest extends AbstractSymtabTest {
TagHelper.resolveTags(taggingResolver, componentInstanceSymbol);
MasterGenerator masterGenerator = new CMakeMasterGenerator();
masterGenerator.setGenerationTargetPath("./target/generated-sources/CMakeGeneration/");
masterGenerator.setGenerationTargetPath("./target/generated-sources-cmake/CMakeGeneration/src/");
masterGenerator.add(new CPPImpl(), "cpp");
masterGenerator.add(new RosCppImpl(), "roscpp");
......@@ -56,7 +56,7 @@ public class GenerationTest extends AbstractSymtabTest {
TagHelper.resolveTags(taggingResolver, componentInstanceSymbol);
MasterGenerator masterGenerator = new MiddlewareMasterGenerator();
masterGenerator.setGenerationTargetPath("./target/generated-sources/middlewareMasterGenerator/src/");
masterGenerator.setGenerationTargetPath("./target/generated-sources-cmake/middlewareMasterGenerator/src/");
masterGenerator.add(new CPPImpl(), "cpp");
masterGenerator.add(new RosCppImpl(), "roscpp");
masterGenerator.add(new DummyMiddlewareGenerator(), "dummy");
......@@ -74,7 +74,7 @@ public class GenerationTest extends AbstractSymtabTest {
TagHelper.resolveTags(taggingResolver, componentInstanceSymbol);
MasterGenerator masterGenerator = new DistributedTargetGenerator("./target/generated-sources/distributed/src/");
MasterGenerator masterGenerator = new DistributedTargetGenerator("./target/generated-sources-cmake/distributed/src/");
masterGenerator.add(new CPPImpl(), "cpp");
masterGenerator.add(new RosCppImpl(), "roscpp");
......
function quitOnError {
if [ "$?" -ne 0 ]
then
echo Failed!
exit 1
fi
}
cd target/generated-sources-cmake/
quitOnError
for d in */ ; do
echo Trying to build "$d"
echo creating dir "$d"/build
mkdir "$d"/build
quitOnError
echo CMake
cmake -B"$d"/build/ -H"$d"/src/
quitOnError
echo make
make -C "$d"/build/
quitOnError
done
echo success!
exit 0
\ No newline at end of file
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment