Skip to content

Latest commit

 

History

History

lnt

LLVM LNT / Test-Suite Integration

Prerequisites

  • all of the normal prerequisites for building development version of RawSpeed.
  • python's virtualenv
  • llvm-size, llvm-lit (from llvm, llvm-tools packages)
  • A checkout of raw sample archive of you choice. It is suggested to use https://raw.pixls.us masterset. Please see RSA page for details.
  • Reference hashes for the raws in the sampleset.

    Generate them via $ ninja rstest-create from your trusted (!) dev build. Please see integration_testing and producing_trusted_reference_hashes pages for details.

Getting it done

# Get external dependencies.
git clone https://github.com/llvm/llvm-lnt.git /build/lnt
git clone https://github.com/llvm/llvm-test-suite.git /build/test-suite
# 'Add' RawSpeed into test-suite.
ln -s /home/lebedevri/rawspeed/lnt /build/test-suite/RawSpeed
# Prepare 'chroot'.
export SANDBOX=/tmp/mysandbox
export BUILDSANDBOX=/tmp/mybuildsandbox
export PERFDB=/tmp/myperfdb
virtualenv $SANDBOX
# Setup 'chroot'.
$SANDBOX/bin/python /build/lnt/setup.py develop
$SANDBOX/bin/lnt create $PERFDB
# Benchmarking time!
$SANDBOX/bin/lnt runtest test_suite --test-suite /build/test-suite \
    --sandbox $BUILDSANDBOX \
    --cc clang --cxx clang++ \
    --cmake-define CMAKE_BUILD_TYPE=Release \
    --cmake-define TEST_SUITE_SUBDIRS="RawSpeed" \
    [--benchmarking-only] \
    [--use-perf profile] \
    --build-threads 8 --threads 1 \
    --submit $PERFDB
# View results.
$SANDBOX/bin/lnt runserver $PERFDB