aboutsummaryrefslogtreecommitdiffstats
path: root/scripts
Commit message (Collapse)AuthorAgeFilesLines
...
* Ubuntu 18.04 install scriptNathan2019-01-101-0/+104
| | | | Signed-off-by: Nathan Tsoi <nathan@vertile.com>
* scripts: Add a test case for Ubuntu 18.04 compiler errorKevin O'Connor2018-12-221-0/+18
| | | | | | Attempt to detect a bad build of Klipper and report an error. Signed-off-by: Kevin O'Connor <kevin@koconnor.net>
* graphstats: Change stats filter to use print_time instead of bytes_write=0Kevin O'Connor2018-11-261-1/+1
| | | | Signed-off-by: Kevin O'Connor <kevin@koconnor.net>
* buildcommands: Make sure to not use 96 or more message idsKevin O'Connor2018-11-181-0/+3
| | | | | | The mcu code assumes the encoder and parser id is always one byte. Signed-off-by: Kevin O'Connor <kevin@koconnor.net>
* buildcommands: Remove unnecessary spaces from data dictionaryKevin O'Connor2018-11-181-1/+1
| | | | Signed-off-by: Kevin O'Connor <kevin@koconnor.net>
* buildcommands: Detect duplicate strings when generating static string idsKevin O'Connor2018-11-181-1/+4
| | | | Signed-off-by: Kevin O'Connor <kevin@koconnor.net>
* buildcommands: Move data dictionary generation to its own classKevin O'Connor2018-11-181-39/+47
| | | | Signed-off-by: Kevin O'Connor <kevin@koconnor.net>
* buildcommands: Move version generation to its own classKevin O'Connor2018-11-181-18/+27
| | | | Signed-off-by: Kevin O'Connor <kevin@koconnor.net>
* buildcommands: Move command/response code generation to its own classKevin O'Connor2018-11-181-142/+155
| | | | Signed-off-by: Kevin O'Connor <kevin@koconnor.net>
* buildcommands: Move DECL_CONSTANT code to its own classKevin O'Connor2018-11-181-13/+27
| | | | Signed-off-by: Kevin O'Connor <kevin@koconnor.net>
* buildcommands: Move DECL_STATIC_STR code to its own classKevin O'Connor2018-11-181-28/+41
| | | | Signed-off-by: Kevin O'Connor <kevin@koconnor.net>
* buildcommands: Move DECL_CALLLIST code to its own classKevin O'Connor2018-11-181-26/+42
| | | | Signed-off-by: Kevin O'Connor <kevin@koconnor.net>
* util: Fix versioning when gitdir is absent (#809)lf2018-10-271-0/+31
| | | | | | | | | | | | | The gitdir previously could be absent and produce a version of "" in spite of checks for it. Fixed. Parent directories with shlex-interpreted characters in their names could be misinterpreted. Removed shlex parsing. Packagers may want to remove the git history to slim down the package size, so add an option for using a file 'version' in the klippy directory to set version without using git. Signed-Off-By: Lucas Fink <software@lfcode.ca>
* logextract: Make sure config files end with a newlineKevin O'Connor2018-10-241-1/+1
| | | | Signed-off-by: Kevin O'Connor <kevin@koconnor.net>
* logextract: Fix handling of clock reports at end of lineKevin O'Connor2018-10-081-1/+1
| | | | Signed-off-by: Kevin O'Connor <kevin@koconnor.net>
* logextract: Add support for extracting recent g-code from a shutdownKevin O'Connor2018-09-281-3/+47
| | | | Signed-off-by: Kevin O'Connor <kevin@koconnor.net>
* test: Make white space error report more pronouncedKevin O'Connor2018-08-271-4/+6
| | | | Signed-off-by: Kevin O'Connor <kevin@koconnor.net>
* scripts: No longer require bossa-cli in install-octopi.shKevin O'Connor2018-08-271-1/+1
| | | | | | | Now that there is a local copy of bossac in the lib directory, there's no reason to require a system version of it. Signed-off-by: Kevin O'Connor <kevin@koconnor.net>
* dockerfile: Add a basic reference Dockerfile (#488)sillyfrog2018-08-061-0/+38
| | | | | | | | | | Dockerfile: Add a basic reference Dockerfile This is a sample of how to get Klipper running in Docker, because of the virtual serial port, the user will have to modify things to include something to send the GCode. I have included a link to my repo which has OctoPrint up and running as an example. Signed-off-by: Trent Davis <tgh@sillyfrog.com>
* test: Minor update to travis-build.sh mcu_compile start notifierKevin O'Connor2018-08-011-1/+1
| | | | Signed-off-by: Kevin O'Connor <kevin@koconnor.net>
* check_whitespace: Minor simplification of control char checkKevin O'Connor2018-07-271-3/+2
| | | | Signed-off-by: Kevin O'Connor <kevin@koconnor.net>
* test: Extend white space check to verify files are valid utf-8Kevin O'Connor2018-07-261-2/+8
| | | | Signed-off-by: Kevin O'Connor <kevin@koconnor.net>
* travis-build: Narrow portions of test run with "set +x"Kevin O'Connor2018-07-081-3/+3
| | | | | | | No need to include all the test preparation in the verbose output - as that can make the output more confusing. Signed-off-by: Kevin O'Connor <kevin@koconnor.net>
* test: Minor comment update in travis-build.shKevin O'Connor2018-07-051-1/+1
| | | | Signed-off-by: Kevin O'Connor <kevin@koconnor.net>
* test: Clean up travis-ci build outputKevin O'Connor2018-07-051-10/+26
| | | | Signed-off-by: Kevin O'Connor <kevin@koconnor.net>
* test: Expand whitespace checks to test files and test compile configsKevin O'Connor2018-07-011-0/+1
| | | | Signed-off-by: Kevin O'Connor <kevin@koconnor.net>
* test: Expand whitespace checks to *.lds filesKevin O'Connor2018-07-011-2/+2
| | | | Signed-off-by: Kevin O'Connor <kevin@koconnor.net>
* test: Fix typo in whitespace check - there is no src/lib/ directoryKevin O'Connor2018-07-011-1/+1
| | | | Signed-off-by: Kevin O'Connor <kevin@koconnor.net>
* test: Expand whitespace checks to docs/ and test/ directoriesKevin O'Connor2018-07-011-1/+1
| | | | Signed-off-by: Kevin O'Connor <kevin@koconnor.net>
* test_klippy: Add option to not remove temporary filesKevin O'Connor2018-06-301-2/+8
| | | | Signed-off-by: Kevin O'Connor <kevin@koconnor.net>
* test: Add support for testing klippy with multi-mcu configsKevin O'Connor2018-06-291-11/+19
| | | | Signed-off-by: Kevin O'Connor <kevin@koconnor.net>
* test: Add a build test case for the PRUKevin O'Connor2018-06-281-0/+1
| | | | Signed-off-by: Kevin O'Connor <kevin@koconnor.net>
* build: Build pru gcc in travis-ci scripts and then cache it for later useKevin O'Connor2018-06-281-4/+26
| | | | Signed-off-by: Kevin O'Connor <kevin@koconnor.net>
* build: Collect travis build files travis build specific directoriesKevin O'Connor2018-06-282-10/+14
| | | | Signed-off-by: Kevin O'Connor <kevin@koconnor.net>
* test: Add a whitespace check to the travis buildKevin O'Connor2018-06-282-0/+74
| | | | Signed-off-by: Kevin O'Connor <kevin@koconnor.net>
* scripts: Add installation script for CentOS (#367)pyr0ball2018-06-191-0/+101
| | | | | | The purpose of this PR is to add an installation script to klipper for use on Centos. Several packages names are different from debian based installs, and the system service is handled via systemd rather than LSB. Signed-off-by: Alan Weinstock <pyroballpcs@gmail.com>
* test: Try to cache gcc arm download during travis-ci buildsKevin O'Connor2018-06-181-2/+10
| | | | | | | The gcc arm download sometimes fails - try to cache it within the travis-ci system to prevent that. Signed-off-by: Kevin O'Connor <kevin@koconnor.net>
* test_klippy: Default to only showing log information on an errorKevin O'Connor2018-06-171-11/+27
| | | | Signed-off-by: Kevin O'Connor <kevin@koconnor.net>
* scripts: Add additional explicit dependencies to install-octopi.shKevin O'Connor2018-06-171-1/+2
| | | | | | | | Add virtualenv, build-essential, gcc-arm-none-eabi, and binutils-arm-none-eabi packages - just in case they aren't already installed. Reported by @AxMod3DPrint. Signed-off-by: Kevin O'Connor <kevin@koconnor.net>
* test_klippy: Use verbose output when running klippyKevin O'Connor2018-06-171-4/+4
| | | | Signed-off-by: Kevin O'Connor <kevin@koconnor.net>
* test: Add basic klippy regression testsKevin O'Connor2018-06-162-2/+139
| | | | Signed-off-by: Kevin O'Connor <kevin@koconnor.net>
* logextract: Detect clock field even if it is last field on lineKevin O'Connor2018-06-131-1/+1
| | | | Signed-off-by: Kevin O'Connor <kevin@koconnor.net>
* scripts: Add python-dev dependency to install-octopi.shKevin O'Connor2018-06-091-1/+1
| | | | | | | The python-dev package is usually already installed, but there's no harm in stating it explicitly. Reported by @yschroeder. Signed-off-by: Kevin O'Connor <kevin@koconnor.net>
* graphstats: Make check for stats prefixes more robustKevin O'Connor2018-05-232-2/+2
| | | | Signed-off-by: Kevin O'Connor <kevin@koconnor.net>
* scripts: Add stm32flash to octopi-install.sh package listKevin O'Connor2018-04-121-1/+1
| | | | Signed-off-by: Kevin O'Connor <kevin@koconnor.net>
* stepstats: Add documentation clarificationKevin O'Connor2018-03-231-0/+1
| | | | Signed-off-by: Kevin O'Connor <kevin@koconnor.net>
* build: Use git describe --alwaysKevin O'Connor2018-02-261-1/+1
| | | | | | | | Add --always flag to "git describe" command to get a build identifier even if one checks out the repo with a depth parameter that prunes out the last tagged version. Signed-off-by: Kevin O'Connor <kevin@koconnor.net>
* test: Add travis_fold markers to build outputKevin O'Connor2018-02-261-0/+4
| | | | Signed-off-by: Kevin O'Connor <kevin@koconnor.net>
* test: Update travis build to include a basic klippy host testKevin O'Connor2018-02-262-0/+73
| | | | | | | | | | | | | | | | | Move the travis installation steps from the travis-build.sh script to a new script (scripts/travis-install.sh). Move the travis-build.sh script to the scripts/ directory as well. The data dictionaries built in the compile tests are useful during host software testing, so run all the compile tests sequentially in a single VM and save the data dictionaries after each build. Also, build all the config files found in the test/configs/ directory. Create the python virtualenv environment during the install phase and invoke the klippy.py host software in the build phase to perform a basic host software sanity check. Signed-off-by: Kevin O'Connor <kevin@koconnor.net>
* graphstats: Support selecting an mcu to graph from the command-lineKevin O'Connor2018-02-191-13/+19
| | | | Signed-off-by: Kevin O'Connor <kevin@koconnor.net>