|
Karanbir Singh |
2dd0be |
#!/bin/bash
|
|
Karanbir Singh |
7a0496 |
|
|
Steve Barnes |
e801dc |
# Author: Steve Barnes (steve@echo.id.au)
|
|
Steve Barnes |
e801dc |
# Description: this script sources our library functions and starts a test run.
|
|
Steve Barnes |
e801dc |
|
|
Karanbir Singh |
2dd0be |
echo -e "\n[+] `date` -> CentOS QA $0 starting."
|
|
Karanbir Singh |
2dd0be |
|
|
Karanbir Singh |
2dd0be |
LIB_FUNCTIONS='./tests/0_lib/functions.sh'
|
|
Karanbir Singh |
2dd0be |
|
|
Karanbir Singh |
2dd0be |
[ -f $LIB_FUNCTIONS ] && source $LIB_FUNCTIONS || { echo -e "\n[+] `date` -> Unable to source functions library. Cannot continue\n"; exit $FAIL; }
|
|
Karanbir Singh |
2dd0be |
|
|
Karanbir Singh |
2dd0be |
# case insensitive filename matching
|
|
Karanbir Singh |
2dd0be |
shopt -s nocasematch
|
|
Karanbir Singh |
2dd0be |
|
|
Karanbir Singh |
2dd0be |
# exit as soon as any script returns a non-zero exit status
|
|
Karanbir Singh |
2dd0be |
set -e
|
|
Karanbir Singh |
2dd0be |
|
|
Steve Barnes |
464547 |
# exit on undefined variables
|
|
Steve Barnes |
464547 |
set -u
|
|
Steve Barnes |
464547 |
|
|
Steve Barnes |
464547 |
# process our test scripts
|
|
Athmane Madjoudj |
26b415 |
t_Process <(/usr/bin/find ./tests/0_*/ -type f|sort -t'/' )
|
|
Athmane Madjoudj |
26b415 |
t_Process <(/usr/bin/find ./tests/p_*/ -type f|sort -t'/' )
|
|
Athmane Madjoudj |
26b415 |
t_Process <(/usr/bin/find ./tests/r_*/ -type f|sort -t'/' )
|
|
Karanbir Singh |
2dd0be |
|
|
Steve Barnes |
e801dc |
# and, we're done.
|
|
Karanbir Singh |
2dd0be |
t_Log "Finished."
|
|
Steve Barnes |
e801dc |
|