Skip to content

Commit

Permalink
Example of using ctest resource allocation -- using resource instance…
Browse files Browse the repository at this point in the history
  • Loading branch information
jthelin committed Jan 23, 2024
1 parent 04ec5ae commit 853625f
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 4 deletions.
7 changes: 5 additions & 2 deletions src/main.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

std::string name = "World";

int main(int argc, char** argv) {
int main(int argc, char **argv) {
if (argc > 1) {
name = argv[1];
}
Expand All @@ -22,7 +22,10 @@ int main(int argc, char** argv) {
std::transform(grp_ids_var.begin(), grp_ids_var.end(), grp_ids_var.begin(), toupper);
std::cout << "Env variable: " << grp_ids_var << std::endl;
std::string grp_ids = getenv(grp_ids_var.c_str());
std::cout << grp_name << " - Properties: " << grp_ids << std::endl;
std::cout << "Resource Group " << g
<< " : Type = " << grp_type
<< " Properties = " << grp_ids
<< std::endl;
}

return EXIT_SUCCESS;
Expand Down
3 changes: 1 addition & 2 deletions test-resource-spec.json
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,7 @@
{
"devices": [
{
"id": "1",
"slots": 1
"id": "1"
},
{
"id": "2",
Expand Down

0 comments on commit 853625f

Please sign in to comment.