-
Notifications
You must be signed in to change notification settings - Fork 1.3k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* Make ini-to-stdio return un-resolved paths. Fixes: #2450 * Fixed packet autocoder includes. Fixs #2453 * Convert FPP inputs to canonical path. Fixes: #2455 * Adding in test for CMake under symlinks. Fixes: #2624 * Formatting * Correcting review suggestions
- Loading branch information
Showing
5 changed files
with
88 additions
and
5 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,40 @@ | ||
#### | ||
# test_symlink.py: | ||
# | ||
# Test that a build from a directory that contains a symlink works correctly. | ||
# | ||
#### | ||
import os | ||
import shutil | ||
import tempfile | ||
|
||
import pytest | ||
import settings | ||
|
||
import cmake | ||
from pathlib import Path | ||
|
||
|
||
SYMLINK_PATH = Path(tempfile.mkdtemp()) / "fprime-link" | ||
os.symlink(settings.REF_APP_PATH.parent, SYMLINK_PATH) | ||
|
||
|
||
_ = cmake.get_build( | ||
"SYMLINKED_UT_BUILD", | ||
SYMLINK_PATH / "Ref", | ||
cmake_arguments={"BUILD_TESTING": "ON"}, | ||
make_targets=["Ref", "ut_exe"], | ||
install_directory=tempfile.mkdtemp(), | ||
) | ||
|
||
|
||
@pytest.fixture(scope="session") | ||
def symlink_maker(): | ||
"""Fixture for symlinked builds""" | ||
yield None | ||
shutil.rmtree(SYMLINK_PATH, ignore_errors=True) | ||
|
||
|
||
def test_unittest_run(SYMLINKED_UT_BUILD, symlink_maker): | ||
"""Basic run test for ref""" | ||
cmake.assert_process_success(SYMLINKED_UT_BUILD, errors_ok=True) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters