Conversation with #inferno at Sun Mar 14 22:31:37 2010 on powerman-asdf@irc.freenode.net (irc) (22:34:33) powerman-asdf left the room (quit: Ping timeout: 276 seconds). (22:45:46) less1 [~pravin@32.97.110.63] entered the room. (00:08:19) Fish left the room (quit: Remote host closed the connection). (00:50:22) wrtp left the room (quit: Quit: wrtp). (00:55:12) adelfino left the room (quit: Quit: Leaving). (01:36:38) less1 left the room (quit: Ping timeout: 258 seconds). (02:34:46) less1 [~pravin@cpe-66-68-151-36.austin.res.rr.com] entered the room. (02:44:59) adelfino [~username@201-212-160-19.net.prima.net.ar] entered the room. (03:03:31) adelfino left the room (quit: Quit: Leaving). (06:57:53) robot12 [~robot12@robot12.kgts.ru] entered the room. (08:54:28) rapidfx [~host666@vl-cen-ce1.avtlg.ru] entered the room. (09:48:14) wrtp [~rog@78.148.233.118] entered the room. (09:48:47) less1 left the room (quit: Quit: Leaving.). (11:37:54) powerman: what you think about best place to store tests? (11:38:39) powerman: in perl world, app/module usually have t/ subdir with *.t test files (11:39:23) powerman: is it better to keep test files in /appl/ together with app/module source? (11:40:10) powerman: or create /t/ in root directory just like /dis/ and /module/? (11:42:25) powerman: tests are somewhat different from usual applications/modules, because there no sense in installing them in globally-accessible directories like /dis/ - no one will run tests after application was installed (11:44:07) mkn [~7c7cdbfa@gateway/web/freenode/x-fzsiapmsvfhnybjp] entered the room. (11:46:06) powerman: as for 3rd-party app/modules in /opt isn't not really important where and how they will keep tests - just setup mkfile to make sure `mk test` will run these test (11:47:06) powerman: but standard app/modules also may sometimes need tests (11:51:53) powerman: for example, you wanna write some tests for appl/lib/deflate.b (~1500 loc) - you'll likely need to write several test files, and these tests will require few additional data files (11:53:52) powerman: we can put tests and data files to appl/lib/t/deflate_* or to /t/lib/deflate_* (13:56:15) maht left the room (quit: Ping timeout: 276 seconds). (14:35:10) anth: powerman-asdf1: /lib/deflate (14:36:07) anth: there should just be source (and what's needed to build it) in /appl. (14:36:21) powerman: anth: isn't /lib/deflate is place for data files needed for deflate.dis, not for it's test fixtures junk? (14:36:59) anth: i don't think it's all that different; it's just a question of what the data *does*. (14:37:31) anth: if you wanted /lib/deflate/some-file-needed-for-normal-operation and /lib/deflate/t/test-files, i think that'd make sense, too. (14:39:11) anth: i'm really glad you brought this whole thing up, by the way. i'd been trying to answer the same set of questions for myself for a few months. (14:39:52) powerman: right now I'm developing module with TAP (TestAnythingProtocol) support (14:40:35) powerman: also I've managed to make mkfile which is able to run these tests both in host OS and inside emu (14:41:07) powerman: this make it possible to run tests in host OS using standard tool like `prove` (14:42:43) anth: if you think you're likely to do tests for lots of modules, the other structure that makes sense is /lib/test/modulename/whatever. (14:43:04) anth: particularly given that most modules don't have a /lib/modulename for data today, that'd avoid a lot of /lib polution. (14:44:15) anth: the other thing i'd include in our new /opt standard is /opt/packagename/lib/namespace, with the binds to do an overlay, making the package look as if it were installed globally. (14:44:40) anth: site admins could then choose to either include that in the default namespace or leave it up to users. (14:45:17) anth: unfortunately, i have to run (going to see the president!). back in a few hours. (14:47:55) powerman: actually there some examples of data files in /appl/: ebook/dtd/oebpkg101.dtd, svc/httpd/httpd.suff, demo/camera/camproc.bit, demo/lego/styx.srec, wm/mpeg/c0.vlc... so maybe data files in /appl/ for test isn't really bad thing (14:50:44) powerman: anth: also, can you explain how you wanna bind /opt/packagename/lib/? (16:22:54) mennis [~mennis@adsl-068-016-104-079.sip.asm.bellsouth.net] entered the room. (17:21:23) robot12 left the room. (17:28:42) less1 [~pravin@32.97.110.63] entered the room. (17:39:43) mkn left the room (quit: Quit: Page closed). (18:07:06) The account has disconnected and you are no longer in this chat. You will be automatically rejoined in the chat when the account reconnects.