Re: Some testprograms are no longer runable from CLI???

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Sun, Apr 17, 2016 at 12:52 PM, Willem Jan Withagen <wjw@xxxxxxxxxxx> wrote:
> As far as Ik can tell this is due to:
> https://github.com/ceph/ceph/commit/1c8cd003600953ee1f469fc91be1b0cc4b4f7fa7
>
> Author: Ali Maredia <amaredia@xxxxxxxxxx>
> Date:   Wed Jan 13 14:40:22 2016 -0500
>
>     cmake: erasure-code tests passing
>
>     Replaced relative paths in test-erausure-eio.sh
>     test-erasure-code.sh, and replaced .libs in
>     erasure_code unittests with CEPH_VAR environment
>     variables set in cmake.
>
>     Signed-off-by: Ali Maredia <amaredia@xxxxxxxxxx>
>
> =============
>
> Lots of scripts now contain the header:
> source $CEPH_ROOT/qa/workunits/ceph-helpers.sh
>
> Which was uptill this commit not required to be set.
>
> As far as I can tell other "required" Shell varaibles might be:
>
> ../cmake/modules/AddCephTest.cmake:    CEPH_ROOT=${CMAKE_SOURCE_DIR}
> ../cmake/modules/AddCephTest.cmake:
> CEPH_BIN=${CMAKE_RUNTIME_OUTPUT_DIRECTORY}
> ../cmake/modules/AddCephTest.cmake:
> CEPH_LIB=${CMAKE_LIBRARY_OUTPUT_DIRECTORY}
> ../cmake/modules/AddCephTest.cmake:    CEPH_BUILD_DIR=${CMAKE_BINARY_DIR}
>
> It would be nice that if these variables are not set, it is still possible
> to
> run the tests from the commandline due to setting defaults to values that it
> had
> before these Cmake changes were introducded.
>
> Something like
> ====
> C_ROOT=${CEPH_ROOT:-.}
> source $CEPH_ROOT/qa/workunits/ceph-helpers.sh
> ====
> would help quite a bit, and keep things backwards compatible.

Yes please, test binaries should be runnable on their own without
going through "make check" or whatever!
-Greg

>
> Thanx,
> --WjW
>
>
> --
> To unsubscribe from this list: send the line "unsubscribe ceph-devel" in
> the body of a message to majordomo@xxxxxxxxxxxxxxx
> More majordomo info at  http://vger.kernel.org/majordomo-info.html
--
To unsubscribe from this list: send the line "unsubscribe ceph-devel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html



[Index of Archives]     [CEPH Users]     [Ceph Large]     [Information on CEPH]     [Linux BTRFS]     [Linux USB Devel]     [Video for Linux]     [Linux Audio Users]     [Yosemite News]     [Linux Kernel]     [Linux SCSI]
  Powered by Linux