aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/main.cpp6
1 files changed, 6 insertions, 0 deletions
diff --git a/src/main.cpp b/src/main.cpp
index f16bf64..d4de6e0 100644
--- a/src/main.cpp
+++ b/src/main.cpp
@@ -238,6 +238,12 @@ int buildProject(const FileString &projectPath, const FileString &projectConfFil
}
};
walkDir(projectPath.c_str(), collectSourceFiles);
+
+ if(sibsConfig.shouldBuildTests() && sibsConfig.getTestPath().empty())
+ {
+ printf("Project is missing package.tests config. No tests to build\n");
+ exit(0);
+ }
Result<bool> buildFileResult = ninja.build(sibsConfig, buildPath.c_str());
if(buildFileResult.isErr())