Skip to content
Snippets Groups Projects
Select Git revision
  • master default protected
  • beta/202506161038
  • stable/20250613.0
  • nightly/20250613.0
  • beta/202506101658
  • stable/20250610.0
  • nightly/20250610.0
  • beta/202506091027
  • beta/202506061543
  • nightly/20250605.0
  • beta/202506051039
  • beta/202506051002
  • beta/202506041611
  • beta/202506041335
  • beta/202505231812
  • stable/20250523.0
  • nightly/20250523.0
  • nightly/20250515.0
  • nightly/20250510.0
  • nightly/20250509.1
  • nightly/20250509.0
21 results

compile_tests.sh

Blame
  • Code owners
    Assign users and groups as approvers for specific file changes. Learn more.
    compile_tests.sh 745 B
    #!/bin/bash
    # Build lrc, client-qt and pass tests
    
    # Get number of CPU available
    cpuCount=$(nproc || echo -n 4)
    
    # Project directories
    topDir=$(pwd)/..
    echo "Project root dir: "${topDir}
    
    installDir=$topDir/install
    daemonDir=$topDir/daemon
    lrcDir=$topDir/lrc
    clientDir=$topDir/client-qt
    
    # Build lrc
    cd ${lrcDir}
    mkdir -p build
    cd build
    echo "Building lrc in "$PWD
    cmake .. -DCMAKE_INSTALL_PREFIX=$installDir/lrc \
          -DRING_INCLUDE_DIR=$daemonDir/src/dring \
          -DRING_XML_INTERFACES_DIR=$daemonDir/bin/dbus
    make -j${cpuCount}
    make install
    
    # Build client and tests
    cd $clientDir
    mkdir -p build
    cd build
    echo "Building client in "$PWD
    cmake ..
    make -j${cpuCount}
    
    # Pass Tests
    cd tests
    ./unittests
    ./qml_tests -input $clientDir/tests/qml