Skip to content

Commit

Permalink
update
Browse files Browse the repository at this point in the history
  • Loading branch information
dreamer-coding committed Jun 16, 2024
1 parent 9ff0f67 commit 52f2fe0
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 60 deletions.
25 changes: 0 additions & 25 deletions run_backend_tests.py
Original file line number Diff line number Diff line change
Expand Up @@ -48,31 +48,6 @@ def test_kdevelop_backend(self):
assert os.path.exists(join_paths(build, "compile_commands.json"))
assert os.path.exists(join_paths(build, "basic.kdev4"))

def test_codeblocks_backend(self):
#
# Setting up tmp test directory
source = Path(join_paths("test-cases", "backends", "02-codeblocks")).resolve()
build = Path(
join_paths("test-cases", "backends", "02-codeblocks", "builddir")
).resolve()

#
# Running Meson command
meson: Meson = Meson(sourcedir=source, builddir=build)

meson.setup(["--backend=ninja"])
api = MesonAPI(sourcedir=source, builddir=build)
ide = CodeBlocksBackend(api)
ide.generator()

#
# Run asserts to check it is working
assert os.path.exists(join_paths(source, "meson.build"))
assert os.path.exists(join_paths(build, "build.ninja"))
assert os.path.exists(join_paths(build, "meson-info", "intro-projectinfo.json"))
assert os.path.exists(join_paths(build, "compile_commands.json"))
assert os.path.exists(join_paths(build, "basic.cbp"))

def test_qtcreator_backend(self):
#
# Setting up tmp test directory
Expand Down
35 changes: 0 additions & 35 deletions run_unittests.py
Original file line number Diff line number Diff line change
Expand Up @@ -581,19 +581,6 @@ def test_loader_projectinfo(self):
assert info["version"] == "0.1"
assert info["subproject_dir"] == "subprojects"

def test_loader_buildoptions(self):
source = join("test-cases", "intro-loader", "04-buildoptions")
build = join("test-cases", "intro-loader", "04-buildoptions", "builddir")
meson: Meson = Meson(sourcedir=source, builddir=build)

meson.setup()

script: MesonBuilddirLoader = MesonBuilddirLoader(build)
info = script.extract_from(group="buildoptions")

assert info[0]["name"] == "auto_features"
assert info[0]["value"] == "auto"

def test_loader_meson_test(self):
source = join("test-cases", "intro-loader", "02-unittests")
build = join("test-cases", "intro-loader", "02-unittests", "builddir")
Expand Down Expand Up @@ -742,19 +729,6 @@ def test_reader_projectinfo(self):
assert info["version"] == "0.1"
assert info["subproject_dir"] == "subprojects"

def test_reader_buildoptions(self):
source = join("test-cases", "intro-reader", "04-buildoptions")
build = join("test-cases", "intro-reader", "04-buildoptions", "builddir")
meson: Meson = Meson(sourcedir=source, builddir=build)

meson.setup()

script: MesonBuilddirReader = MesonBuilddirReader(build)
info = script.extract_from(group="buildoptions")

assert info[0]["name"] == "auto_features"
assert info[0]["value"] == "auto"

def test_reader_meson_test(self):
source = join("test-cases", "intro-reader", "02-unittests")
build = join("test-cases", "intro-reader", "02-unittests", "builddir")
Expand Down Expand Up @@ -867,15 +841,6 @@ def test_script_projectinfo(self):
assert info["version"] == "0.1"
assert info["subproject_dir"] == "subprojects"

def test_script_buildoptions(self):
script: MesonScriptReader = MesonScriptReader(
join("test-cases", "intro-scanner", "04-buildoptions")
)
info = script.extract_from(group="buildoptions")

assert info[0]["name"] == "auto_features"
assert info[0]["value"] == "auto"

def test_meson_test(self):
script: MesonScriptReader = MesonScriptReader(
join("test-cases", "intro-scanner", "02-unittests")
Expand Down

0 comments on commit 52f2fe0

Please sign in to comment.