pts-core: Add pts-core/hooks/startup
This commit is contained in:
@@ -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
|
||||
|
||||
@@ -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
|
||||
|
||||
8
pts-core/hooks/startup/template.sh
Executable file
8
pts-core/hooks/startup/template.sh
Executable 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.
|
||||
|
||||
Reference in New Issue
Block a user