Date: Sat, 15 Nov 2008 12:10:15 +0300 From: "Alexander Churanov" <alexanderchuranov@gmail.com> To: "Alexander Leidinger" <Alexander@leidinger.net> Cc: freebsd-current@freebsd.org Subject: Re: Unicode-based FreeBSD Message-ID: <3cb459ed0811150110w14b4c369q54e8cc1ed11fc5a5@mail.gmail.com> In-Reply-To: <20081113091808.12121w3199o1l2v4@webmail.leidinger.net> References: <3cb459ed0808221700w335b0906g6901d8b8bec4dad9@mail.gmail.com> <200808241415.31812.mitchell@wyatt672earp.force9.co.uk> <6a7033710808241239p1cbdc7adwd4f87814b428b10b@mail.gmail.com> <3cb459ed0808241958v552eafejf7841f0f9993928e@mail.gmail.com> <slrnghj0b8.163f.vadim_nuclight@server.filona.x88.info> <3cb459ed0811110616t76235e72n24f2411a324a9807@mail.gmail.com> <3cb459ed0811110629g5c7cef8ascb024a9c1a920efa@mail.gmail.com> <20081111152011.GF9030@detritus.paeps.cx> <3cb459ed0811120718y755b123g90970461da2773be@mail.gmail.com> <20081113091808.12121w3199o1l2v4@webmail.leidinger.net>
next in thread | previous in thread | raw e-mail | index | archive | help
Alexander, OK, now it's almost clear. Modified and added kernel source files just stay where they are, integration test application goes to "src/tools/regression". The only thing remaining to discuss is unit-tests. Currently I have a single user-mode application that performs unit-tests for UTF-8 decoder. The problem with just moving it to "src/tools/regression" is that unlike integration tests, unit-tests link statically to code they test. For example if I've added file utf8decoder.c to sys/dev/syscons/unicode, then related unit-test application would consist of utf8decoder-test.c and utf8decoder.c, producing "utf8deocder-unit-test" binary. Linking statically to several kernel source files from "src/tools/regression" and compiling them separately for that purpose seems very obscure for me. Isn't it? For my working copy I've chosen the following way: put unit-test sources under sys/dev/syscons/unicode with their own Makefiles and let them compile kernel source files in their own way. As I understand, this does not interfere with currently used kernel build system, since those unit-test sources are not listed in kernel build description file. The purpose of this discussion is to verify that this approach is allowed for the FreeBSD kernel. Is this permitted? Alexander Churanov
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?3cb459ed0811150110w14b4c369q54e8cc1ed11fc5a5>