diff options
author | Sven Gothel <[email protected]> | 2022-06-26 17:36:04 +0200 |
---|---|---|
committer | Sven Gothel <[email protected]> | 2022-06-26 17:36:04 +0200 |
commit | 9b0afafbd6d6644a752133a4798c3e8ea3324bf7 (patch) | |
tree | eb915c5a080f3349df1a9f8e82f42d2d5e90af56 | |
parent | d141c1d960478a868ae5b1c97ee1b101c59c71ab (diff) |
README: Add TEST_WITH_SUDO and USE_LIBCURL, USE_LIBUNWIND
-rw-r--r-- | README.md | 24 | ||||
-rw-r--r-- | scripts/build.sh | 13 |
2 files changed, 24 insertions, 13 deletions
@@ -109,14 +109,34 @@ Building debug build: -DDEBUG=ON ~~~~~~~~~~~~~ +Add unit tests to build (default: disabled) +~~~~~~~~~~~~~ +-DBUILD_TESTING=ON +~~~~~~~~~~~~~ + +Add unit tests requiring `sudo` to build (default: disabled).<br /> +This option requires `-DBUILD_TESTING=ON` to be effective.<br /> +Covered unit test requiring `sudo` are currently +- `Linux` OS + - `jau::fs::mount_image()` + - `jau::fs::umount()` +~~~~~~~~~~~~~ +-DTEST_WITH_SUDO=ON +~~~~~~~~~~~~~ + Disable stripping native lib even in non debug build: ~~~~~~~~~~~~~ -DUSE_STRIP=OFF ~~~~~~~~~~~~~ -Disable using `libunwind` (default: enabled for all but `arm32`, `armhf`) +Enable using `libcurl` (default: disabled) +~~~~~~~~~~~~~ +-DUSE_LIBCURL=ON +~~~~~~~~~~~~~ + +Enable using `libunwind` (default: disabled) ~~~~~~~~~~~~~ --DUSE_LIBUNWIND=OFF +-DUSE_LIBUNWIND=ON ~~~~~~~~~~~~~ Disable using `C++ Runtime Type Information` (*RTTI*) (default: enabled) diff --git a/scripts/build.sh b/scripts/build.sh index 903ea96..01873d6 100644 --- a/scripts/build.sh +++ b/scripts/build.sh @@ -40,18 +40,9 @@ buildit() { cd build-$archabi # CLANG_ARGS="-DCMAKE_C_COMPILER=/usr/bin/clang -DCMAKE_CXX_COMPILER=/usr/bin/clang++" - cmake $CLANG_ARGS -DCMAKE_INSTALL_PREFIX=$rootdir/dist-$archabi -DBUILDJAVA=ON -DBUILDEXAMPLES=ON -DBUILD_TESTING=ON .. - #cmake $CLANG_ARGS -DCMAKE_INSTALL_PREFIX=$rootdir/dist-$archabi -DBUILDJAVA=ON -DBUILDEXAMPLES=ON -DBUILD_TESTING=ON -DDEBUG=ON .. + cmake $CLANG_ARGS -DCMAKE_INSTALL_PREFIX=$rootdir/dist-$archabi -DBUILDJAVA=ON -DBUILDEXAMPLES=ON -DBUILD_TESTING=ON -DTEST_WITH_SUDO=ON -DUSE_LIBCURL=ON .. + #cmake $CLANG_ARGS -DCMAKE_INSTALL_PREFIX=$rootdir/dist-$archabi -DBUILDJAVA=ON -DBUILDEXAMPLES=ON -DBUILD_TESTING=ON -DTEST_WITH_SUDO=ON -DUSE_LIBCURL=ON -DDEBUG=ON .. - # cmake $CLANG_ARGS -DCMAKE_INSTALL_PREFIX=$rootdir/dist-$archabi -DBUILDJAVA=ON -DBUILDEXAMPLES=ON -DBUILD_TESTING=ON .. - # cmake $CLANG_ARGS -DCMAKE_INSTALL_PREFIX=$rootdir/dist-$archabi -DBUILDJAVA=ON -DBUILDEXAMPLES=ON -DBUILD_TESTING=ON -DUSE_STRIP=OFF .. - # cmake $CLANG_ARGS -DCMAKE_INSTALL_PREFIX=$rootdir/dist-$archabi -DBUILDJAVA=ON -DBUILDEXAMPLES=ON -DBUILD_TESTING=ON -DUSE_STRIP=ON -DJAVAC_DEBUG_ARGS="none" .. - # cmake $CLANG_ARGS -DCMAKE_INSTALL_PREFIX=$rootdir/dist-$archabi -DBUILDJAVA=ON -DBUILDEXAMPLES=ON -DBUILD_TESTING=ON -DDEBUG=ON .. - # cmake $CLANG_ARGS -DCMAKE_INSTALL_PREFIX=$rootdir/dist-$archabi -DBUILDJAVA=ON -DBUILDEXAMPLES=ON -DBUILD_TESTING=ON -DGPROF=ON .. - # cmake $CLANG_ARGS -DCMAKE_INSTALL_PREFIX=$rootdir/dist-$archabi -DBUILDJAVA=ON -DBUILDEXAMPLES=ON -DBUILD_TESTING=ON -DPERF_ANALYSIS=ON .. - # cmake $CLANG_ARGS -DCMAKE_INSTALL_PREFIX=$rootdir/dist-$archabi -DBUILDJAVA=ON -DBUILDEXAMPLES=ON -DBUILD_TESTING=ON -DDEBUG=ON -DINSTRUMENTATION=ON .. - # cmake $CLANG_ARGS -DCMAKE_INSTALL_PREFIX=$rootdir/dist-$archabi -DBUILDJAVA=ON -DBUILDEXAMPLES=ON -DBUILD_TESTING=ON -DDEBUG=ON -DINSTRUMENTATION_UNDEFINED=ON .. - # cmake $CLANG_ARGS -DCMAKE_INSTALL_PREFIX=$rootdir/dist-$archabi -DBUILDJAVA=ON -DBUILDEXAMPLES=ON -DBUILD_TESTING=ON -DDEBUG=ON -DINSTRUMENTATION_THREAD=ON .. make -j $CPU_COUNT install test if [ $? -eq 0 ] ; then echo "BUILD SUCCESS $bname $archabi" |