pts-core: Add pts-core/hooks/startup

This commit is contained in:
Michael Larabel
2015-04-21 11:00:10 -05:00
parent 98acce582a
commit fe613f1f54
3 changed files with 18 additions and 0 deletions

View File

@@ -5,6 +5,7 @@ Phoronix Test Suite (Git)
- pts-core: Fix potential crash in list-installed-suites sub-command
- pts-core: Enforce CCACHE_DISABLE=1 during install/runtime testing
- pts-core: Finish removal of hhvm-server support since it's long been discontinued upstream
- pts-core: Add pts-core/hooks/startup
- phodevi: Reporting of Btrfs RAID levels to system component table when running disk tests
- phoromatic: Workaround for instr() usage in SQLite that caused issues with older distributions
- phoromatic: Add LetPublicViewResults option and new public results listing page

View File

@@ -31,6 +31,15 @@ then
cd $PTS_DIR
fi
# Run any start-up hooks, such as to pre-seed environment variables or other non-default behaviors / customizations
if [ -d pts-core/hooks/startup ]
then
for file in pts-core/hooks/startup/*.sh
do
./$file
done
fi
# Determine PHP binary location
if [ ! "X$PHP_BIN" = "X" ] && [ -x $PHP_BIN ]
then

View File

@@ -0,0 +1,8 @@
#!/bin/sh
# Scripts placed within this directory are called immediately prior to launching the Phoronix Test Suite for the first time.
# hooks/startup are useful if wanting to pre-seed certain environment variables prior to executing the Phoronix Test Suite, etc.
# No special environment variables are passed/pre-seeded prior to running the scripts in this folder.