-
-
Notifications
You must be signed in to change notification settings - Fork 450
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #5588 from STEllAR-GROUP/fixing_id_formatting
Fixing the output formatting for id_types
- Loading branch information
Showing
4 changed files
with
53 additions
and
4 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,25 @@ | ||
# Copyright (c) 2019 The STE||AR-Group | ||
# Copyright (c) 2021 The STE||AR-Group | ||
# | ||
# SPDX-License-Identifier: BSL-1.0 | ||
# Distributed under the Boost Software License, Version 1.0. (See accompanying | ||
# file LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt) | ||
|
||
set(tests format_id_type) | ||
|
||
foreach(test ${tests}) | ||
set(sources ${test}.cpp) | ||
|
||
source_group("Source Files" FILES ${sources}) | ||
|
||
set(folder_name "Tests/Regressions/Modules/Full/NamingBase") | ||
|
||
# add example executable | ||
add_hpx_executable( | ||
${test}_test INTERNAL_FLAGS | ||
SOURCES ${sources} ${${test}_FLAGS} | ||
EXCLUDE_FROM_ALL | ||
FOLDER ${folder_name} | ||
) | ||
|
||
add_hpx_regression_test("modules.naming_base" ${test} ${${test}_PARAMETERS}) | ||
endforeach() |
30 changes: 30 additions & 0 deletions
30
libs/full/naming_base/tests/regressions/format_id_type.cpp
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,30 @@ | ||
// Copyright (c) 2021 Hartmut Kaiser | ||
// | ||
// SPDX-License-Identifier: BSL-1.0 | ||
// Distributed under the Boost Software License, Version 1.0. (See accompanying | ||
// file LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt) | ||
|
||
#include <hpx/hpx_init.hpp> | ||
#include <hpx/modules/naming_base.hpp> | ||
#include <hpx/modules/runtime_distributed.hpp> | ||
#include <hpx/modules/testing.hpp> | ||
|
||
#include <sstream> | ||
#include <string> | ||
|
||
/////////////////////////////////////////////////////////////////////////////// | ||
int hpx_main() | ||
{ | ||
std::stringstream strm; | ||
strm << hpx::find_here(); | ||
|
||
HPX_TEST_EQ( | ||
strm.str(), std::string("{0000000100000000, 0000000000000000}")); | ||
return hpx::finalize(); | ||
} | ||
|
||
int main(int argc, char** argv) | ||
{ | ||
HPX_TEST_EQ(hpx::init(argc, argv), 0); | ||
return hpx::util::report_errors(); | ||
} |