A few minor fixes
This commit is contained in:
parent
bfaf87bfb5
commit
6466606cbc
|
@ -7,7 +7,6 @@ Run `cmd` as administrator.
|
||||||
powershell
|
powershell
|
||||||
Set-ExecutionPolicy Unrestricted
|
Set-ExecutionPolicy Unrestricted
|
||||||
.\setup_env_windows.ps1 <PHP_VERSION - 7.x.x> <PHP_THREAD - ts or nts> <Absolute path to driver source folder> <ARCH - x86 or x64>
|
.\setup_env_windows.ps1 <PHP_VERSION - 7.x.x> <PHP_THREAD - ts or nts> <Absolute path to driver source folder> <ARCH - x86 or x64>
|
||||||
If `PHP_VERSION` is wrong, the script will default it to the latest PHP 7.1 version
|
|
||||||
|
|
||||||
### Ubuntu 16
|
### Ubuntu 16
|
||||||
sudo env “PATH=$PATH” bash setup_env_unix.sh Ubuntu16 <PHP_VERSION - 7.x.x> <PHP_THREAD - ts or nts> <Absolute path to driver source folder>
|
sudo env “PATH=$PATH” bash setup_env_unix.sh Ubuntu16 <PHP_VERSION - 7.x.x> <PHP_THREAD - ts or nts> <Absolute path to driver source folder>
|
||||||
|
@ -21,9 +20,9 @@ If `PHP_VERSION` is wrong, the script will default it to the latest PHP 7.1 vers
|
||||||
|
|
||||||
### 1. Modify lib/connect.php with the test database credetials
|
### 1. Modify lib/connect.php with the test database credetials
|
||||||
### 2. Execute run-perf_tests.py.
|
### 2. Execute run-perf_tests.py.
|
||||||
The script must be executed with `sudo` because to enable pooling it needs to modify odbcinst.ini system file. As an improvement, the location of the odbcinst.ini file can be changed so that, sudo is not requiered.
|
The script must be executed with `sudo python3` because to enable pooling it needs to modify odbcinst.ini system file. As an improvement, the location of the odbcinst.ini file can be changed so that, sudo is not requiered.
|
||||||
|
|
||||||
run-perf_tests.py -platform <PLATFORM> -iterations <ITERATIONS> -iterations-large <ITERATIONS_LARGE> -result-server <RESULT_SERVER> -result-db <RESULT_DB> -result-uid <RESULT_UID> -result-pwd <RESULT_PWD>
|
py.exe run-perf_tests.py -platform <PLATFORM> -iterations <ITERATIONS> -iterations-large <ITERATIONS_LARGE> -result-server <RESULT_SERVER> -result-db <RESULT_DB> -result-uid <RESULT_UID> -result-pwd <RESULT_PWD>
|
||||||
|
|
||||||
`-platform` - The platform that the tests are ran on. Must be one of the following: Windows10, WidnowsServer2016 WindowsServer2012 Ubuntu16 RedHat7 Sierra
|
`-platform` - The platform that the tests are ran on. Must be one of the following: Windows10, WidnowsServer2016 WindowsServer2012 Ubuntu16 RedHat7 Sierra
|
||||||
`-iterations` - The number of iterations for regular tests.
|
`-iterations` - The number of iterations for regular tests.
|
||||||
|
|
|
@ -55,7 +55,7 @@ def validate_platform( platform_name ):
|
||||||
"""
|
"""
|
||||||
platforms = [
|
platforms = [
|
||||||
"Windows10"
|
"Windows10"
|
||||||
, "WidnowsServer2016"
|
, "WindowsServer2016"
|
||||||
, "WindowsServer2012"
|
, "WindowsServer2012"
|
||||||
, "Ubuntu16"
|
, "Ubuntu16"
|
||||||
, "RedHat7"
|
, "RedHat7"
|
||||||
|
|
|
@ -35,6 +35,7 @@ Write-Host "Installing chocolatey..."
|
||||||
iex ((New-Object System.Net.WebClient).DownloadString('https://chocolatey.org/install.ps1'))
|
iex ((New-Object System.Net.WebClient).DownloadString('https://chocolatey.org/install.ps1'))
|
||||||
Write-Host "Installing Git..."
|
Write-Host "Installing Git..."
|
||||||
choco install -y git
|
choco install -y git
|
||||||
|
Set-Alias git 'C:\Program Files\Git\cmd\git.exe'
|
||||||
Write-Host "Installing Python3..."
|
Write-Host "Installing Python3..."
|
||||||
choco install -y python3
|
choco install -y python3
|
||||||
RefreshEnv
|
RefreshEnv
|
||||||
|
@ -107,3 +108,5 @@ RefreshEnv
|
||||||
wget https://getcomposer.org/installer -O composer-setup.php
|
wget https://getcomposer.org/installer -O composer-setup.php
|
||||||
php composer-setup.php
|
php composer-setup.php
|
||||||
php composer.phar install
|
php composer.phar install
|
||||||
|
Remove-Item temp -Recurse -Force -ErrorAction Ignore
|
||||||
|
Write-Host "Setup completed!"
|
Loading…
Reference in a new issue