xref: /aosp_15_r20/external/ltp/testcases/realtime/scripts/setenv.sh (revision 49cdfc7efb34551c7342be41a7384b9c40d7cab7)
1*49cdfc7eSAndroid Build Coastguard Worker#! /bin/sh
2*49cdfc7eSAndroid Build Coastguard Worker
3*49cdfc7eSAndroid Build Coastguard Worker#
4*49cdfc7eSAndroid Build Coastguard Worker# This is the scripts/ directory for rt-test.
5*49cdfc7eSAndroid Build Coastguard Worker# It exports variables used during the tests.
6*49cdfc7eSAndroid Build Coastguard Worker#
7*49cdfc7eSAndroid Build Coastguard Worker#export TESTS_DIR=$(readlink -f $SCRIPTS_DIR/..)
8*49cdfc7eSAndroid Build Coastguard Worker
9*49cdfc7eSAndroid Build Coastguard WorkerTESTSUITE_NAME=testcases/realtime
10*49cdfc7eSAndroid Build Coastguard Workerif [ -z "$PARENT" ]; then
11*49cdfc7eSAndroid Build Coastguard Worker    PARENT=${PWD%/$TESTSUITE_NAME*}
12*49cdfc7eSAndroid Build Coastguard Workerfi
13*49cdfc7eSAndroid Build Coastguard Worker
14*49cdfc7eSAndroid Build Coastguard Workerexport TESTS_DIR=$PARENT/$TESTSUITE_NAME
15*49cdfc7eSAndroid Build Coastguard Worker# TEST_REL_DIR is used as a unique id for a test dir
16*49cdfc7eSAndroid Build Coastguard Workerexport TEST_REL_DIR=${PWD#$TESTS_DIR/}
17*49cdfc7eSAndroid Build Coastguard Workerexport SCRIPTS_DIR=$TESTS_DIR/scripts
18*49cdfc7eSAndroid Build Coastguard Workerexport PROFILES_DIR=$TESTS_DIR/profiles
19*49cdfc7eSAndroid Build Coastguard Workerexport LOG_DIR=$TESTS_DIR/logs
20*49cdfc7eSAndroid Build Coastguard Workerexport ARGUMENTS_INPUT_ERROR=25
21*49cdfc7eSAndroid Build Coastguard Workerexport LOG_FORMAT="`hostname -s`-`uname -m`-`uname -r`-`date +%F`"
22*49cdfc7eSAndroid Build Coastguard Worker
23