-
Notifications
You must be signed in to change notification settings - Fork 0
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
i78: ut-core: upgrade core to support multiple profile inputs that get merged into a single lookup #78
Comments
#include <stdio.h>
#include <stdlib.h>
#include <unistd.h>
#define MAX_FILES 10 // Maximum number of files to handle
int main(int argc, char *argv[]) {
int opt;
char *filenames[MAX_FILES];
int fileCount = 0;
const char *optString = "f:";
while ((opt = getopt(argc, argv, optString)) != -1) {
switch (opt) {
case 'f':
if (fileCount < MAX_FILES) {
filenames[fileCount++] = optarg;
} else {
fprintf(stderr, "Error: Maximum number of files reached.\n");
exit(EXIT_FAILURE);
}
break;
default:
fprintf(stderr, "Usage: %s [-f filename]...\n", argv[0]); // Notice the "..."
exit(EXIT_FAILURE);
}
}
printf("Processing %d files:\n", fileCount);
for (int i = 0; i < fileCount; i++) {
printf(" - %s\n", filenames[i]);
// Do something with each file (e.g., call your process_node function)
}
return 0;
} Yaml file./your_program -f file1.yaml -f file2.json -f http://example.com/config.yaml
|
we should be able to support this via changing the input file to ut-control-kvp-open to something like this |
Ulrond
changed the title
upgrade core to support multiple profile inputs that get merged into a single lookup
i78: ut-core: upgrade core to support multiple profile inputs that get merged into a single lookup
Sep 9, 2024
Ulrond
modified the milestones:
4.4.0 - ut-core: Fault Handling,
4.6.0 - ut-core: Support yaml test name output
Dec 9, 2024
kanjoe24
added a commit
that referenced
this issue
Dec 11, 2024
kanjoe24
added a commit
that referenced
this issue
Dec 11, 2024
Ulrond
modified the milestones:
4.7.0 - ut-core: Support yaml test name output,
4.4.0: Upgrades to support weak stub building
Dec 16, 2024
kanjoe24
added a commit
that referenced
this issue
Dec 18, 2024
kanjoe24
added a commit
that referenced
this issue
Dec 19, 2024
kanjoe24
added a commit
that referenced
this issue
Dec 19, 2024
kanjoe24
added a commit
that referenced
this issue
Dec 19, 2024
kanjoe24
added a commit
that referenced
this issue
Dec 19, 2024
kanjoe24
added a commit
that referenced
this issue
Dec 19, 2024
kanjoe24
added a commit
that referenced
this issue
Dec 19, 2024
kanjoe24
added a commit
that referenced
this issue
Dec 19, 2024
kanjoe24
added a commit
that referenced
this issue
Dec 23, 2024
kanjoe24
added a commit
that referenced
this issue
Dec 24, 2024
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Consideration
it would be good if we can support
And all the profiles get merged together, in a single entry. I realise this means that instead of supporting file based
kvp
, in the backend we would need to support adding a new function tokvp
. Since we haveopen
- which opens the first file, we can introduceread
which basically appends to the currentut_kvp_instance_t
with extra data..or we change the basic configuration for
open
, to alwaysappend
to the already open data..The text was updated successfully, but these errors were encountered: