Commit Graph

715 Commits

Author SHA1 Message Date
Salvador E. Tropea b5fc7e8c55 [Report] Fixed converted file wasn't stored at `dir`
Closes #238
2022-07-25 11:40:24 -03:00
Salvador E. Tropea 30f708db0e [Tests] More changed related to parallel tests
- Warning 8 filtered for test_sch_missing_1
2022-07-25 11:16:49 -03:00
Salvador E. Tropea a3bf56c39a Adapted test SCH references
- Now we keep title block entries, even if they are " "
  This is how KiCad behaves
2022-07-21 13:46:27 -03:00
Salvador E. Tropea 0e7121dc3d Now configuration sections are parsed in a fixed order
- This allows a predictable behavior, the YAML is converted to a dict,
  so you can't trust in the order of the keys.
- It avoids misstakes
- Allows using %V/v in preflights, even if globals are declared latter.

Fixes #234
2022-07-21 13:11:24 -03:00
Salvador E. Tropea 061ed0488e [Tests] Separated kicad2step, pcbnew and eeschema tests 2022-07-14 19:23:28 -03:00
Salvador E. Tropea 5a8391ca59 [Tests] Migrated qr_lib_1 to pcb_print (faster) 2022-07-14 18:53:41 -03:00
Salvador E. Tropea d52fd87076 [Tests] More adjusts to allow parallel run 2022-07-14 17:47:53 -03:00
Salvador E. Tropea 97fbdef5c8 [Tests] Updated results after OAR fix. 2022-07-14 17:18:18 -03:00
Salvador E. Tropea ba7bebd980 [Position] Added an error message for wrong file names
- If a user asks for separated files and doesn't use %i to
  differentiate the names now we inform it as an error.

Related to #222
2022-07-13 11:33:43 -03:00
Salvador E. Tropea 7f29fa1ecd [Tests] Fixed test_import_7
- It used a test case that didn't really pass the DRC
2022-07-13 09:25:02 -03:00
Salvador E. Tropea a8a4c2ad9a [Tests] More adjusts to test_sch_missing_filtered filters
- Reason: Now tests are run in parallel, so we can catch a temporal
  KiCad configuration created by a parallel job.
2022-07-13 06:49:22 -03:00
Salvador E. Tropea 4765121e3f [Tests] ImageMagick available again 2022-07-13 06:32:11 -03:00
Salvador E. Tropea 4245709e3d [Tests] Adjusted the filters for test_sch_missing_filtered
- Not sure why needed, but these warnings are logic
2022-07-13 06:29:03 -03:00
Salvador E. Tropea 73c72ecb62 [Tests] Fixed test_import_8
- Removed the ligth_control project
2022-07-12 14:03:17 -03:00
Salvador E. Tropea 3e05ab8b6a [Import] Preflights now can be imported
- Also fixed the filters and variants configuration, now delayed.

Fixes #221
Related to #181
2022-07-12 13:39:43 -03:00
Salvador E. Tropea 6c118b73fa Imports can be nested now
- import stuff that was imported ...
- Is the first approach, works for a simple case

Related to #218
2022-07-12 10:55:00 -03:00
Salvador E. Tropea 42503a909a [SCH][Print] A global option to cross components without a body.
- Only for KiCad 6

Closes #219
2022-07-12 08:44:05 -03:00
Salvador E. Tropea 54e14f0443 [Tests] Marked dep_convert as failing
- The AppImage is missing
2022-07-09 20:30:11 -03:00
Salvador E. Tropea 15d5f90a27 [Tests] Fixed fil_test.py assertions
- PyTest 6 failed to catch the assert, but 7 does
2022-07-09 19:44:02 -03:00
Salvador E. Tropea 9532422984 [Tests] Run slow tests separately
- Also run the faster ones in parallel
- The slowest use KiCad, not sure how safe is to run it in parallel
- Changed mechanism of coverage collection to allow parallel execution
2022-07-09 16:33:09 -03:00
Salvador E. Tropea 6ff6fcc975 [Tests] Better support when KiBot is also installed at user level 2022-07-09 16:26:46 -03:00
Salvador E. Tropea 35996e4cf5 [Test] Removed gs symlink from the artifacts
- Is generating problems on GitHub
2022-07-08 12:55:54 -03:00
Salvador E. Tropea c464ccfb95 [Test] Added test for check_tool_binary_local 2022-07-08 12:25:10 -03:00
Salvador E. Tropea 7842edafcf [Test] Added test for try_download_tool_binary 2022-07-08 12:12:36 -03:00
Salvador E. Tropea b78b943ff6 [Test] Added gs_downloader test 2022-07-08 11:57:30 -03:00
Salvador E. Tropea 6248803252 [Test] More robust dep_python test
- Ensure the test module isn't installed before testing
2022-07-08 11:51:15 -03:00
Salvador E. Tropea 120220b986 [Test] Workaround for importlib crazy behavior
- I can't call pip to install in a specified dir and then import
  using importlib. It always fail, even when the module is installed
  and its path is in sys.path. Couldn't find why.
2022-07-08 10:57:03 -03:00
Salvador E. Tropea d6aa9b2446 [Test] Added test for python_downloader 2022-07-08 10:19:34 -03:00
Salvador E. Tropea 293facda76 [Test] Enabled dep_pytool test now that we can run it on CI/CD 2022-07-08 07:52:38 -03:00
Salvador E. Tropea e72fe1d897 Added tests for various downloaders
- rsvg
- git
- convert
- Also disabled the one for pytool because it needs adjusts
  to work as root.
2022-07-07 20:09:20 -03:00
Salvador E. Tropea 069d9ba690 Added pytool_downloader test 2022-07-07 19:08:06 -03:00
Salvador E. Tropea 941185d635 Added a test for rar_downloader 2022-07-06 19:15:56 -03:00
Salvador E. Tropea 56f5176060 Fixed problems when running tests and a copy of KiBot is in ~/.local 2022-07-06 19:14:58 -03:00
Salvador E. Tropea 420757880f Adapted the tests for missing tools to the new mechanism 2022-07-05 13:49:01 -03:00
Salvador E. Tropea 0a8481dadf Now the dependencies are YAML specs in docstrings
- They document the dependencies and constructs them
2022-07-05 12:43:49 -03:00
Salvador E. Tropea c5f55d39bb Removed test_check_scripts, no longer used 2022-06-30 13:58:08 -03:00
Salvador E. Tropea e00b6b3f23 Removed unused functions
- check_script
- check_eeschema_do
- Now all the code uses dep_download stuff
2022-06-30 13:11:02 -03:00
Salvador E. Tropea 29afcdd453 Fixed problems with the test_ibom_parse_fail test
- Needs to avoid iBoM using X server
- Python 3.7 optional parameter to the mocked function wasn't implemented
2022-06-30 11:38:22 -03:00
Salvador E. Tropea 59d6d2caac [Dependencies] Added auto-download for iBoM 2022-06-30 10:03:26 -03:00
Salvador E. Tropea 6242a772c2 KiCost specs encoding fixes
- Now we decode HTML encoded sequences
- Updated KiCost submodule to the one that fixes KitSpace encoding
- Updated the references (now properly encoded)
2022-06-29 08:08:42 -03:00
Salvador E. Tropea e88e2730da Made the test for missing pcbdraw components more robust
- Avoid downloading the tool
- Avoid using a downloaded copy
2022-06-19 20:13:55 -03:00
Salvador E. Tropea 65d4143ec1 Now we try to download some tools when missing
- Currently only a few targets are available
- Rar, ImageMagick, RSVG Tools and git have some support
2022-06-19 19:17:38 -03:00
Salvador E. Tropea ff109a02ec Added test for category image in navigate results 2022-06-14 07:06:59 -03:00
Salvador E. Tropea 486fabd321 Added merge and translate field tests for KiCost 2022-06-13 11:18:33 -03:00
Salvador E. Tropea e6cfe15dd0 PDFUnite: added warnings and errors about missing input files
- Also simplified the create_pdf.py error handling.
  - We are not catching I/O errors, they are fatal and should be
    catched at a higher level.
  - We already check the input files and create the output dir.
- Added tests
2022-06-13 08:56:25 -03:00
Salvador E. Tropea a3811537b8 Fixed svg_pcb_print: page orientation for portrait. 2022-06-12 16:07:58 -03:00
Salvador E. Tropea 06bb47ea05 pcb_print: fixed frame page orientation in GUI mode. 2022-06-12 15:37:00 -03:00
Salvador E. Tropea 72a2c71ddb Added test for PCB paper size stuff 2022-06-12 12:17:23 -03:00
Salvador E. Tropea 40a0277a5d Added missing R_0805_2012Metrico.wrl
- Also changed to links
2022-06-12 12:13:35 -03:00
Salvador E. Tropea db3bf471ea Add support for `globals` instead of `global` 2022-06-12 11:40:07 -03:00