]> git.uio.no Git - u/mrichter/AliRoot.git/blame - test/testAliAnalisysTaskFiltered/AliAnalisysTaskFilteredTest.sh
PWGPP-3, PWGPP-4, ATO-52 Configuration file (proposal) for the unit test
[u/mrichter/AliRoot.git] / test / testAliAnalisysTaskFiltered / AliAnalisysTaskFilteredTest.sh
CommitLineData
db9d5365 1#!/bin/bash
2#######################################################################
3#
4# This script runs the test for the AliAnalysisTaskFiltered class
5#
6# Macro to test functionality of the AnaliAnalysisTaskFiltered.
7# To be used within UnitTest suit
8# $ALICE_ROOT/test/testAliAnalisysTaskFiltered/AliAnalisysTaskFilteredTest.sh
9# To test:
10# 1.) CPU/Memory/Data volume
11# 2.) Relative fracion of the information in exported trees
12# 3.) Compression for points
13#
14# Author of test:
15# marian.ivanov@cern.ch
16###############################################################################
17# Test environment has to be configured before
18# To setup: input data path
19# Setup example config can be found in directory $ALICE_ROOT/test/configuration
20# E.g for GSI setup
21# export UnitTestConfig=$ALICE_ROOT/test/configuration/configGSI.sh
22###############################################################################
23# Steps:
24# 1. define vars
25# 2. echo settings
26# 3. runTask
27###############################################################################
28
29source $UnitTestConfig
30
31#get path to input list
32 inputListfiles=$TestData_pPb
33#get scale number for tracks
34 filterT=${2-100}
35#get scale number for V0s
36 filterV=${3-10}
37#get scale number of riends
38 filterFriend=${4--10}
39#get OCDB path (optional)
40 OCDBpath=${5-"\"$OCDBPath_pPb\""}
41#get max number of files
42 maxFiles=${6-"1000000"}
43#get offset of first file
44 offsetFile=${7-"0"}
45#get max number of events
46 maxEvents=${8-"30000000"}
47#get offset of first event
48 offsetEvent=${9-"0"}
49
50# echo settings
51 if [[ -f "$inputListfiles" ]] ; then
52 inputListfiles="\"$inputListfiles\""
53 echo "running with setup:"
54 echo "ALICE_ROOT: $ALICE_ROOT"
55 echo "inputListfiles: $inputListfiles"
56 echo "scale tracks: $filterT"
57 echo "scale V0s: $filterV"
58 echo "scale Friends: $filterFriend"
59 echo "OCDB path: $OCDBpath"
60 echo "max Files: $maxFiles"
61 echo "offset File: $offsetFile"
62 echo "max Events: $maxEvents"
63 echo "offset Event: $offsetEvent"
64 else
65 echo "inputListfiles not found: $inputListfiles"
66 exit 1
67 fi
68#run FilterTask
69 echo aliroot -l -b -q $ALICE_ROOT/test/testAliAnalisysTaskFiltered/AliAnalisysTaskFilteredTest.C\($inputListfiles,$filterT,$filterV,$OCDBpath,$maxFiles,$offsetFile,$maxEvents,$offsetEvent\)
70 aliroot -l -b -q $ALICE_ROOT/test/testAliAnalisysTaskFiltered/AliAnalisysTaskFilteredTest.C\($inputListfiles,$filterT,$filterV,$filterFriend,$OCDBpath,$maxFiles,$offsetFile,$maxEvents,$offsetEvent\)
71exit