diff options
author | dec05eba <dec05eba@protonmail.com> | 2018-10-01 02:29:31 +0200 |
---|---|---|
committer | dec05eba <dec05eba@protonmail.com> | 2020-07-06 07:39:33 +0200 |
commit | 63cedcab19474cae0a4b1322600355ddc23d56d0 (patch) | |
tree | 3710f999d034eeda0287192e8442d2fece64288d /src | |
parent | 25de19087331d51ff87122ce20aedac82b80da97 (diff) |
Only create tests dir for c/c++ projects
Remove tests section under [package] in project.conf, it is no longer
needed
Diffstat (limited to 'src')
-rw-r--r-- | src/main.cpp | 8 |
1 files changed, 3 insertions, 5 deletions
diff --git a/src/main.cpp b/src/main.cpp index a5f7562..110c178 100644 --- a/src/main.cpp +++ b/src/main.cpp @@ -655,9 +655,7 @@ static Result<bool> newProjectCreateConf(const string &projectName, const string projectConfStr += "version = \"0.1.0\"\n"; projectConfStr += "platforms = [\""; projectConfStr += asString(SYSTEM_PLATFORM); - projectConfStr += "\"]\n"; - projectConfStr += "tests = \"tests\""; - projectConfStr += "\n\n"; + projectConfStr += "\"]\n\n"; projectConfStr += "[dependencies]\n"; FileString projectConfPath = projectPath; @@ -880,9 +878,9 @@ static int initProject(int argc, const _tinydir_char_t **argv) exit(20); } createDirectoryRecursive(projectPath + TINYDIR_STRING("/src")); - createDirectoryRecursive(projectPath + TINYDIR_STRING("/tests")); if(_tinydir_strcmp(lang, TINYDIR_STRING("c")) == 0 || _tinydir_strcmp(lang, TINYDIR_STRING("c++")) == 0) { + createDirectoryRecursive(projectPath + TINYDIR_STRING("/tests")); createDirectoryRecursive(projectPath + TINYDIR_STRING("/include")); FileString mainFileName; @@ -1069,9 +1067,9 @@ static int newProject(int argc, const _tinydir_char_t **argv) exit(20); } createDirectoryRecursive(projectPath + TINYDIR_STRING("/src")); - createDirectoryRecursive(projectPath + TINYDIR_STRING("/tests")); if(_tinydir_strcmp(lang, TINYDIR_STRING("c")) == 0 || _tinydir_strcmp(lang, TINYDIR_STRING("c++")) == 0) { + createDirectoryRecursive(projectPath + TINYDIR_STRING("/tests")); createDirectoryRecursive(projectPath + TINYDIR_STRING("/include")); FileString mainFileName; |