const expect = require('chai').expect;

const version = process.env.QB_VERSION;

describe('check compiler version inside docker', function () {
    it('should have the same version', async () => {
        const exec = require('child_process').exec;
        let options = {
            timeout: 60000,
            killSignal: 'SIGKILL'
        };
        const result = await new Promise(resolve => exec(`docker run --rm -v ${__dirname}/env/version.cpp:/home/builder/bench-file.cpp -t fredtingaud/quick-bench:${version} /bin/bash -c "./build && ./run"`, options, (error, stdout, stderr) => {
            resolve(stdout + stderr);
        }));
        expect(result).to.eql(version);
    }).timeout(60000);
});

describe('check available standards', function() {
    it('should contain multiple standards', async() =>{
        const exec = require('child_process').exec;
        let options = {
            timeout: 60000,
            killSignal: 'SIGKILL'
        };
        const result = await new Promise(resolve => exec(`docker run --rm -t fredtingaud/quick-bench:${version} /bin/bash -c "./std-versions"`, options, (error, stdout, stderr) => {
            resolve(stdout + stderr);
        }));
        expect(result).to.not.be.empty();
        expect(result).to.contain('c++11');
    })
})
@@ -729,24 +729,20 @@
 ailable 
-standard
+flag
 s', func
@@ -1087,20 +1087,16 @@
  %22./
-std-versions
+about-me
 %22%60, 
@@ -1214,21 +1214,79 @@
 .to.
-not.be.empty(
+be.a('string').and.satisfy(msg =%3E msg.startsWith('%5Bversion%5D%5Cn1%5Cn%5Bstd%5D')
 );%0A 
@@ -1310,23 +1310,27 @@
 ult).to.
-conta
+have.str
 in
+g
 ('c++11'
@@ -1341,8 +1341,9 @@
    %7D)%0A%7D)
+%0A

Rename about-me script.