All of lore.kernel.org
 help / color / mirror / Atom feed
From: Philippe Gerum <rpm@xenomai.org>
To: Jim Cromie <jim.cromie@domain.hid>
Cc: xenomai@xenomai.org
Subject: Re: [Xenomai-help] Problems running testsuite
Date: Thu, 13 Apr 2006 20:44:05 +0200	[thread overview]
Message-ID: <443E9BF5.2050702@domain.hid> (raw)
In-Reply-To: <443E4F7D.6090103@domain.hid>

[-- Attachment #1: Type: text/plain, Size: 648 bytes --]

Jim Cromie wrote:
> Tobias Marschall wrote:
> 
>> Hallo,
>>
>> I've been using rtai until now and decided to give xenomai (release 
>> 2.1) a try. I followed the instructions from README.INSTALL, and 
>> everything (kernel patching, compilation, etc.) went fine. Then I 
>> tried to run the latency test, which failed:
>>
>> -----------
>> /usr/xenomai/testsuite/latency $ ./run
>> head: `-1' option is obsolete; use `-n 1' since this will be removed 
>> in the   
> 
> 
> this particular error is patched, attached.

While I was at it, I've fixed other spots in the same vein, in other 
scripts. This patch applies against v2.1.0.

-- 

Philippe.

[-- Attachment #2: fix-head-obsolete-syntax.patch --]
[-- Type: text/x-patch, Size: 1660 bytes --]

Index: scripts/xeno-info
===================================================================
--- scripts/xeno-info	(revision 924)
+++ scripts/xeno-info	(working copy)
@@ -54,7 +54,7 @@
 -e 's/\.so$//' | awk -F'[.-]'   '{print "Linux C Library        " \
 $(NF-2)"."$(NF-1)"."$NF}'
 
-ldd -v > /dev/null 2>&1 && ldd -v || ldd --version |head -1 | awk \
+ldd -v > /dev/null 2>&1 && ldd -v || ldd --version |head -n1 | awk \
 'NR==1{print "Dynamic linker (ldd)  ", $NF}'
 
 ls -l /usr/lib/lib{g,stdc}++.so  2>/dev/null | awk -F. \
Index: scripts/prepare-kernel.sh
===================================================================
--- scripts/prepare-kernel.sh	(revision 924)
+++ scripts/prepare-kernel.sh	(working copy)
@@ -321,7 +321,7 @@
    exit 2
 else
    if test x$adeos_patch = x; then
-      default_adeos_patch=`( ls $xenomai_root/ksrc/arch/$xenomai_arch/patches/adeos-ipipe-$linux_VERSION.$linux_PATCHLEVEL*|sort -r ) 2>/dev/null | head -1`
+      default_adeos_patch=`( ls $xenomai_root/ksrc/arch/$xenomai_arch/patches/adeos-ipipe-$linux_VERSION.$linux_PATCHLEVEL*|sort -r ) 2>/dev/null | head -n1`
    fi
    if test x$default_adeos_patch = x; then
       default_adeos_patch=/dev/null
Index: scripts/xeno-load.in
===================================================================
--- scripts/xeno-load.in	(revision 924)
+++ scripts/xeno-load.in	(working copy)
@@ -56,7 +56,7 @@
 fi
 
 if test $target_name = default; then
-  target_name=`cut -s -d: -f1 $run_info_file | head -1`
+  target_name=`cut -s -d: -f1 $run_info_file | head -n1`
   if test "x$target_name" = x; then
      echo "xeno-load: no target defined in $run_info_file"
      exit 2

  parent reply	other threads:[~2006-04-13 18:44 UTC|newest]

Thread overview: 15+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2006-04-13  9:49 [Xenomai-help] Problems running testsuite Tobias Marschall
2006-04-13 13:17 ` Jim Cromie
2006-04-13 18:41   ` Philippe Gerum
2006-04-13 18:44   ` Philippe Gerum [this message]
2006-04-13 19:00 ` Scott Biddlestone
2006-04-14 11:42   ` Tobias Marschall
2006-04-14 12:32     ` Gilles Chanteperdrix
2006-04-14 14:24       ` Jim Cromie
2006-04-16 17:25         ` Philippe Gerum
2006-04-16 17:58           ` Gilles Chanteperdrix
2006-04-16 18:15             ` Philippe Gerum
2006-04-17 17:12               ` Gilles Chanteperdrix
2006-04-16 21:03           ` Jim Cromie
2006-04-17  8:43             ` Philippe Gerum
2006-04-16 17:38         ` Philippe Gerum

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=443E9BF5.2050702@domain.hid \
    --to=rpm@xenomai.org \
    --cc=jim.cromie@domain.hid \
    --cc=xenomai@xenomai.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.