aboutsummaryrefslogtreecommitdiff
path: root/ci-tests/testlib.c
diff options
context:
space:
mode:
Diffstat (limited to 'ci-tests/testlib.c')
-rw-r--r--ci-tests/testlib.c11
1 files changed, 8 insertions, 3 deletions
diff --git a/ci-tests/testlib.c b/ci-tests/testlib.c
index 5e39c1b..9cdbe07 100644
--- a/ci-tests/testlib.c
+++ b/ci-tests/testlib.c
@@ -12,11 +12,16 @@ static std::vector<std::pair<reg_t, abstract_mem_t*>> make_mems(const std::vecto
return mems;
}
-int main()
-{
+int main(int argc, char **argv) {
cfg_t cfg;
std::vector<device_factory_t*> plugin_devices;
- std::vector<std::string> htif_args {"pk", "hello"};
+
+ if (argc != 3) {
+ std::cerr << "Error: invalid arguments\n";
+ exit(1);
+ }
+ std::vector<std::string> htif_args{argv[1] /* pk */,
+ argv[2] /* executable */};
debug_module_config_t dm_config;
std::vector<std::pair<reg_t, abstract_mem_t*>> mems =
make_mems(cfg.mem_layout);