1
0
mirror of https://github.com/simh/simh.git synced 2026-01-25 19:56:25 +00:00

FrontPanelTest: Cleanup test setup and build dependencies

- Test simulator is always VAX and always in the same directory as
  FrontPanelTest
- makefile and Projects will always build the dependent simulator
This commit is contained in:
Mark Pizzolato
2022-12-28 11:10:59 -10:00
parent b0cdb3e831
commit 5ba0ef0c67
4 changed files with 53 additions and 30 deletions

View File

@@ -75,12 +75,7 @@ printw ("%s", buf);
}
#endif /* HAVE_NCURSES */
#endif
const char *sim_path =
#if defined(_WIN32)
"vax.exe";
#else
"vax";
#endif
char *sim_path;
const char *sim_config =
"VAX-PANEL.ini";
@@ -668,10 +663,19 @@ int
main (int argc, char **argv)
{
int was_halted = 1, i;
char *c;
if ((argc > 1) && ((!strcmp("-d", argv[1])) || (!strcmp("-D", argv[1])) || (!strcmp("-debug", argv[1]))))
debug = 1;
sim_path = strcpy ((char *)malloc (strlen (argv[0]) + 10), argv[0]);
c = strrchr (sim_path, '/');
if (c == NULL)
c = strrchr (sim_path, '\\');
strcpy (c + 1, "vax");
if (panel_setup())
goto Done;
if (1) {