From patchwork Tue Jun 15 16:33:05 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Petr Vorel X-Patchwork-Id: 1492355 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Authentication-Results: ozlabs.org; spf=pass (sender SPF authorized) smtp.mailfrom=lists.linux.it (client-ip=213.254.12.146; helo=picard.linux.it; envelope-from=ltp-bounces+incoming=patchwork.ozlabs.org@lists.linux.it; receiver=) Authentication-Results: ozlabs.org; dkim=fail reason="signature verification failed" (1024-bit key; unprotected) header.d=suse.cz header.i=@suse.cz header.a=rsa-sha256 header.s=susede2_rsa header.b=x0arYgRV; dkim=fail reason="signature verification failed" header.d=suse.cz header.i=@suse.cz header.a=ed25519-sha256 header.s=susede2_ed25519 header.b=LWtLSo3Z; dkim=fail reason="signature verification failed" (1024-bit key) header.d=suse.cz header.i=@suse.cz header.a=rsa-sha256 header.s=susede2_rsa header.b=x0arYgRV; dkim=neutral header.d=suse.cz header.i=@suse.cz header.a=ed25519-sha256 header.s=susede2_ed25519 header.b=LWtLSo3Z; dkim-atps=neutral Received: from picard.linux.it (picard.linux.it [213.254.12.146]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (No client certificate requested) by ozlabs.org (Postfix) with ESMTPS id 4G4DQT6Y1wz9sW6 for ; Wed, 16 Jun 2021 02:33:20 +1000 (AEST) Received: from picard.linux.it (localhost [IPv6:::1]) by picard.linux.it (Postfix) with ESMTP id 1C1DE3C896C for ; Tue, 15 Jun 2021 18:33:18 +0200 (CEST) X-Original-To: ltp@lists.linux.it Delivered-To: ltp@picard.linux.it Received: from in-6.smtp.seeweb.it (in-6.smtp.seeweb.it [IPv6:2001:4b78:1:20::6]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits)) (No client certificate requested) by picard.linux.it (Postfix) with ESMTPS id 3013C3C2794 for ; Tue, 15 Jun 2021 18:33:16 +0200 (CEST) Received: from smtp-out2.suse.de (smtp-out2.suse.de [195.135.220.29]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits) server-digest SHA256) (No client certificate requested) by in-6.smtp.seeweb.it (Postfix) with ESMTPS id C3E7A1400FA7 for ; Tue, 15 Jun 2021 18:33:15 +0200 (CEST) Received: from imap.suse.de (imap-alt.suse-dmz.suse.de [192.168.254.47]) (using TLSv1.2 with cipher ECDHE-ECDSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp-out2.suse.de (Postfix) with ESMTPS id 5D10E1FD66; Tue, 15 Jun 2021 16:33:15 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=suse.cz; s=susede2_rsa; t=1623774795; h=from:from:reply-to:date:date:message-id:message-id:to:to:cc:cc: mime-version:mime-version: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=lrlxPQVUb5IIbjoES3awXRnyC1CtySKOZARCMOHCV+4=; b=x0arYgRVjBvzVsd4Rg059PMSiZWF9EiQcU/mj0TN34+E90CuokA2fI8NX6rZgBOIUsuRid EKpjnm+gc1LfSQJYy0F9VVOhkVdFf056vi1VvF/hNg3gsInZZQ57B8rF8zJ3L4jP34r14R vWNk+JQy1N2FOsdPRKSJDzrvL2zb978= DKIM-Signature: v=1; a=ed25519-sha256; c=relaxed/relaxed; d=suse.cz; s=susede2_ed25519; t=1623774795; h=from:from:reply-to:date:date:message-id:message-id:to:to:cc:cc: mime-version:mime-version: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=lrlxPQVUb5IIbjoES3awXRnyC1CtySKOZARCMOHCV+4=; b=LWtLSo3Z55zOvf7hqS4POCf8enKRidH29kZs2Ew36K69NeIO2ZIMZjSjP2a9K13GZjL8m+ oo+VkcdtP/svoXAQ== Received: from imap3-int (imap-alt.suse-dmz.suse.de [192.168.254.47]) by imap.suse.de (Postfix) with ESMTP id EF7F1118DD; Tue, 15 Jun 2021 16:33:14 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=suse.cz; s=susede2_rsa; t=1623774795; h=from:from:reply-to:date:date:message-id:message-id:to:to:cc:cc: mime-version:mime-version: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=lrlxPQVUb5IIbjoES3awXRnyC1CtySKOZARCMOHCV+4=; b=x0arYgRVjBvzVsd4Rg059PMSiZWF9EiQcU/mj0TN34+E90CuokA2fI8NX6rZgBOIUsuRid EKpjnm+gc1LfSQJYy0F9VVOhkVdFf056vi1VvF/hNg3gsInZZQ57B8rF8zJ3L4jP34r14R vWNk+JQy1N2FOsdPRKSJDzrvL2zb978= DKIM-Signature: v=1; a=ed25519-sha256; c=relaxed/relaxed; d=suse.cz; s=susede2_ed25519; t=1623774795; h=from:from:reply-to:date:date:message-id:message-id:to:to:cc:cc: mime-version:mime-version: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=lrlxPQVUb5IIbjoES3awXRnyC1CtySKOZARCMOHCV+4=; b=LWtLSo3Z55zOvf7hqS4POCf8enKRidH29kZs2Ew36K69NeIO2ZIMZjSjP2a9K13GZjL8m+ oo+VkcdtP/svoXAQ== Received: from director2.suse.de ([192.168.254.72]) by imap3-int with ESMTPSA id 0IFsN0rWyGDdfQAALh3uQQ (envelope-from ); Tue, 15 Jun 2021 16:33:14 +0000 From: Petr Vorel To: ltp@lists.linux.it Date: Tue, 15 Jun 2021 18:33:05 +0200 Message-Id: <20210615163307.10755-2-pvorel@suse.cz> X-Mailer: git-send-email 2.32.0 In-Reply-To: <20210615163307.10755-1-pvorel@suse.cz> References: <20210615163307.10755-1-pvorel@suse.cz> MIME-Version: 1.0 X-Virus-Scanned: clamav-milter 0.102.4 at in-6.smtp.seeweb.it X-Virus-Status: Clean X-Spam-Status: No, score=0.1 required=7.0 tests=DKIM_SIGNED,DKIM_VALID, DKIM_VALID_AU,DKIM_VALID_EF,SPF_HELO_NONE,SPF_PASS autolearn=disabled version=3.4.4 X-Spam-Checker-Version: SpamAssassin 3.4.4 (2020-01-24) on in-6.smtp.seeweb.it Subject: [LTP] [RFC PATCH 1/3] tst_test.sh: Add $LTPROOT/testcases/bin into PATH X-BeenThere: ltp@lists.linux.it X-Mailman-Version: 2.1.29 Precedence: list List-Id: Linux Test Project List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: Joerg Vehlow , Xiao Yang Errors-To: ltp-bounces+incoming=patchwork.ozlabs.org@lists.linux.it Sender: "ltp" when LTPROOT set. Also TWARN when directory does not exist. Signed-off-by: Petr Vorel --- testcases/lib/tst_test.sh | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/testcases/lib/tst_test.sh b/testcases/lib/tst_test.sh index 8b4e9cb60..970eca7d1 100644 --- a/testcases/lib/tst_test.sh +++ b/testcases/lib/tst_test.sh @@ -697,6 +697,10 @@ if [ -z "$LTPROOT" ]; then export LTPROOT="$PWD" export TST_DATAROOT="$LTPROOT/datafiles" else + if [ ! -d "$LTPROOT/testcases/bin" ]; then + tst_res TWARN "$LTPROOT/testcases/bin does not exist, is \$LTPROOT properly set?" + fi + export PATH="$LTPROOT/testcases/bin:$PATH" export TST_DATAROOT="$LTPROOT/testcases/data/$TST_ID" fi From patchwork Tue Jun 15 16:33:06 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Petr Vorel X-Patchwork-Id: 1492357 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Authentication-Results: ozlabs.org; spf=pass (sender SPF authorized) smtp.mailfrom=lists.linux.it (client-ip=2001:1418:10:5::2; helo=picard.linux.it; envelope-from=ltp-bounces+incoming=patchwork.ozlabs.org@lists.linux.it; receiver=) Authentication-Results: ozlabs.org; dkim=fail reason="signature verification failed" (1024-bit key; unprotected) header.d=suse.cz header.i=@suse.cz header.a=rsa-sha256 header.s=susede2_rsa header.b=W6q0xUv1; dkim=fail reason="signature verification failed" header.d=suse.cz header.i=@suse.cz header.a=ed25519-sha256 header.s=susede2_ed25519 header.b=EL/jUrew; dkim=fail reason="signature verification failed" (1024-bit key) header.d=suse.cz header.i=@suse.cz header.a=rsa-sha256 header.s=susede2_rsa header.b=W6q0xUv1; dkim=neutral header.d=suse.cz header.i=@suse.cz header.a=ed25519-sha256 header.s=susede2_ed25519 header.b=EL/jUrew; dkim-atps=neutral Received: from picard.linux.it (picard.linux.it [IPv6:2001:1418:10:5::2]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits)) (No client certificate requested) by ozlabs.org (Postfix) with ESMTPS id 4G4DQr6KNbz9sRK for ; Wed, 16 Jun 2021 02:33:40 +1000 (AEST) Received: from picard.linux.it (localhost [IPv6:::1]) by picard.linux.it (Postfix) with ESMTP id 22E1B3C2794 for ; Tue, 15 Jun 2021 18:33:38 +0200 (CEST) X-Original-To: ltp@lists.linux.it Delivered-To: ltp@picard.linux.it Received: from in-6.smtp.seeweb.it (in-6.smtp.seeweb.it [217.194.8.6]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits)) (No client certificate requested) by picard.linux.it (Postfix) with ESMTPS id A8DED3C2794 for ; Tue, 15 Jun 2021 18:33:16 +0200 (CEST) Received: from smtp-out2.suse.de (smtp-out2.suse.de [195.135.220.29]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits) server-digest SHA256) (No client certificate requested) by in-6.smtp.seeweb.it (Postfix) with ESMTPS id 265351400F91 for ; Tue, 15 Jun 2021 18:33:16 +0200 (CEST) Received: from imap.suse.de (imap-alt.suse-dmz.suse.de [192.168.254.47]) (using TLSv1.2 with cipher ECDHE-ECDSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp-out2.suse.de (Postfix) with ESMTPS id CDE221FD68; Tue, 15 Jun 2021 16:33:15 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=suse.cz; s=susede2_rsa; t=1623774795; h=from:from:reply-to:date:date:message-id:message-id:to:to:cc:cc: mime-version:mime-version: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=cXn/BdJXjqgXVuZ3WrYd0GiwFn8az9PKXyYSHLsQ1bQ=; b=W6q0xUv1RyThhpZBOwBzFCIv/Xaxb5A8kYJEpFC1DROuoi3VjMoyJ79aIBw7T9Pd/vAjQ+ 9pD2ekFfa2WrrrthwGrVwWHA6Xu/hVf+es/2KrmJQAMvvuLe9AdpS8qCEqWpXluUC4f0p7 20RdzTEOs60GU10JNDVXultAzP5MAFA= DKIM-Signature: v=1; a=ed25519-sha256; c=relaxed/relaxed; d=suse.cz; s=susede2_ed25519; t=1623774795; h=from:from:reply-to:date:date:message-id:message-id:to:to:cc:cc: mime-version:mime-version: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=cXn/BdJXjqgXVuZ3WrYd0GiwFn8az9PKXyYSHLsQ1bQ=; b=EL/jUrew5d9pPwrEBlJpklNxPOfjXFhqUIxdAjIlOIx9stxhBMnBF7hDzoeDxR1hEnX7mR NtVy5MVWug6SNxDA== Received: from imap3-int (imap-alt.suse-dmz.suse.de [192.168.254.47]) by imap.suse.de (Postfix) with ESMTP id 6A1C3118DD; Tue, 15 Jun 2021 16:33:15 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=suse.cz; s=susede2_rsa; t=1623774795; h=from:from:reply-to:date:date:message-id:message-id:to:to:cc:cc: mime-version:mime-version: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=cXn/BdJXjqgXVuZ3WrYd0GiwFn8az9PKXyYSHLsQ1bQ=; b=W6q0xUv1RyThhpZBOwBzFCIv/Xaxb5A8kYJEpFC1DROuoi3VjMoyJ79aIBw7T9Pd/vAjQ+ 9pD2ekFfa2WrrrthwGrVwWHA6Xu/hVf+es/2KrmJQAMvvuLe9AdpS8qCEqWpXluUC4f0p7 20RdzTEOs60GU10JNDVXultAzP5MAFA= DKIM-Signature: v=1; a=ed25519-sha256; c=relaxed/relaxed; d=suse.cz; s=susede2_ed25519; t=1623774795; h=from:from:reply-to:date:date:message-id:message-id:to:to:cc:cc: mime-version:mime-version: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=cXn/BdJXjqgXVuZ3WrYd0GiwFn8az9PKXyYSHLsQ1bQ=; b=EL/jUrew5d9pPwrEBlJpklNxPOfjXFhqUIxdAjIlOIx9stxhBMnBF7hDzoeDxR1hEnX7mR NtVy5MVWug6SNxDA== Received: from director2.suse.de ([192.168.254.72]) by imap3-int with ESMTPSA id KEQmGEvWyGDdfQAALh3uQQ (envelope-from ); Tue, 15 Jun 2021 16:33:15 +0000 From: Petr Vorel To: ltp@lists.linux.it Date: Tue, 15 Jun 2021 18:33:06 +0200 Message-Id: <20210615163307.10755-3-pvorel@suse.cz> X-Mailer: git-send-email 2.32.0 In-Reply-To: <20210615163307.10755-1-pvorel@suse.cz> References: <20210615163307.10755-1-pvorel@suse.cz> MIME-Version: 1.0 X-Virus-Scanned: clamav-milter 0.102.4 at in-6.smtp.seeweb.it X-Virus-Status: Clean X-Spam-Status: No, score=0.1 required=7.0 tests=DKIM_SIGNED,DKIM_VALID, DKIM_VALID_AU,DKIM_VALID_EF,SPF_HELO_NONE,SPF_PASS autolearn=disabled version=3.4.4 X-Spam-Checker-Version: SpamAssassin 3.4.4 (2020-01-24) on in-6.smtp.seeweb.it Subject: [LTP] [RFC PATCH 2/3] lib: Add $LTPROOT/testcases/bin into PATH X-BeenThere: ltp@lists.linux.it X-Mailman-Version: 2.1.29 Precedence: list List-Id: Linux Test Project List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: Joerg Vehlow , Xiao Yang Errors-To: ltp-bounces+incoming=patchwork.ozlabs.org@lists.linux.it Sender: "ltp" when LTPROOT set. Put it as the last. TWARN when directory does not exist. Signed-off-by: Petr Vorel --- lib/tst_test.c | 22 +++++++++++++++++++--- 1 file changed, 19 insertions(+), 3 deletions(-) diff --git a/lib/tst_test.c b/lib/tst_test.c index 36a4809c7..14a739eb5 100644 --- a/lib/tst_test.c +++ b/lib/tst_test.c @@ -1149,15 +1149,31 @@ static unsigned long long get_time_ms(void) static void add_paths(void) { char *old_path = getenv("PATH"); + const char *ltproot = getenv("LTPROOT"); const char *start_dir; - char *new_path; + char *bin_dir, *new_path = NULL; start_dir = tst_get_startwd(); + /* : - current directory */ if (old_path) - SAFE_ASPRINTF(&new_path, "%s::%s", old_path, start_dir); + SAFE_ASPRINTF(&new_path, "%s:", old_path); else - SAFE_ASPRINTF(&new_path, "::%s", start_dir); + strcat(new_path, ":"); + + /* empty for library C API tests */ + if (strlen(start_dir) > 0) + SAFE_ASPRINTF(&new_path, "%s:%s", new_path, start_dir); + + if (ltproot) { + SAFE_ASPRINTF(&bin_dir, "%s/testcases/bin", ltproot); + + if (access(bin_dir, F_OK) == -1) + tst_res(TWARN, "'%s' does not exist, is $LTPROOT set correctly?", + bin_dir); + else + SAFE_ASPRINTF(&new_path, "%s:%s", new_path, bin_dir); + } SAFE_SETENV("PATH", new_path, 1); free(new_path); From patchwork Tue Jun 15 16:33:07 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Petr Vorel X-Patchwork-Id: 1492358 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Authentication-Results: ozlabs.org; spf=pass (sender SPF authorized) smtp.mailfrom=lists.linux.it (client-ip=2001:1418:10:5::2; helo=picard.linux.it; envelope-from=ltp-bounces+incoming=patchwork.ozlabs.org@lists.linux.it; receiver=) Authentication-Results: ozlabs.org; dkim=fail reason="signature verification failed" (1024-bit key; unprotected) header.d=suse.cz header.i=@suse.cz header.a=rsa-sha256 header.s=susede2_rsa header.b=VChuAAf9; dkim=fail reason="signature verification failed" header.d=suse.cz header.i=@suse.cz header.a=ed25519-sha256 header.s=susede2_ed25519 header.b=/u7KoX30; dkim=fail reason="signature verification failed" (1024-bit key) header.d=suse.cz header.i=@suse.cz header.a=rsa-sha256 header.s=susede2_rsa header.b=VChuAAf9; dkim=neutral header.d=suse.cz header.i=@suse.cz header.a=ed25519-sha256 header.s=susede2_ed25519 header.b=/u7KoX30; dkim-atps=neutral Received: from picard.linux.it (picard.linux.it [IPv6:2001:1418:10:5::2]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits)) (No client certificate requested) by ozlabs.org (Postfix) with ESMTPS id 4G4DR26x1Hz9sRK for ; Wed, 16 Jun 2021 02:33:50 +1000 (AEST) Received: from picard.linux.it (localhost [IPv6:::1]) by picard.linux.it (Postfix) with ESMTP id 700543C8F61 for ; Tue, 15 Jun 2021 18:33:48 +0200 (CEST) X-Original-To: ltp@lists.linux.it Delivered-To: ltp@picard.linux.it Received: from in-4.smtp.seeweb.it (in-4.smtp.seeweb.it [IPv6:2001:4b78:1:20::4]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits) server-digest SHA256) (No client certificate requested) by picard.linux.it (Postfix) with ESMTPS id 059C13C2794 for ; Tue, 15 Jun 2021 18:33:16 +0200 (CEST) Received: from smtp-out2.suse.de (smtp-out2.suse.de [195.135.220.29]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits) server-digest SHA256) (No client certificate requested) by in-4.smtp.seeweb.it (Postfix) with ESMTPS id 8F3251000BDB for ; Tue, 15 Jun 2021 18:33:16 +0200 (CEST) Received: from imap.suse.de (imap-alt.suse-dmz.suse.de [192.168.254.47]) (using TLSv1.2 with cipher ECDHE-ECDSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp-out2.suse.de (Postfix) with ESMTPS id 3F35C1FD69; Tue, 15 Jun 2021 16:33:16 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=suse.cz; s=susede2_rsa; t=1623774796; h=from:from:reply-to:date:date:message-id:message-id:to:to:cc:cc: mime-version:mime-version: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=I+BkacY5kYxwRXa2lLZj+EA2KPzQpYCxYq9808mHAoc=; b=VChuAAf9LOADKMaabKqDCDE+C6edqM0ARnQUW1k6BbLYPMoKmafCPw/x/h7IkbV6tFk5+y qWT1zV93baQhShPLNETudrTn7lliYvR8flj/iCiT/Vhs97gvzSP64XH3JZ+eL9A1adi4TI VzCt7sAwZY+1eqlEG1X9qGr//iytMRU= DKIM-Signature: v=1; a=ed25519-sha256; c=relaxed/relaxed; d=suse.cz; s=susede2_ed25519; t=1623774796; h=from:from:reply-to:date:date:message-id:message-id:to:to:cc:cc: mime-version:mime-version: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=I+BkacY5kYxwRXa2lLZj+EA2KPzQpYCxYq9808mHAoc=; b=/u7KoX30zcuwWUwRTCwId9cCLo9WEa/xUif0hBZCiKIObhAmB8/fkTBn0y5UAPAo0jojG/ XEhzQ9US0jeDZcBQ== Received: from imap3-int (imap-alt.suse-dmz.suse.de [192.168.254.47]) by imap.suse.de (Postfix) with ESMTP id D6629118DD; Tue, 15 Jun 2021 16:33:15 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=suse.cz; s=susede2_rsa; t=1623774796; h=from:from:reply-to:date:date:message-id:message-id:to:to:cc:cc: mime-version:mime-version: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=I+BkacY5kYxwRXa2lLZj+EA2KPzQpYCxYq9808mHAoc=; b=VChuAAf9LOADKMaabKqDCDE+C6edqM0ARnQUW1k6BbLYPMoKmafCPw/x/h7IkbV6tFk5+y qWT1zV93baQhShPLNETudrTn7lliYvR8flj/iCiT/Vhs97gvzSP64XH3JZ+eL9A1adi4TI VzCt7sAwZY+1eqlEG1X9qGr//iytMRU= DKIM-Signature: v=1; a=ed25519-sha256; c=relaxed/relaxed; d=suse.cz; s=susede2_ed25519; t=1623774796; h=from:from:reply-to:date:date:message-id:message-id:to:to:cc:cc: mime-version:mime-version: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=I+BkacY5kYxwRXa2lLZj+EA2KPzQpYCxYq9808mHAoc=; b=/u7KoX30zcuwWUwRTCwId9cCLo9WEa/xUif0hBZCiKIObhAmB8/fkTBn0y5UAPAo0jojG/ XEhzQ9US0jeDZcBQ== Received: from director2.suse.de ([192.168.254.72]) by imap3-int with ESMTPSA id aG6XMkvWyGDdfQAALh3uQQ (envelope-from ); Tue, 15 Jun 2021 16:33:15 +0000 From: Petr Vorel To: ltp@lists.linux.it Date: Tue, 15 Jun 2021 18:33:07 +0200 Message-Id: <20210615163307.10755-4-pvorel@suse.cz> X-Mailer: git-send-email 2.32.0 In-Reply-To: <20210615163307.10755-1-pvorel@suse.cz> References: <20210615163307.10755-1-pvorel@suse.cz> MIME-Version: 1.0 X-Virus-Scanned: clamav-milter 0.102.4 at in-4.smtp.seeweb.it X-Virus-Status: Clean X-Spam-Status: No, score=0.1 required=7.0 tests=DKIM_SIGNED,DKIM_VALID, DKIM_VALID_AU,DKIM_VALID_EF,SPF_HELO_NONE,SPF_PASS autolearn=disabled version=3.4.4 X-Spam-Checker-Version: SpamAssassin 3.4.4 (2020-01-24) on in-4.smtp.seeweb.it Subject: [LTP] [RFC PATCH 3/3] doc: Update LTPROOT and PATH environment variables X-BeenThere: ltp@lists.linux.it X-Mailman-Version: 2.1.29 Precedence: list List-Id: Linux Test Project List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: Joerg Vehlow , Xiao Yang Errors-To: ltp-bounces+incoming=patchwork.ozlabs.org@lists.linux.it Sender: "ltp" to address changes in two previous commits. Signed-off-by: Petr Vorel --- README.md | 2 +- doc/user-guide.txt | 7 +++++-- 2 files changed, 6 insertions(+), 3 deletions(-) diff --git a/README.md b/README.md index 703395c6b..b0ad47dfa 100644 --- a/README.md +++ b/README.md @@ -162,7 +162,7 @@ $ testcases/bin/ioctl01 -h Many require certain environment variables to be set ``` -$ LTPROOT=/opt/ltp PATH="$PATH:$LTPROOT/testcases/bin" testcases/bin/wc01.sh +$ LTPROOT=/opt/ltp testcases/bin/wc01.sh ``` Most commonly, the path variable needs to be set and also `LTPROOT`, but there diff --git a/doc/user-guide.txt b/doc/user-guide.txt index 8df29e688..ab2d773a7 100644 --- a/doc/user-guide.txt +++ b/doc/user-guide.txt @@ -11,6 +11,7 @@ For running LTP network tests see `testcases/network/README.md`. | 'KCONFIG_PATH' | The path to the kernel config file, (if not set, it tries the usual paths '/boot/config-RELEASE' or '/proc/config.gz'). | 'LTPROOT' | Prefix for installed LTP, the default is '/opt/ltp'. + Used for setting 'PATH' and other environment variables. | 'LTP_COLORIZE_OUTPUT' | Force colorized output behaviour. 'y' or '1': always colorize 'n' or '0': never colorize. | 'LTP_DEV' | Path to the block device to be used @@ -19,8 +20,10 @@ For running LTP network tests see `testcases/network/README.md`. | 'LTP_TIMEOUT_MUL' | Multiply timeout, must be number >= 1 (> 1 is useful for slow machines to avoid unexpected timeout). Variable is also used in shell tests, but ceiled to int. -| 'PATH' | It's required to addjust path: - `PATH="$PATH:$LTPROOT/testcases/bin"` +| 'PATH' | Testcases are installed into 'LTPROOT/testcases/bin', + 'PATH' is set by library API. You need to add it into + 'PATH' only if you use custom runner (not runltp neither + [runltp-ng](https://github.com/metan-ucw/runltp-ng). | 'TMPDIR' | Base directory for template directory (C: '.needs_tmpdir = 1' and others, which imply it, shell: 'TST_NEEDS_TMPDIR=1'). | 'TST_NO_CLEANUP' | Disable running test cleanup (defined in 'TST_CLEANUP').