Commit Graph

646 Commits

Author SHA1 Message Date
Salvador E. Tropea ac65cc022e [General] Better support for wrong pre-flight options
Closes #360
2023-01-10 14:54:29 -03:00
Salvador E. Tropea 94cd385725 [Tests] Adapted to the new missing import file message 2023-01-04 13:59:13 -03:00
Salvador E. Tropea 638dcdf970 [Tests] Adjusted unknown output messages 2023-01-04 12:35:26 -03:00
Salvador E. Tropea 5a5967c6b3 [Added] Support for internal imports
- A mechanism to implement templates
- Also fixed some groups import issues
2023-01-04 11:39:48 -03:00
Salvador E. Tropea 7be6a5a7f4 [Tests] Marked more stuff as slow
- To avoid collisions
2023-01-03 14:04:03 -03:00
Salvador E. Tropea 08dd0258cd [Tests] Separated some of the dependency tests
- Marked slow, to avoid parallel execution
2023-01-03 12:56:41 -03:00
Salvador E. Tropea e125ed95e0 [Tests] Patched GS.exec_with_retry 2023-01-03 12:38:53 -03:00
Salvador E. Tropea 32325d4a7d [Tests] Adapted to the new exec_with_retry behavior 2023-01-03 10:34:17 -03:00
Salvador E. Tropea 1fdb8a6c4b Merge branch 'subpcb' into dev 2022-12-28 13:33:42 -03:00
Salvador E. Tropea 1e63ec66c5 [Sub-PCBs][Test] Enabled KiCad 5 tests
- Fixed new drill coordinates in test
- Renamed some YAML files
2022-12-28 11:37:56 -03:00
Salvador E. Tropea 27ea3f1d73 [Tests][Fixed] Small details
- How we test if pcbnew is there
- Adapted test cases to the current outputs
2022-12-27 13:29:56 -03:00
Salvador E. Tropea ebabc0b37b [Windows] Fixed problems with os.rename
- Now using os.replace
- It removes the target if already there
2022-12-26 08:02:14 -03:00
Salvador E. Tropea c9aab5d4cc [Any layer] Added support for sub-PCBs 2022-12-22 13:22:36 -03:00
Salvador E. Tropea 421dcf34b7 [Added] Sub-PCB support to drill outputs 2022-12-22 12:42:21 -03:00
Salvador E. Tropea 5ecbbc84fd [Tests] Added sub-PCB test for PCB Variant and PcbDraw 2022-12-22 10:15:21 -03:00
Salvador E. Tropea 14100615d4 [Tests] Removed `test_int_bom_refuse_no_sep`
- Now we consider it an error
2022-11-24 09:39:43 -03:00
Salvador E. Tropea 8028fb27e1 [Tests] Added some tolerance to the pcb_print_multizone_1 test 2022-11-23 20:07:38 -03:00
Salvador E. Tropea 0590555350 [Tests][Fixed] QR Lib test
- The transparency interferes with zbarimg
- A side effect of almost invisible text in PDF
2022-11-23 19:00:47 -03:00
Salvador E. Tropea eee7b5d75b [Test][Fixed] test_diff_git_4 needs eeschema 2022-11-07 12:51:39 -03:00
Salvador E. Tropea dbea3ca183 [BoM][Added] Option to link to Mouser site. 2022-11-07 10:50:58 -03:00
Salvador E. Tropea c3f426a1d5 [Diff][Fixed] Problems when missing file from repo
- When comparing to a repo point where the PCB/SCH didn't exist yet.
Closes #323
2022-11-05 14:37:19 -03:00
Salvador E. Tropea 8d3696796b [Test] Adapted to the new downloader API 2022-10-24 13:19:04 -03:00
Salvador E. Tropea 491c598afb [iBoM] Added support for the `offset_back_rotation` option 2022-10-24 12:58:36 -03:00
Salvador E. Tropea c79e5b0b0f [PcbDraw] Better support for variants
- All variant stuff is applied
- A new mode allows to get a more coherent behavior for the show_components
2022-10-19 10:19:00 -03:00
Salvador E. Tropea bb6b0c6141 [PcbDraw] Replaced `unit` code
- So we have only one units conversion
- I think the only difference is that KiBot code currently supports
  the locales decimal point
2022-10-18 09:57:56 -03:00
Salvador E. Tropea 838129e69c [PcbDraw] Embedded the PcbDraw.plot code
- Now PcbDraw is not a dependency of out_pcbdraw.py
2022-10-17 12:58:06 -03:00
Salvador E. Tropea a337028007 [Internal BoM] Added some basic support for "Exclude from BoM" flag
Related to #316
2022-10-11 11:46:00 -03:00
Salvador E. Tropea 1106708a6d [Fixed][Position] Wrong side classification
- When the side column wasn't the last column

Closes #313
2022-10-06 08:59:15 -03:00
Salvador E. Tropea 1d0c2307c5 [Tests] Compare 100% height of PcbDraw images
- Also added some tollerance, with this v1.0.0 is passing the tests.
2022-09-29 10:47:06 -03:00
Salvador E. Tropea 54b7cfb2a7 [Test] More image tollerances 2022-09-23 12:50:31 -03:00
Salvador E. Tropea 20f324087f [Tests] Marked test_drc_filter_2 as slow 2022-09-23 12:33:22 -03:00
Salvador E. Tropea 51193541f0 [Test] More compare tollerances 2022-09-23 10:05:00 -03:00
Salvador E. Tropea 3f4448ffce [Tests] More image tollerance 2022-09-23 09:55:46 -03:00
Salvador E. Tropea 1b597043f5 [Tests] Added same tollerance to all diff checks 2022-09-23 09:49:53 -03:00
Salvador E. Tropea 8392f468ae [Tests] Added some tollerance to img compare for non Debian 2022-09-23 09:43:57 -03:00
Salvador E. Tropea b989d1aaa3 [Tests] Fixed condition in last patch 2022-09-23 09:39:54 -03:00
Salvador E. Tropea 80d69acaa6 [Tests] Avoid comparing the text in diffs when not Debian 2022-09-23 09:35:57 -03:00
Salvador E. Tropea 1f7cff4fe8 [Tests] Delay the get_path patch, needed by Python 3.10 2022-09-23 08:41:31 -03:00
Salvador E. Tropea 1042edbb0e [Update_XML] Correct error when using wrong value 2022-09-21 12:41:30 -03:00
Salvador E. Tropea 58b7958899 [Update_XML] Now you can check PCB and schematic parity
Related to #297
2022-09-21 11:33:26 -03:00
Salvador E. Tropea 6eaa09beea [Tests] Added test for --no-warn 2022-09-21 08:31:10 -03:00
Salvador E. Tropea 82229e126d [Copy_Files] Made 3D models use the project path as base
- To avoid problems when KiCad is running from other place
2022-09-21 08:00:58 -03:00
Salvador E. Tropea e2fdf87d6b [Copy_Files] Now you can copy the 3D models
- Also save a PCB modified to use them
- Changed the syntax so we can copy other stuff
2022-09-20 13:13:12 -03:00
Salvador E. Tropea 488f2dcbc2 [Global options] Now the global `dir` option also applies to the preflights
- Can be disabled using `use_dir_for_preflights`.

Closes #292
2022-09-15 09:33:57 -03:00
Salvador E. Tropea d01943ed87 Added support for 3D models aliases
- Also a global option to define them in the KiBot configuration

Related to #261
2022-09-14 09:38:47 -03:00
Salvador E. Tropea 418b74b2f3 Environment and text variables now can be used as 3D model aliases.
- Environment and text variables expansion is now recursive.
  So in `${VAR}` the *VAR* can contain `${OTHER_VAR}`

Related to #261
2022-09-14 07:30:13 -03:00
Salvador E. Tropea 08a0628eff Added some basic preprocessing
- Now you can parametrize the YAML config.

Related to #233 and #243
2022-09-13 13:31:25 -03:00
Salvador E. Tropea 661677608e [Internal BoM] Added CSV aggregate
Related to #248
2022-09-13 09:25:14 -03:00
Salvador E. Tropea 877695378c [Fixed][Diff] Link name for git diffs
- Also adapted file test to new name
2022-09-09 13:30:27 -03:00
Salvador E. Tropea 241eca63ff [PCB Print] Added option to customize the page numbers
Related to #283
2022-09-08 07:24:56 -03:00
Salvador E. Tropea 6354ccdd7d [Diff] More changes to the link name
- Adding the tag to branches
2022-09-07 10:52:51 -03:00
Salvador E. Tropea fe9bf9e18b [Tests][Diff] Added link check 2022-09-06 09:18:10 -03:00
Salvador E. Tropea a4abb65ef3 [Diff] Added support for stashing submodules
Related to #265
2022-09-05 13:35:04 -03:00
Salvador E. Tropea 1ff365b572 [Tests] Moved the schematic diff to the slow tests 2022-09-02 07:48:04 -03:00
Salvador E. Tropea e9e4225b16 [Diff] Added option to copy instead of link
Closes #272
2022-09-02 07:16:16 -03:00
Salvador E. Tropea cabf14ec07 [Diff][Fixed] Always comparing the PCB
- Added regression test

Fixes #273
2022-09-02 07:03:57 -03:00
Salvador E. Tropea d8d8552883 [Diff] Now the %i is diff_pcb for the PCB and diff_sch for the sch
Related to #265
2022-09-01 14:13:28 -03:00
Salvador E. Tropea 6b344a094b [Diff][Fixed] Problems when no changes to stash
- "git stash push" always returns 0, even if nothing was stashed.
- But "git stash pop" returns 1 if nothing stashed.
- So now we check using "git stash list".

Related to #265
2022-08-31 07:50:09 -03:00
Salvador E. Tropea 5bf773a070 [Tests] Fixed problems in systems where git isn't configured 2022-08-25 13:38:23 -03:00
Salvador E. Tropea 464b72e8f1 New output to compute differences between PCBs and SCHs.
Fixes INTI-CMNB/KiAuto#14
2022-08-25 13:02:02 -03:00
Salvador E. Tropea 85538b0b27 [Global options] Restore the project at exit
Related to #250
2022-08-19 09:39:25 -03:00
Salvador E. Tropea 292105b6f8 [Tests] Added test for --dont-stop 2022-08-12 11:17:23 -03:00
Salvador E. Tropea 83c7d10ba0 [Tests] Added regression test for KiCad 6 nested zones 2022-08-12 10:44:23 -03:00
Salvador E. Tropea 553d47f533 [BoM] Added support for text variables expansion
- Is done using a filter, the expansion is done at the end, but
  the filter can be applied at any point in the filter/variant
  chain.
Fixes #247
2022-08-12 09:09:09 -03:00
Salvador E. Tropea 75afab0d40 [Test] Fixed drc filters tests cases
- Added silk_over_copper exclusion
- Skipped test_drc_filter_2 for KiCad 5 (is for KiCad 6)
2022-08-10 18:39:43 -03:00
Salvador E. Tropea c5a6d894c9 [DRC] Added Workaround for problems with DRC exclusions
- Global option: `drc_exclusions_workaround`
- KiCad bug [11562](https://gitlab.com/kicad/code/kicad/-/issues/11562)
Fixes INTI-CMNB/KiAuto#26
2022-08-10 14:01:32 -03:00
Salvador E. Tropea 528a58afe1 [Tests] Fixed missing GS.ki* in kiconf_init.py 2022-08-01 18:54:28 -03:00
Salvador E. Tropea 6c7e0cebe0 Now GS.ki5() and GS.ki6() are just GS.ki5 and GS.ki6
- The version doesn't change during execution ;-)
2022-07-31 17:45:55 -03:00
Salvador E. Tropea adcd77a821 [Experiment] Trying to figure out why KiAuto isn't using the interposer 2022-07-30 12:48:31 -03:00
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 061ed0488e [Tests] Separated kicad2step, pcbnew and eeschema tests 2022-07-14 19:23:28 -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 4765121e3f [Tests] ImageMagick available again 2022-07-13 06:32:11 -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 54e14f0443 [Tests] Marked dep_convert as failing
- The AppImage is missing
2022-07-09 20:30:11 -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 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