Commit Graph

20 Commits

Author SHA1 Message Date
Andrew Tridgell 1cc83223af autotest: fixed using GNU screen for opening gdb
screen doesn't start the process in the current working directory
2023-08-06 09:15:30 +10:00
Rhys Mainwaring 6d7086a8ad Tools: change terminal to current dir if using osascript in run_in_terminal_window.sh
- Ensure the spawned terminal has the same pwd as the calling script to allow SITL to resolve relative paths

Signed-off-by: Rhys Mainwaring <rhys.mainwaring@me.com>
2022-05-02 11:28:12 +10:00
Braedon O'Meara de91058b1a Tools: Add tmux support to run_in_terminal_window.sh
Added in an option so that if running SITL in a tmux session it will open a new window in tmux.
More or less an alternate option to screen.
It will detect if its running in a tmux session by checking the $TMUX and $TERM env variables.
I put it before other options because when I am running a tmux session even in a GUI environment
I would prefer a new Tmux window compared to a new terminal.
This will only run if youre already in a tmux session it will not launch a new session.
2021-07-30 12:05:15 +10:00
Peter Barker b1b978381a Tools: correct quoting in run_in_terminal_window.sh 2018-03-15 07:40:23 +09:00
Peter Barker 27650c08aa Tools: autotest: use -z in place of -v for checking variable settedness
Some bash versions out there don't like -v
2017-09-18 08:26:22 +10:00
Peter Barker ca5bf02d7c autotest: quote words as they go into generated ritw file 2017-04-29 11:31:26 +10:00
Peter Barker e90c62ffc6 autotest: run_in_terminal_window gets SITL_RITW_MINIMIZE
This is handy when running gdb repeatedly; don't
need to find the iconified window all the time.
2017-04-26 14:12:10 +10:00
Peter Barker 1432763ca5 Tools: permit overriding shell to use when running in terminal window 2017-01-12 10:47:34 +11:00
Peter Barker c23ee3d35c Tools: tag run-in-terminal-window output with RiTW: 2016-09-19 12:55:42 +10:00
Siddharth Bharat Purohit 4f0dad19ea autotest: support mac osx terminal launch 2016-07-07 11:35:17 -03:00
Peter Barker 27e7c870ed Tools: remove absolute paths in run_in_terminal_window
Also add quotes to avoid ambiguous redirect issue
2016-05-16 19:39:37 +10:00
Peter Barker f9f6cbaf9e SITL: use (larger!) font6 as default xterm font 2016-01-11 11:42:07 +11:00
Peter Barker 2c78b4f537 SITL: encourage bash to create a subshell when spawning ardupilot
This issue is evident in Vagrant if you don't forward X.

_fdm_input_step determined there was no parent and killed ArduPilot.

Closed #3249
2016-01-04 16:02:48 +11:00
Andrew Tridgell 596cac58d0 autotest: removed the need for run_cmd.sh 2015-08-13 14:56:33 +10:00
Andrew Tridgell 338ae68537 autotest: allow run without $PATH setup 2015-07-09 14:06:03 +10:00
Andrew Tridgell 044a09425b autotest: cope with environments with no $DISPLAY 2015-05-11 09:19:54 +10:00
Fabio Kruger d585d5691d autotest: Enables copy to clipboard from xterm shells. Useful to copy gdb output. 2015-05-08 16:42:43 +10:00
Kevin Hester ad9c3d730c SITL: Numerous improvements to vagrant image and easier SITL for mac/windows
For full instructions/notes see Tools/vagrant/README.md

Notes:
* Old Vagrantfile updated to run faster and self init with our various
build dependancies.
* The sim_vehicle.sh script will now implicitly configure if necessary
* run_in_terminal_window.sh is now smart enough to use Screen sessions.  Or
if those are not available to warn the user but run the command with logging
going to a file in /tmp.
2015-01-23 11:00:04 +09:00
Andrew Tridgell a26bcddb9b autotest: fixed valgrind options to sim_arduplane.sh 2014-03-11 09:37:02 +11:00
Andrew Tridgell 8d99de5eb5 autotest: use xterm by default and only use make clean if needed 2014-03-03 07:06:45 +11:00