X-Authentication-Warning: delorie.com: mail set sender to geda-user-bounces using -f X-Recipient: geda-user AT delorie DOT com X-Original-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:from:date:message-id:subject:to; bh=JiX6GBi9Y8l43cBO8Feao2puE5iGTUbxktqTzaU1G+Y=; b=zpCD2ZQm6HBJxOSWFHBu1A22t78l7+CtNtqmZqxIMwKNLccJOqMqXKs67NEO43Y/WF YP8JbZj6rEKDuyYO2jt9YTl2VkBkAd5udm8lV/EmH1Rngzc1VRtRGVSJw1JlgHxYejbV RebfOmqy6k0fi7heWs2LrI7Nudt4u/vB8PFdpiE25QtsIc+l0r+FfYuHcRyIzXUekX7v 7kx+erIy7bUsGVbrD3iiy7fPTjzoYw5/ewWjM+lgQgP02Z24bIdDS/y8NiA3KV4RXsBa fChGzW9LRMy+jz846oI/xw7ogmq7z1/yCd35sz7jqh/7gn2xLLe9hvdWStM65iMl6c3u xC5g== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:mime-version:from:date:message-id:subject:to; bh=JiX6GBi9Y8l43cBO8Feao2puE5iGTUbxktqTzaU1G+Y=; b=aX45eQ4v+hNdLf+lmutnCIsuZVqemuILCh5oHmLQ/8QiEL/BvYup129EKMYvgXRMJ5 8TlUw6x4KkL6YWKqPBG3E+zGudr8lFPDUhi74aa62UCR2T2g/0WdpOjDERjtGDDA54+0 heuw1k18VRrPmmtuG7gzByOl2QGLC50GSRyYAI4zaHMFPWqczaSTrxLQORNtgXP8WWvj jRtr0RELcttXwtT7/7WJQyIuROXQDD8DbnImxWrgWbRJqaQRKdOM9v9SHIa6jUROxf75 kdxfZSVZ1cvcoyw9kkBIE6ys5Guragclu5arFjrYns7bSGawmSrdnGFG3nxLueNNOma1 z88g== X-Gm-Message-State: AEkoouvK5prUN4N5SdWBQ2O9Q8mw9causoNetCERBqxLCNPWpdLQpLfga/IyLszR1UBmWYohbP/L2ZkPHLuCGw== X-Received: by 10.194.38.166 with SMTP id h6mr74581834wjk.101.1470434250932; Fri, 05 Aug 2016 14:57:30 -0700 (PDT) MIME-Version: 1.0 From: "Britton Kerin (britton DOT kerin AT gmail DOT com) [via geda-user AT delorie DOT com]" Date: Fri, 5 Aug 2016 13:57:30 -0800 Message-ID: Subject: [geda-user] which test interface should I use? To: geda-user AT delorie DOT com Content-Type: text/plain; charset=UTF-8 Reply-To: geda-user AT delorie DOT com I want to add tests for the geometry/drc cleanup I wrote. It looks like there are two approaches already in use in pcb: * main-test.c to run tests via g_test interface of glib * pcb/tests has a setup to run pcb in batch mode and compare the output to 'golden' versions Are we trying to favor one or the other of these? It's a toss-up which would be better as far as I can see. The first would still need to start from input pcb files to be convenient (so those would have to be added somewhere) and the result would be less easy to hand-verify, but the changed interfaces could be called more directly. The second might yield a fragile test (since it just used diff with golden file) and would require factoring test into Actions (so less direct test), but would more easily generate a human-viewable test result. Britton.