From owner-freebsd-current@FreeBSD.ORG Sat Nov 15 09:10:17 2008 Return-Path: Delivered-To: freebsd-current@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 63EB51065676 for ; Sat, 15 Nov 2008 09:10:17 +0000 (UTC) (envelope-from alexanderchuranov@gmail.com) Received: from nf-out-0910.google.com (nf-out-0910.google.com [64.233.182.188]) by mx1.freebsd.org (Postfix) with ESMTP id D9BF88FC14 for ; Sat, 15 Nov 2008 09:10:16 +0000 (UTC) (envelope-from alexanderchuranov@gmail.com) Received: by nf-out-0910.google.com with SMTP id h3so995680nfh.33 for ; Sat, 15 Nov 2008 01:10:15 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:received:message-id:date:from:to :subject:cc:in-reply-to:mime-version:content-type:references; bh=/BRVOS0hggCa7wpvVxdDhDWJ2JG672QInim/QfyaB5k=; b=mCChMNEWfqMkvLTSPMLDZFR+aa0lVsqqdUXJqIKLE/ns4Iy2aRTcRcK2mN4/efyPSf RWkZDWEgP/Nsq4nAsLnGEKn4mTGojUlmE0RZblAGo2uvatv4gu7LCy0oXGJzgSMfIIoq wIkrtf1nI+jqChWHap0thIQXylFTb8H7q7TFU= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=message-id:date:from:to:subject:cc:in-reply-to:mime-version :content-type:references; b=ktUa0mIm/eg+zUwTGxjY88X9J7VtlT6vT251JWZr9N9skX0bvLSZphHoL853daGrKW kPsz4XZBY+KZ5/MC0l97lU5Z923dQX8DeQclRtXEXzuY/4n2BGM1bCYJeaS/mglFAO0N idTWYIY8VxiR7AuhuzmxMMCObmAm5F8COl+9w= Received: by 10.210.78.16 with SMTP id a16mr1987056ebb.33.1226740215675; Sat, 15 Nov 2008 01:10:15 -0800 (PST) Received: by 10.210.130.15 with HTTP; Sat, 15 Nov 2008 01:10:15 -0800 (PST) Message-ID: <3cb459ed0811150110w14b4c369q54e8cc1ed11fc5a5@mail.gmail.com> Date: Sat, 15 Nov 2008 12:10:15 +0300 From: "Alexander Churanov" To: "Alexander Leidinger" In-Reply-To: <20081113091808.12121w3199o1l2v4@webmail.leidinger.net> MIME-Version: 1.0 References: <3cb459ed0808221700w335b0906g6901d8b8bec4dad9@mail.gmail.com> <200808241415.31812.mitchell@wyatt672earp.force9.co.uk> <6a7033710808241239p1cbdc7adwd4f87814b428b10b@mail.gmail.com> <3cb459ed0808241958v552eafejf7841f0f9993928e@mail.gmail.com> <3cb459ed0811110616t76235e72n24f2411a324a9807@mail.gmail.com> <3cb459ed0811110629g5c7cef8ascb024a9c1a920efa@mail.gmail.com> <20081111152011.GF9030@detritus.paeps.cx> <3cb459ed0811120718y755b123g90970461da2773be@mail.gmail.com> <20081113091808.12121w3199o1l2v4@webmail.leidinger.net> Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Content-Disposition: inline X-Content-Filtered-By: Mailman/MimeDel 2.1.5 Cc: freebsd-current@freebsd.org Subject: Re: Unicode-based FreeBSD X-BeenThere: freebsd-current@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Discussions about the use of FreeBSD-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 15 Nov 2008 09:10:17 -0000 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