Commit graph

714 commits

Author SHA1 Message Date
Rene Hopf
86f6b61dff Merge branch 'master' into master-gtk3 2021-08-01 00:17:05 +02:00
Dewey Garrett
7447445b2f latency-test: show info for host/kernel/date
Sometimes users post screenshot without supply much info
(and may be inadvertently running a non-realtime kernel)
2021-07-10 16:57:05 -07:00
Dewey Garrett
61bf497b88 latency-test rm dead code 2021-07-10 16:57:05 -07:00
Rene Hopf
32bcd9db61 Merge branch 'master' into master-gtk3 2021-07-07 09:19:06 +02:00
Dewey Garrett
1174134cee linuxcnc.in: add '-H dirname' for halfile search
close #1197

1) linuxcnc.in new option: -H dirname
   to prepend 'dirname' to search path (HALLIB_PATH)
2) linuxcnc.in update usage() message
3) update docs: ini-config.txt
4) update docs: updating-linuxcnc.txt

Revised:
  print HALLIB_PATH when '-H dirname' used
  exit if specified dirname is invalid

Note: the dirname specified with '-H dirname' may be
absolute or relative to the working directory
where linuxcnc is invoked (not necessarily the ini
config dir).  Example:
   $ cd /tmp
   $ mkdir try
   $ echo "show pin axis.z" >|try/test.hal
   $ linuxcnc -H try /somewhere/example.ini # uses test.hal
test.hal will be found as /tmp/try/test.hal
2021-07-01 05:40:09 -07:00
Phillip Carter
204d7b05b7 qtplasmac migration from plasmac 2021-06-18 12:55:53 +10:00
luz paz
e716f28359 Fix source comment typos
Found via `codespell`
2021-06-17 20:14:29 -04:00
3313f1004a more buildability fixing 2021-06-05 21:29:34 -05:00
Rene Hopf
271a88bf53 update platform-is-supported for python3 2021-06-03 16:46:48 +02:00
Rene Hopf
c8074d7a00 add debug output to mk-build-deps 2021-05-23 17:06:19 +02:00
Rene Hopf
28b27e65e3 Merge branch 'master' into master-gtk3 2021-05-23 02:19:18 +02:00
Rene Hopf
82659e8c36 update search path for glade3 2021-05-23 00:54:02 +02:00
andypugh
cf8ebfe3a5
Merge pull request #743 from LinuxCNC/unsupport-old-distros-in-master
unsupport old distros in master
2021-05-11 13:16:15 +01:00
Arvid Brodin
9f64c489e4 Display SI-standard time unit in latency-histogram.
latency-histogram uses a mix of uS and uSec as units of time. But
large case S is the unit Siemens, and second should never be
shortened to "sec" or "Sec".

This patch changes to [greek letter mu]s in the GUI but uses "us" in
the terminal, since not all terminals support UTF-8.
2021-04-09 11:08:53 +02:00
freddii
0a02118a88 fixed typos 2021-01-25 17:36:00 +01:00
Dewey Garrett
5cd845a7eb linuxcnc.in: terminate motion-logger also
fix for occaisonal buildbot failures for tests/motion-logger/mountaindew
that occur coincident with reports of excessive (> 1second) task latency
excursions like:

"task: 307 cycles, min=0.000155, max=1.804823, avg=0.014539, 7 latency excursions ..."

Scenario:
1) At termination of [DISPLAY]DISPLAY=test-ui.py, the linuxcnc script
   initiates shutdown by sending a SIGTERM to linuxcncsvr and milltask.
2) On a heavily loaded buildbot system (showing task latencies like above),
   the delivery of the SIGTERM to milltask may be delayed such that
   the linuxcncsvr process exits well before milltask and the final
   EMCMOT_DISABLE message is undeliverable to the motion-logger
   process resulting in absence of the final expected motion-logger
   "DISABLE" report.
3) This commit sends the SIGTERM to the motion-logger process also
   so the race-dependent final "DISABLE" report is no longer
   expected.
2021-01-12 09:02:54 -07:00
5e389155b9
Merge pull request #888 from zultron/2020-06-09-pkg-runtests
Run tests against system install
2020-06-28 15:43:39 -05:00
John Morris
9616c89d78 Fix halcompile and uspace tests against system install
These tests refer to files outside the `tests` directory.  To make the
tests function disembodied from the source tree and against a system
install, add rules to the build to copy the needed files in place, and
adjust the tests to work properly.

Also, the `personalities_mod` test did something funky:  it overwrote
standard comps with modified versions, then replaced those when the
test finished.  This patch undoes that, and instead renames the comps.
2020-06-10 15:35:19 +08:00
John Morris
35a5af9f9b Fix tests calling realtime script running against system install 2020-06-10 13:57:51 +08:00
John Morris
2c37d43da2 Run tests against system install in GH Actions CI 2020-06-10 13:54:40 +08:00
John Morris
1950ba0a45 Fix tests/tclsh-extensions run against system install 2020-06-10 13:54:40 +08:00
John Morris
8dfc261ef3 Fix tests building RT comps against system install
Use `sudo halcompile` to install RT comps.
2020-06-10 13:54:40 +08:00
John Morris
c5bed1faa3 tests/overrun: Fix run against system install 2020-06-10 13:54:39 +08:00
John Morris
f822b9b497 Fix tests compiling against system install
Some tests make assumptions about header and library locations; these
are correct for an RIP build but not for a system build.

This patch removes those assumptions and supplies the locations as
environment variables directly from the `runtests` script.
2020-06-10 13:54:39 +08:00
John Morris
50f152d9d3 Fix tests that build user comps when running against system
The `halcompile` script installs user comps in `/usr/bin` by default.
For testing temporary test user comps against a system install, teach
`halcompile` to put them in the test directory and run the test from
there.
2020-06-10 13:54:38 +08:00
John Morris
eba9dfaa96 Template runtests for running against system install 2020-06-10 13:54:38 +08:00
John Morris
3521273ab6 Add runtests -p flag to print result, stderr on failed tests
Add the flag to the CI scripts to help debugging failed tests.
2020-06-10 13:54:38 +08:00
John Morris
1af724cce0 runtests: Add -s option: stop after first failure
Useful when refactoring and lots of broken tests spew way too much
garbage
2020-06-09 13:38:22 +08:00
John Morris
ba5a6394ac .gitignore scripts/linuxcnc-checklink 2020-06-09 11:15:28 +08:00
John Morris
7821ab39db scripts/realtime: Use $LSMOD variable
`$LSMOD` is templated in `CheckConfig()`; use it instead of templating
it again.
2020-06-09 11:15:28 +08:00
Damian Wrobel
dfbf4c3f63 Fix generating html documentation using python3
Adds a possibility to owerwrite 'checklink' by using:

  $ ac_cv_path_CHECKLINK=<path-to-executable> ./configure

Note: Specifying '/usr/bin/true' as follows:

  $ ac_cv_path_CHECKLINK=/usr/bin/true ./configure

can be used to build the html documentation on machines
(usually builders) which by design disables network access
during a build process.

Signed-off-by: Damian Wrobel <dwrobel@ertelnet.rybnik.pl>
2020-05-08 18:00:02 +02:00
Rene Hopf
b73f2bc589
Merge pull request #760 from dwrobel/dw-fix-travis-install-build-deps
Fix running travis-install-build-deps.sh
2020-05-06 22:55:27 +02:00
Rene Hopf
a3a0666a3e
Merge pull request #807 from dwrobel/dw-add-pycheck
Add pycheck (Python check) Makefile target
2020-05-06 22:49:30 +02:00
2291af3763 Merge remote-tracking branch 'origin/jepler/debian-configure-with-python27' 2020-05-04 21:31:34 -05:00
Dewey Garrett
ebf6f6bd2b linuxcnc_var add PYTHON (py2/py3) 2020-05-04 11:02:05 -07:00
Jeff Epler
0310559763 scripts/linuxcnc: when no DISPLAY, don't try to show message dialogs 2020-05-03 10:19:53 -05:00
Rene Hopf
bb2a4cc21a changed linuxcnc_info to .in, so it reports the correct python version 2020-05-03 14:16:01 +02:00
Rene Hopf
d7926d868d change tests to use linuxcnc-python, so they use the python version specified during configure 2020-05-02 20:58:31 +02:00
Damian Wrobel
e9290b7f03 Add pycheck (Python check) Makefile target
It is designed to be used for checking compatibility of python
scripts (currently only from the 'tests' subdirectory) with
both python2 and python3 interpreters.

Usage:
  $ make pycheck

Successfull output:
  $ make pycheck
  Reading 200/200 dependency files
  Done reading dependencies
  Reading 212/212 realtime dependency files
  Done reading realtime dependencies
  Checking *.py files for python2 and python3 compatibility...
  Checking "text/x-python" (by MIME type) files for python2 and python3 compatibility...

Signed-off-by: Damian Wrobel <dwrobel@ertelnet.rybnik.pl>
2020-04-28 23:11:24 +02:00
Damian Wrobel
f503097943 Make build process more verbose
Signed-off-by: Damian Wrobel <dwrobel@ertelnet.rybnik.pl>
2020-04-28 23:11:24 +02:00
Damian Wrobel
86243ae5df Fix running travis-install-build-deps.sh
Fixes error:
    grep: /etc/apt/sources.list.d/*: No such file or directory
 which happens when you run:
    $sudo scripts/travis-install-build-deps.sh
in an official ubuntu:16.04 docker image.

Signed-off-by: Damian Wrobel <dwrobel@ertelnet.rybnik.pl>
2020-04-22 20:57:03 +02:00
andypugh
cac12e2952 Merge branch '2.8' 2020-04-22 02:17:29 +01:00
Jeff Epler
83b8cdc1c0 update_ini: move into src/ so it gets #!-mangling done 2020-04-21 08:51:08 -05:00
323a1e5adc unsupport old distros in master 2020-04-18 07:58:54 -05:00
677f490bac Merge remote-tracking branch 'origin/2.8' into master-actions 2020-04-17 18:35:11 -05:00
7464d2a0a9 Build script fixes 2020-04-17 18:30:05 -05:00
Jeff Epler
8bd2a64101 Merge remote-tracking branch 'origin/2.8' 2020-04-17 12:39:19 -05:00
Jeff Epler
f48b02a183 Merge remote-tracking branch 'origin/2.7' into 2.8 2020-04-17 12:39:06 -05:00
Jeff Epler
513c976130 travis CI: build the docs 2020-04-17 11:52:33 -05:00
Jeff Epler
012994ab43 Merge remote-tracking branch 'origin/2.8' 2020-04-17 11:49:18 -05:00