Commit Graph

733 Commits

Author SHA1 Message Date
Salvador E. Tropea 415e97e84b [Tests][Added] --list-variants 2024-01-09 08:45:37 -03:00
Salvador E. Tropea c637dd50c6 [Tests][Added] --list --no-names 2024-01-09 08:35:40 -03:00
Salvador E. Tropea 89d1721adf [Tests] Cover the banners generation code 2024-01-09 08:20:34 -03:00
Salvador E. Tropea 19b29f6f6d [Tests][Fixed] RAR fail test
- Now uses _run_command, so we need to patch it
2024-01-08 13:01:53 -03:00
Salvador E. Tropea 6f7d425ee1 [flake8] Fixed reported issues 2024-01-05 09:33:42 -03:00
Salvador E. Tropea d7392d59ec [Fixed] Spell errors 2024-01-05 09:09:58 -03:00
Salvador E. Tropea cf88b27dde [Tests] Adapted test_int_bom_no_xlsx_support
Now we fail if the XLSX couldn't be created
2024-01-05 07:47:54 -03:00
Salvador E. Tropea f28540d9cc [Tests][Fixed] Quick Start test
- To include the project, now mandatory
2024-01-02 10:46:45 -03:00
Salvador E. Tropea 2611358432 [Tests][Fixed] Message for no rotations
Now it says "and/or offsets"
2023-11-17 11:16:03 -03:00
Salvador E. Tropea 4edf9138b3 [Tests][Position][Fixed] Now R3 has fields and doesn't match 2023-11-16 12:50:23 -03:00
Salvador E. Tropea 7774db11d9 [Tests] Adapted to the new behavior
- Removed bogus componentes in test_v5 PCBs
- Accounted for R3 in kibom-variant_3 PCB
2023-11-16 11:20:24 -03:00
Salvador E. Tropea 8f841fe996 [Test][KiCad 7.0.8] Avoid diff between KiCad 6 and 7 files
- 7.0.8 seems to apply some adjust to v6 files
2023-10-18 10:26:48 -03:00
Salvador E. Tropea d0c489e2cc [Position][Added] Experimental support for gerber position files
Closes #500
2023-10-02 12:36:16 -03:00
Salvador E. Tropea c216d4bfde [Sub PCBs][Fixed] Using annotation method
- For some edeges and KiCad versions

Closes #496
2023-10-02 10:05:33 -03:00
Salvador E. Tropea 4334de0277 [Tests][Fixed] Adapted to extra info in layer not used 2023-09-07 07:48:58 -03:00
Salvador E. Tropea 390da80f7c [BoM][Added] LCSC links
From SchrodingersGat/KiBoM#190
2023-09-01 13:51:15 -03:00
Salvador E. Tropea 572204a5b2 [Update XML][Fixed] Error when using "Exclude from BoM" (KiCad 6)
- Parity for these components can't be checked. KiCad 7 fixes it.
  Now we just print a warning.
- Also fixes *exclude_from_bom* mismatch on KiCad 7
- Also fixes *Sheetfile* mismatch on KiCad 7 when testing from different
  directory

Fixes #486
2023-08-30 09:22:01 -03:00
Salvador E. Tropea 9915bbd7ae [Help] Small fixes
- To keep the output similar to previous behavior
- Also adapted some tests to new markup
2023-08-29 09:45:17 -03:00
Salvador E. Tropea 49973b49cb [Flake8] Small changes suggested by flake8 5.0.4 2023-08-11 13:33:54 -03:00
Salvador E. Tropea cce2ba27ef [Dep Downloader][Added] Partial workaround for broken pip
- On Debian 12 pip installs to _root_/_prefix_/*local*/_dir_
  and not _root_/_prefix_/_dir_.
2023-08-10 12:51:04 -03:00
Salvador E. Tropea 9370999482 [Tests][Added] Support for Debian 12 pip 2023-08-10 09:58:36 -03:00
Salvador E. Tropea 7bc3f11a2b [Dep Downloader] Added support for PEP668 compliant Debian pip 2023-08-10 09:20:02 -03:00
Salvador E. Tropea abeea7ec03 [Global options][Add] Option to remove solder mask apertures
`remove_solder_mask_for_dnp` similar to `remove_solder_paste_for_dnp`
but applied to the solder mask apertures.

Closes #476
2023-08-04 12:31:17 -03:00
Salvador E. Tropea 9c6ca87214 [iBoM][Added] Support for 2.7.0
- Pin 1 highlight changes
- The packaged iBoM is compatible with 2.6.0
- A patch to make it compatible was merged in upstream
- Current release reports a wrong version
2023-08-04 06:59:54 -03:00
Salvador E. Tropea d24505353b [Tests][Fixed] Tolerate F.Adhes in comments 2023-06-12 09:51:24 -03:00
Salvador E. Tropea 7a7beff556 [Diff] Changed repo protection to worktree mechanism
- As suggested by @matthijskooijman on #443
- This is cleaner than trying to use stash push/pop
- The old method is available
2023-06-06 12:53:19 -03:00
Salvador E. Tropea 336a5521a6 [Tests] Also disabled panelize compare for non-Debian 2023-06-01 11:05:36 -03:00
Salvador E. Tropea 1ee4182078 [Tests] Disabled some tests when using Ubuntu
- KiCad still say v7.0.5
- Big differences for these tests
2023-06-01 09:26:42 -03:00
Salvador E. Tropea 0ddc02c51d [Electro-grammar][Fixed] Problems with floating point tolerances
- i.e. 0.1%
Fixes #447
2023-05-29 10:09:05 -03:00
Salvador E. Tropea 5d99e8c2cd [Fixed][Tests] Name of the silk screen layers for KiCad 5 2023-05-24 12:43:44 -03:00
Salvador E. Tropea 281ed3be7e [Imports][Added] Allow to define @TAGS@ values during import
- Also added defaults
- BTW: disabled the YAML lint crap that insists in checking excluded
  files
2023-05-24 09:39:06 -03:00
Salvador E. Tropea e7cde1164c [Diff][Fixed] Assumption that all tags are in the trunk
- As stated by @matthijskooijman in
  91ffb04661c40102bfb856669039f0825ecc6883#r113724588 comment
  using --tags isn't necessary and includes *all* tags
- The code also assumed nothing was added before the "tag: "
  label, but this isn't true if the HEAD is tagged.
2023-05-17 10:53:43 -03:00
Salvador E. Tropea 0ffca702d7 [Tests] Cleaner mechanism for test_diff_file_sch_1
- Taking advantage of -E option
- So we avoid comparing the v7 file with the v6 file
2023-05-17 09:40:08 -03:00
Salvador E. Tropea 27c6d91e6e [Tests] Don't run import_7 in parallel 2023-05-16 10:53:05 -03:00
Salvador E. Tropea b1c268b4c6 [Tests] Adapted for new KiCost
- KitSpace no longer supported
2023-05-15 13:39:26 -03:00
Salvador E. Tropea 8404cd7613 [Tests][Fixed] test_step_alias_2 fails
- Cascaded by other fails
2023-05-12 09:51:45 -03:00
Salvador E. Tropea 05ef06ba88 [Tests] Changed spec_to_field_1
- No more KitSpace
2023-05-10 11:28:28 -03:00
Salvador E. Tropea 6be9cbecef [Filters][Added] `spec_to_field`
- To extract information from the distributors specs and put in fields.
  I.e. RoHS status.
2023-05-05 11:25:34 -03:00
Salvador E. Tropea a1f78c296e [Filters][Added] New `generic` filter options
- `exclude_not_in_bom` and `exclude_not_on_board` to use KiCad 6+ flags

Closes #429
2023-05-05 06:37:34 -03:00
Salvador E. Tropea 61a8fe7885 [Filters][Added] `value_split`
- To extract information from the Value field and put it in separated
  fields. I.e. tolerance, voltage, etc.
2023-05-03 14:09:35 -03:00
Salvador E. Tropea fcf4871e38 [v6/v7 Schematic] Reworked the UUID mechanism
- Now we generate valid UUIDs for all things
- KiCad 6 support
- Better tests, forcing to reload the generated files
2023-04-27 15:06:29 -03:00
Salvador E. Tropea 6dcdb0b363 [Tests][Added] For value change in shared sheets 2023-04-25 13:24:12 -03:00
Salvador E. Tropea f603f8af7a [Tests][Add] Support for the nightly image
- It defines KICAD_PATH pointing to the nightly dir
2023-04-18 11:25:51 -03:00
Salvador E. Tropea 43a2bea49d [Tests] Separated independent tests
- Tests that doesn't depend on the KiCad version
- So they aren't run 6, 8 or even more times
- Hopefuly will reduce download issues in dep tests
2023-04-18 07:31:42 -03:00
Salvador E. Tropea 118864e851 [Tests] Added more tolerance to include 7.0.2
- Without changing the references
- test_pcb_print_simple_1
- test_panelize_1
2023-04-17 13:46:59 -03:00
Salvador E. Tropea b0da1851e7 [Tests][KiCad 7][Added] Workaround for bogus ERC messages
- Missing simulation model!
2023-04-17 12:59:03 -03:00
Salvador E. Tropea bb7a0cc36c [Tests] Added more tolerance for the fill test
- Needed by 7.0.2
2023-04-15 20:03:01 -03:00
Salvador E. Tropea e708aee42d [Tests][Added] Test for netclass flags 2023-04-15 20:02:13 -03:00
Salvador E. Tropea 9f5618d995 [Tests][KiCad 8] Disabled sch/pcb parity check
- Doesn't work on KiCad 8, missing patch
2023-04-13 11:25:45 -03:00
Salvador E. Tropea 50040a9355 [Tests][ERC][KiCad 8] Warning test now needs a project
- Avoid removing it
2023-04-13 11:24:44 -03:00
Salvador E. Tropea c8cbbcdd27 [Tests][Print PCB] Give some tolerance to the tests 2023-04-13 11:20:22 -03:00
Salvador E. Tropea 4f33c6b775 [Tests][KiCad 8] Added some tolerance to the sub pcb pcbdraw tests 2023-04-11 11:27:45 -03:00
Salvador E. Tropea 58417e428d Merge branch 'dev' of https://github.com/INTI-CMNB/KiBot into dev 2023-04-04 13:50:58 -03:00
Salvador E. Tropea 6feddd06a5 [Added] Mechanism to install fonts and colors 2023-04-04 13:49:21 -03:00
Salvador E. Tropea 3221a7fe00 [PCB Print][Fixed] Problems with images in the WKS (KiCad 5/6)
- Added regression test
2023-04-01 18:07:51 -03:00
Salvador E. Tropea 69c2890a10 [Tests] Added for the last grammar changes 2023-03-31 10:47:33 -03:00
Salvador E. Tropea 9811972ace [PCB/SCH parity] Check for value and fields/properties 2023-03-31 08:45:09 -03:00
Salvador E. Tropea 2f8e416f06 [PCB/SCH Parity] Added support for bogus net codes
Fixes #410
2023-03-31 07:43:31 -03:00
Salvador E. Tropea 158f267eb5 Support for extra data in the Value field
- Currently we just use the tolerance for the 3D resistors
- Uses a port of the JavaScript Electro-Grammar
2023-03-30 12:39:36 -03:00
Salvador E. Tropea 05105cdc9a [3D] colored 3D models for THT resistors 2023-03-20 14:26:09 -03:00
Salvador E. Tropea e3bfaaece5 [Tests] Enabled the test_update_xml_2 again
- Will try to switch the tests to 7.0.1.1
2023-03-16 07:40:45 -03:00
Salvador E. Tropea def3e46954 [Tests] Disabled test_update_xml_2 on KiCad 7
- This is temporal because the nightly has a wrong version.
2023-03-16 07:30:22 -03:00
Salvador E. Tropea 6eb631d5bd [Tests] Relaxed the test_render_3d_variant_1 test
- Having problems with new KiCad 6 images
2023-03-14 11:32:55 -03:00
Salvador E. Tropea 31cf802b89 [KiCad 7] Added global option to use KiCad to cross components 2023-03-09 09:34:25 -03:00
Salvador E. Tropea e27753a8d6 [Tests] Added KiKit tests
- stencil 3D, steel stencil and panel
- Bumped dependency to 1.3.0, needed for KiCad v7
  A patched version is needed ...
2023-03-03 10:53:23 -03:00
Salvador E. Tropea acf136e992 [Tests][Gerber] Adapted KiCad v7 test
- Now KiCad is fixed
2023-03-01 09:12:58 -03:00
Salvador E. Tropea 6f947fa7a7 [Tests] Adapted a KiCad 5 specific test for errors in the sym-lib-table 2023-03-01 08:04:46 -03:00
Salvador E. Tropea 4fe0c9dbd4 [Tests] Adapted to the new lib table parser 2023-03-01 07:47:55 -03:00
Salvador E. Tropea 70d716e561 [3D Models] Added support for models relative to libs
- New on KiCad v7, but will work for olders
2023-02-28 14:00:55 -03:00
Salvador E. Tropea c7a1a25369 [Tests][KiCad 7] More adjusts to the references
Introduced by:
- Fixes in the vertical alignment of text in the PCB
- A much usable default for the edge to copper distance
2023-02-28 07:32:09 -03:00
Salvador E. Tropea 4da38de4a8 [ERC][KiCad 7] Added option to specify the grid size
- `erc_grid` to specify the grid size for KiCad 7 ERC tests

See https://gitlab.com/kicad/code/kicad/-/issues/14110
2023-02-28 06:17:20 -03:00
Salvador E. Tropea f91bb5c01f [Tests] Added some schematic PS, HPGL and DXF examples
- Used to verify kicad-cli patches
2023-02-25 14:33:38 -03:00
Salvador E. Tropea 3d1e5389c8 [Tests] Ignore footprint missmatches in test_import_7 2023-02-24 18:47:19 -03:00
Salvador E. Tropea 09f845240a [Tests] Separated the KiCad v7 DRC test (bom) from the one used for other tests
- Again
- It must contain a special 3D model
2023-02-24 14:05:27 -03:00
Salvador E. Tropea 53ea61a555 [Tests] Adapted v7 DRC test to fix MR 1536 2023-02-24 12:37:12 -03:00
Salvador E. Tropea d15a97f02e [Any Layer][KiCad 7] Added support for Edge.Cuts inclusion
- Should be available in KiCad 7.0.1
- Was bug 13841, now closed
2023-02-16 09:19:33 -03:00
Salvador E. Tropea 28ef08c00a [Update XML][KiCad 7] Enabled the board parity check
- Needs a patched KiCad, waiting for patch aproval (Bug 13921)
2023-02-16 09:16:52 -03:00
Salvador E. Tropea f84b49bd2a [Preflight][KiCad 7] Updated preflight references and tests
- Disabled PCB parity, API broken
2023-02-14 12:28:07 -03:00
Salvador E. Tropea 7033dd849d [Tests][KiCad 7] Added code to make 3Rs pass DRC 2023-02-13 09:52:08 -03:00
Salvador E. Tropea cb58a72ebd [Tests] Adapted the KiCad config error tests to KiCad 7 2023-02-10 13:50:20 -03:00
Salvador E. Tropea c39d21f3cf [Global Options] Added field_lcsc_part: to select the LCSC/JLCPCB part field 2023-01-28 17:59:23 -03:00
Salvador E. Tropea ac14910505 [Tests] Avoid caching bogus 3D models in copy_file tests 2023-01-28 11:55:27 -03:00
Salvador E. Tropea 33cd75672b [Tests] Changed caplog level for dep_downloader 2023-01-27 11:47:22 -03:00
Salvador E. Tropea 8506fb78db [Report][Fixed] Computed size
- When using circles and some arcs in the PCB edge

Closes #375
2023-01-25 11:05:01 -03:00
Salvador E. Tropea 45b1e27d5e [Tests] Adapted for the new Blender output name 2023-01-18 21:08:07 -03:00
Salvador E. Tropea 39ac2e1013 [Test] Added some extra debug to test_dep_downloader 2023-01-18 16:54:57 -03:00
Salvador E. Tropea 96daf7e4a8 [Tests] Added very naive Blender test 2023-01-17 19:45:57 -03:00
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