scripts for performance testing

This commit is contained in:
fedor
2018-06-27 12:04:00 -04:00
parent 94ac8f8a8b
commit 56ea7ddd2e
5 changed files with 49 additions and 0 deletions
+11
View File
@@ -0,0 +1,11 @@
# Prepare VM
```bash
./scripts/testing/prepare-vm-for-testing.sh
```
# Run Testing
```bash
./scripts/testing/run-test.sh
```
@@ -0,0 +1,8 @@
#!/usr/bin/env bash
yes '' | ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)"
echo "export PATH=/usr/local/bin:$PATH" >> ~/.profile
brew update
brew install node@8
brew link --force node@8
+9
View File
@@ -0,0 +1,9 @@
#!/usr/bin/env bash
set -e
ANKA_VERSION=$(anka version | egrep -o '([0-9].)+[0-9]')
echo "Creating high-sierra-perf-$ANKA_VERSION VM for testing..."
#anka create --ram-size 4G --cpu-count 2 --disk-size 60G --app /Applications/Install\ macOS\ High\ Sierra.app high-sierra-perf-$ANKA_VERSION
anka run --volume $PWD/scripts/testing high-sierra-perf-$ANKA_VERSION bash install-dependencies-for-tests.sh
+5
View File
@@ -0,0 +1,5 @@
#!/usr/bin/env bash
ANKA_VERSION=$(anka version | egrep -o '([0-9].)+[0-9]')
time anka run --volume $PWD/scripts/testing/volume high-sierra-perf-$ANKA_VERSION ./performance-test.sh
+16
View File
@@ -0,0 +1,16 @@
#!/usr/bin/env bash
set -e
mkdir -p puppeteer
rm -rf puppeteer
git clone https://github.com/GoogleChrome/puppeteer.git
cd puppeteer
npm install --unsafe-perm
npm run lint
npm run coverage
npm run test-doclint
cd ..
rm -rf puppeteer