[prev in list] [next in list] [prev in thread] [next in thread]
List: ipcop-svn
Subject: [Ipcop-svn] SF.net SVN: ipcop:[3144] ipcop/trunk/lfs
From: gespinasse () users ! sourceforge ! net
Date: 2009-06-28 7:42:40
Message-ID: E1MKp28-0004N5-Ee () 3kljzd1 ! ch3 ! sourceforge ! com
[Download RAW message or body]
Revision: 3144
http://ipcop.svn.sourceforge.net/ipcop/?rev=3144&view=rev
Author: gespinasse
Date: 2009-06-28 07:42:40 +0000 (Sun, 28 Jun 2009)
Log Message:
-----------
Add tests suite for bison, coreutils, libtool
I have added all existing test suites, but waiting actually they finish before to \
commit.
for coreutils, unless the toolchain is rebuild, only the first part of the tests will \
be run. su was not copied to su-tools in toolchain.
I prefer that solution than trying to use just compiled src/su for the test.
Or on upgrade, you would test both su and the test suite.
Anyway, it look there is numerous failures on those tests.
No tests should fail for bison and libtool
(tested on x86 gentoo and debian lenny)
If a test failure happen, you should report that.
You could too prefix the test line with - allowing to ignore the error in the \
makefile
Modified Paths:
--------------
ipcop/trunk/lfs/bison
ipcop/trunk/lfs/coreutils
ipcop/trunk/lfs/libtool
Modified: ipcop/trunk/lfs/bison
===================================================================
--- ipcop/trunk/lfs/bison 2009-06-28 05:52:18 UTC (rev 3143)
+++ ipcop/trunk/lfs/bison 2009-06-28 07:42:40 UTC (rev 3144)
@@ -84,6 +84,12 @@
cd $(DIR_APP) && ./configure --prefix=/usr
cd $(DIR_APP) && echo '#define YYENABLE_NLS 1' >> config.h
cd $(DIR_APP) && make -j $(PARALLELISM)
+
+ifeq "$(RUNNING_TEST)" "yes"
+ # no test should fail
+ cd $(DIR_APP) && make check &> $(DIR_TEST)/$(THISAPP)-$(STAGE_ORDER).log
+endif
+
cd $(DIR_APP) && make install
@rm -rf $(DIR_APP)
Modified: ipcop/trunk/lfs/coreutils
===================================================================
--- ipcop/trunk/lfs/coreutils 2009-06-28 05:52:18 UTC (rev 3143)
+++ ipcop/trunk/lfs/coreutils 2009-06-28 07:42:40 UTC (rev 3144)
@@ -95,6 +95,9 @@
cd $(DIR_APP) && ./configure --prefix=/$(TOOLS_DIR)
cd $(DIR_APP) && make -j $(PARALLELISM)
cd $(DIR_APP) && make install
+ # su is not installed (because suid root)
+ # install under a different name to run non-root tests later
+ cd $(DIR_APP) && cp -v src/su /tools/bin/su-tools
endif
ifeq "$(STAGE)" "base"
@@ -106,6 +109,19 @@
--enable-no-install-program=kill,uptime
cd $(DIR_APP) && make -j $(PARALLELISM)
+
+ifeq "$(RUNNING_TEST)" "yes"
+ -cd $(DIR_APP) && make NON_ROOT_USERNAME=nobody check-root &> \
$(DIR_TEST)/$(THISAPP)-$(STAGE_ORDER).log + # temporary during tests
+ echo "dummy:x:1000:nobody" >> /etc/group
+ cd $(DIR_APP) && chown -Rv nobody config.log {gnulib-tests,lib,src}/.deps \
>>/dev/null + # su-tools is not in our actual published 1.9.5 toolchain
+ # remove the -f su-tools once toolchain package has been upgraded
+ -[ -f /tools/bin/su-tools ] && su-tools nobody -s /bin/bash -c "make \
RUN_EXPENSIVE_TESTS=yes check" \ + 2>&1 >> \
$(DIR_TEST)/$(THISAPP)-$(STAGE_ORDER).log + sed -i '/dummy/d' /etc/group
+endif
+
cd $(DIR_APP) && make install
mv -v /usr/bin/{cat,chgrp,chmod,chown,cp,date,dd,df,echo} /bin
mv -v /usr/bin/{false,hostname,ln,ls,mkdir,mknod,mv,pwd,readlink,rm} /bin
Modified: ipcop/trunk/lfs/libtool
===================================================================
--- ipcop/trunk/lfs/libtool 2009-06-28 05:52:18 UTC (rev 3143)
+++ ipcop/trunk/lfs/libtool 2009-06-28 07:42:40 UTC (rev 3144)
@@ -86,6 +86,12 @@
cd $(DIR_APP) && ./configure --prefix=/usr
cd $(DIR_APP) && make -j $(PARALLELISM)
+
+ifeq "$(RUNNING_TEST)" "yes"
+ # no test should fail
+ cd $(DIR_APP) && make check &> $(DIR_TEST)/$(THISAPP)-$(STAGE_ORDER).log
+endif
+
cd $(DIR_APP) && make install
@rm -rf $(DIR_APP)
This was sent by the SourceForge.net collaborative development platform, the world's \
largest Open Source development site.
------------------------------------------------------------------------------
_______________________________________________
Ipcop-svn mailing list
Ipcop-svn@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/ipcop-svn
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic