blob: 955662b3ac1dd6a9afd19f46e89c37864b70134f (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
|
source "$ezBenchDir/profiles.d/utils/common.sh"
source "$ezBenchDir/profiles.d/utils/git-repo.sh"
source "$ezBenchDir/profiles.d/utils/auto-deploy.sh"
# Accessible variables
# $ezBenchDir [RO]: Directory of the ezbench
# ------------------
# $rounds [WO]: Default number of rounds
# $makeAndDeployCmd [WO]: Command to compile and deploy the current git HEAD
# $gitVersionDeployedCmd [WO]: Command to print out the sha1 of the version currently deployed
# $repoDir [WO]: Path to the git repo to use for this profile
# $reportName [WO]: Name to give to your report
# $testsDir [WO]: List of pathes to the directories containing the tests for this profile
# $testsList [WO]: List of tests that should be ran in this profile
# $testExcludeList [WO]: List of tests that should be excluded in this profile
# MANDATORY: Print the currently-deployed version of the repo
# Inputs:
# - $repoDir
function profile_repo_deployed_version() {
opengl_version | sed -n 's/.*git-\(.*\).*/\1/p'
}
# MANDATORY: Compile the version of the repo found in the current working
# directory and install it to $(profile_repo_deployment_version_dir).
# Inputs:
# - CWD: Set inside the repo at the right version
# - $repoDir
# Outputs:
# - Print the build command line (echo "BUILD_INFO: build command: $cmd")
# - configure, compile and install to the prefix $(profile_repo_deployment_version_dir)
# - Fill the SHA1-db with all the information about the build when applicable
function repo_compile_version() {
prefix_dir=$(profile_repo_deployment_version_dir)
ARGS=${REPO_MESA_PARAMETERS//\$REPO_MESA_PREFIX/$prefix_dir}
echo "BUILD_INFO: build command: ./autogen.sh $ARGS"
./autogen.sh $ARGS || return 71
make -j8 || return 71
mkdir -p $prefix_dir || return 72
make_install_sha1_dump || return 72
return 0
}
export LD_LIBRARY_PATH="$PROFILE_DEPLOY_DIR/lib":$LD_LIBRARY_PATH
# for Vulkan
export VK_ICD_FILENAMES="$PROFILE_DEPLOY_DIR/share/vulkan/icd.d/intel_icd.x86_64.json"
rounds=3
repoDir="$REPO_MESA"
|