]> git.ipfire.org Git - thirdparty/libcgroup.git/commitdiff
testsuite: runlibcgrouptest have to be configurable
authorIvana Hutarova Varekova <varekova@redhat.com>
Fri, 18 May 2012 16:18:36 +0000 (18:18 +0200)
committerIvana Hutarova Varekova <varekova@redhat.com>
Fri, 18 May 2012 16:18:36 +0000 (18:18 +0200)
runlibcgrouptest have to set the path to config.h properly thus it have
to be configurable

CHANGELOG v1:
* remove obsolete TODO comment
* add runlibcgrouptest.sh to configure.in

Signed-off-by: Ivana Hutarova Varekova <varekova@redhat.com>
Acked-By: Jan Safranek <jsafrane@redhat.com>
configure.in
tests/runlibcgrouptest.sh.in [moved from tests/runlibcgrouptest.sh with 99% similarity]

index 1153a7898513103bcf496240c5abc9073bd16dbd..c828e1242c7f06c8f8f5123dbdaf678c29c6d910 100644 (file)
@@ -211,6 +211,7 @@ AC_CONFIG_FILES([Makefile
        tests/tools/cgconfigparser/Makefile
        tests/tools/cgclassify/Makefile
        tests/tools/multimount/Makefile
+       tests/runlibcgrouptest.sh
        src/Makefile
        src/daemon/Makefile
        src/tools/Makefile
similarity index 99%
rename from tests/runlibcgrouptest.sh
rename to tests/runlibcgrouptest.sh.in
index 12b92536f1ee3d31227e4a017d52360f8515a4cf..119addd2a953f256f4ad3b1f07f9d949e85e97ec 100755 (executable)
@@ -16,7 +16,7 @@
 #
 
 # TODO path to config.h have to be set properly
-OPAQUE_HIERARCHY=`grep "OPAQUE_HIERARCHY" ../config.h |\
+OPAQUE_HIERARCHY=`grep "OPAQUE_HIERARCHY" @abs_top_srcdir@/config.h |\
         cut -d" " -f3 | sed  's|\"||g'`
 DEBUG=false;           # for debug messages
 FS_MOUNTED=0;          # 0 for not mounted, 1 for mounted, 2 for multimounted