thesourcerer8 / altium2kicad

Altium to KiCad converter for PCB and schematics
https://www2.futureware.at/KiCad/
GNU General Public License v2.0
863 stars 155 forks source link

Create a testsuite to prevent conversion regressions #1

Open mithro opened 9 years ago

mithro commented 9 years ago

Firstly, this project is pretty awesome! Sadly a huge amount of the most complicated FOSS hardware is in Altium format :-( The guys from Upverter seem to have attempted to do something similar with https://github.com/upverter/schematic-file-converter but they seem to have gotten distracted.

It would be good if you had a test suite which checked that all the simple conversions worked properly.

I'm happy to help you create some basic Altium designs which cover various features you want to test. Do you want to create a list of things?

With PCB designs, I was thinking you could get kicad to generate gerber files from your generated kicad_pcb file and then compare them to the gerb files that Altium produces?

thesourcerer8 commented 9 years ago

Hi Tim,

Great that you like it! Yes, I saw Upverter, but I decided that I have to do it myself in Perl, otherwise I would loose too much time in figuring out Python. Another disadvantage of Upverter is that they have an intermediate format, so I woud have to fight 3 projects: Altium-Intermediate, Limitations in the Intermediate and Intermediate-KiCad. But I hoped that someone would take my results and feed them into the Upverter converter, so that all other tools can profit as well.

Yes, a testsuite would be great. I do not have an Altium license, therefore I cannot produce one myself. Please create it! Feel free to create the list of things yourself.

I have been comparing the gerber files from Altium to my converted files, I think that it is now in a stage that it starts making sense to compare both gerbers with each other.

Best regards, Sourcerer

Tim Ansell notifications@github.com schrieb:

Firstly, this project is pretty awesome! Sadly a huge amount of the most complicated FOSS hardware is in Altium format :-( The guys from Upverter seem to have attempted to do something similar with https://github.com/upverter/schematic-file-converter but they seem to have gotten distracted.

It would be good if you had a test suite which checked that all the simple conversions worked properly.

I'm happy to help you create some basic Altium designs which cover various features you want to test. Do you want to create a list of things?

With PCB designs, I was thinking you could get kicad to generate gerber files from your generated kicad_pcb file and then compare them to the gerb files that Altium produces?


Reply to this email directly or view it on GitHub: https://github.com/thesourcerer8/altium2kicad/issues/1

vadmium commented 9 years ago

About the Upverter project, I had a look at that early this year and their Altium support was not much use. It did not parse the blocks of the OLE file format properly in the right order, and didn’t do anything more than pulling apart low level parameter names and values.

thesourcerer8 commented 9 years ago

Could anyone please create Altium test-files which include a single asymmetric component from a STEP file, and have this part rotated in all 3 axis (X,Y,Z) with angles like 0°,90°,180°,270° , and save every combination into a seperate .PcbDoc, and have screenshots of the resulting 3D models? That would help me a lot to figure out how to correctly rotate them.

thesourcerer8 commented 9 years ago

I solved the rotation issue, I think.

mithro commented 9 years ago

@thesourcerer8 We should come up with list of items which need to be created (I'm assuming starting with basic things like vias, pads, traces is probably a good idea). If you dump them into this issue (or maybe a TESTS.md file in the repo) I'll go about getting them created over the next couple of weeks.

If you use the following markdown format, we'll even get awesome checklists showing :)

 - [ ] Something yet to be done
 - [x] Something finished
thesourcerer8 commented 9 years ago

I started comparing the Gerber outputs a few days ago, and working to synchronize them. The method works, it already helped to improve a number of issues. I am using the Gerber viewer from KiCad, load the 2 different gerber files from a same layer into different layers, and then I automatically have a 4 color diff between both gerber files.

thesourcerer8 commented 9 years ago

Ok, I created the Tests.md file in the Repo, please help creating those tests.

mithro commented 9 years ago

I'll try and get you these but it won't happen before next week. If someone else wants to beat me to it, go ahead :)

thesourcerer8 commented 6 years ago

I developed 2 tools for regression-testing now, to support the refactoring that was necessary for .PcbLib support. One prepares the tests and does an initial conversion with all .PcbDoc files in a directory. The second one then does a regression test, it runs the conversion with a new version of convertpcb.pl and then it compares the output, and displays differences. Should I add those 2 small tools into the repository?

cdwijs commented 5 years ago

Hi All, I've made Altium test files: https://github.com/thesourcerer8/altium2kicad/pull/60 Please let me know if you need more.