applying fuego with audio test automation to...

31
© 2018 Renesas Electronics Corporation. All rights reserved. APPLYING FUEGO WITH AUDIO TEST AUTOMATION TO AUTOMATE MULTIMEDIA VERIFICATION FOR AGL DISTROS 2018/02/20 TRIET HUYNH SENIOR SOFTWARE ENGINEER, SOFTWARE ENGINEERING DIVISION, RENESAS DESIGN VIETNAM

Upload: others

Post on 16-Jul-2020

2 views

Category:

Documents


0 download

TRANSCRIPT

Page 1: APPLYING FUEGO WITH AUDIO TEST AUTOMATION TO …fuegotest.org/ffiles/AGL-AMM_Applying-Audio-Automation... · 2018-03-08 · Renesas Design Vietnam Co., Ltd. (RVC) was founded in October

© 2018 Renesas Electronics Corporation. All rights reserved.

APPLYING FUEGO WITH AUDIO TEST AUTOMATION TO AUTOMATE MULTIMEDIA VERIFICATION FOR AGL DISTROS

2018/02/20

TRIET HUYNH

SENIOR SOFTWARE ENGINEER, SOFTWARE ENGINEERING DIVISION,

RENESAS DESIGN VIETNAM

Page 2: APPLYING FUEGO WITH AUDIO TEST AUTOMATION TO …fuegotest.org/ffiles/AGL-AMM_Applying-Audio-Automation... · 2018-03-08 · Renesas Design Vietnam Co., Ltd. (RVC) was founded in October

© 2018 Renesas Electronics Corporation. All rights reserved. BIG IDEAS FOR EVERY SPACE

INTRODUCTION

Renesas Electronics AmericaRenesas Electronics CanadaRenesas Electronics Brasil-ServicosRenesas Electronics Europe (UK) Renesas Electronics Europe (Germany) Renesas Electronics (China)Renesas Electronics (Shanghai) Renesas Electronics Hong KongRenesas Electronics TaiwanRenesas Electronics SingaporeRenesas Electronics MalaysiaRenesas Electronics India Renesas Electronics Korea

Sales Companies

Renesas Semiconductor ManufacturingRenesas Semiconductor Package & Test SolutionsRenesas Semiconductor (Beijing) Renesas Semiconductor (Suzhou) Renesas Semiconductor (Malaysia)Renesas Semiconductor (Kedah)Renesas Semiconductor Technology (Malaysia)Renesas Semiconductor KL

Manufacturing and Engineering Service Companies

Renesas System DesignRenesas EngineeringServicesRenesas Design VietnamRenesas Semiconductor Design (Beijing)Renesas Semiconductor Design(Malaysia)

Design and Application Technologies Companies

Business Corporation

Intersil Corporation

Renesas Design Vietnam Co., Ltd. (RVC) was founded in October 2004,

as one of the main design centers in Renesas group.

Business line: Design of semiconductor for both hardware and software.

Page 2

Page 3: APPLYING FUEGO WITH AUDIO TEST AUTOMATION TO …fuegotest.org/ffiles/AGL-AMM_Applying-Audio-Automation... · 2018-03-08 · Renesas Design Vietnam Co., Ltd. (RVC) was founded in October

© 2018 Renesas Electronics Corporation. All rights reserved. BIG IDEAS FOR EVERY SPACE

INTRODUCTION

WHO AM I ?

Name: Triet Luu. Huynh (TRIET Huynh –チエト ヒュイン)

Company: Renesas Design Vietnam

Career: 06 years experiences in embedded software development (software verification)

Quality Verification for Mobile software platform

Development and verification for In-vehicle software platform

Development for test automation solutions of In-vehicle software platform

Email: [email protected]

Page 3

Page 4: APPLYING FUEGO WITH AUDIO TEST AUTOMATION TO …fuegotest.org/ffiles/AGL-AMM_Applying-Audio-Automation... · 2018-03-08 · Renesas Design Vietnam Co., Ltd. (RVC) was founded in October

© 2018 Renesas Electronics Corporation. All rights reserved. BIG IDEAS FOR EVERY SPACE

AGENDA

Introduction about Audio Automation Test

An approach for Audio Automation Test

How to apply the audio automation test

Limitation and Future plan

Conclusion

Page 4

Page 5: APPLYING FUEGO WITH AUDIO TEST AUTOMATION TO …fuegotest.org/ffiles/AGL-AMM_Applying-Audio-Automation... · 2018-03-08 · Renesas Design Vietnam Co., Ltd. (RVC) was founded in October

© 2018 Renesas Electronics Corporation. All rights reserved. BIG IDEAS FOR EVERY SPACE

Introduction about Audio Automation Test

Page 6: APPLYING FUEGO WITH AUDIO TEST AUTOMATION TO …fuegotest.org/ffiles/AGL-AMM_Applying-Audio-Automation... · 2018-03-08 · Renesas Design Vietnam Co., Ltd. (RVC) was founded in October

© 2018 Renesas Electronics Corporation. All rights reserved. BIG IDEAS FOR EVERY SPACE

INTRODUCTION ABOUT AUDIO AUTOMATION TEST

The Audio Manual test:

Testers will hear and judge the audio’s quality by

human ears 1

2

<playing audio>

<listen and judge>

Page 6

The test result is un-reliable

Big problem:

The audio testing results are based on the

tester’s feeling / experiment

Page 7: APPLYING FUEGO WITH AUDIO TEST AUTOMATION TO …fuegotest.org/ffiles/AGL-AMM_Applying-Audio-Automation... · 2018-03-08 · Renesas Design Vietnam Co., Ltd. (RVC) was founded in October

© 2018 Renesas Electronics Corporation. All rights reserved. BIG IDEAS FOR EVERY SPACE

INTRODUCTION ABOUT AUDIO AUTOMATION TEST

The Audio Manual test:

Testers will hear and judge the audio’s quality by

human ears 1

2

<playing audio>

<listen and judge>

Page 7

The test result is un-reliable

Big problem:

The audio testing results are based on the

tester’s feeling / experimentPC

We need to automate this, to make the reliable test results,

NOT depends on Human Feeling

Replace “human role” by “MACHINE ROLE”

Page 8: APPLYING FUEGO WITH AUDIO TEST AUTOMATION TO …fuegotest.org/ffiles/AGL-AMM_Applying-Audio-Automation... · 2018-03-08 · Renesas Design Vietnam Co., Ltd. (RVC) was founded in October

© 2018 Renesas Electronics Corporation. All rights reserved. BIG IDEAS FOR EVERY SPACE

INTRODUCTION ABOUT AUDIO AUTOMATION TEST

The Audio Automation test:

Testers will check the report from automation judgment

The test result is NOT depend on tester’s feeling1

2

<playing audio>

<verify audio quality>

Propose an approach for Audio Automation Testing

Passed

/ Fail

PC<listen / judge>

Page 8

Big problem:

Difficult to implement the audio automation

test / the reliable audio automation judgment

Page 9: APPLYING FUEGO WITH AUDIO TEST AUTOMATION TO …fuegotest.org/ffiles/AGL-AMM_Applying-Audio-Automation... · 2018-03-08 · Renesas Design Vietnam Co., Ltd. (RVC) was founded in October

© 2018 Renesas Electronics Corporation. All rights reserved. BIG IDEAS FOR EVERY SPACE

INTRODUCTION ABOUT AUDIO AUTOMATION TEST

The Audio Automation test:

Testers will check the report from automation judgment

The test result is NOT depend on tester’s feeling1

2

<playing audio>

<verify audio quality>

PC<listen / judge>

Page 9

Solution:

The automation test framework: Fuego

The hardware connection

Audio issue detection method: the OSS

Application / Tools

Page 10: APPLYING FUEGO WITH AUDIO TEST AUTOMATION TO …fuegotest.org/ffiles/AGL-AMM_Applying-Audio-Automation... · 2018-03-08 · Renesas Design Vietnam Co., Ltd. (RVC) was founded in October

© 2018 Renesas Electronics Corporation. All rights reserved. BIG IDEAS FOR EVERY SPACE

INTRODUCTION ABOUT AUDIO AUTOMATION TEST

What is Fuego?

Fuego is a test framework specifically designed for

embedded Linux testing. It supports automated

testing of embedded targets from a host system, as

it's primary method of test execution.

Fuego consists of a host/target script engine, with a

Jenkins front-end, and over 50 pre-packaged tests,

installed in a docker container.

Tim Bird gave a talk introducing Fuego, at

Embedded Linux Conference in April 2016, and

LinuxCon Japan 2016

Fuego PC

Container build system

Docker container

Jenkins

Test programs

Scripts

Toolchains

Configs

Builds

Logs

Mount

volume Target board

Fuego = (Jenkins + abstraction scripts + pre-packed tests) inside a container

Page 10

Page 11: APPLYING FUEGO WITH AUDIO TEST AUTOMATION TO …fuegotest.org/ffiles/AGL-AMM_Applying-Audio-Automation... · 2018-03-08 · Renesas Design Vietnam Co., Ltd. (RVC) was founded in October

© 2018 Renesas Electronics Corporation. All rights reserved. BIG IDEAS FOR EVERY SPACE

INTRODUCTION ABOUT AUDIO AUTOMATION TEST

HUB

Fuego PC

Sound Card

Sound Card

Sound Card

Target board

Target board

Target board

Advantages:

The test results are more reliable

Can apply for overnight testing -> reduce the

workload

Page 11

Hardware connection:

Page 12: APPLYING FUEGO WITH AUDIO TEST AUTOMATION TO …fuegotest.org/ffiles/AGL-AMM_Applying-Audio-Automation... · 2018-03-08 · Renesas Design Vietnam Co., Ltd. (RVC) was founded in October

© 2018 Renesas Electronics Corporation. All rights reserved. BIG IDEAS FOR EVERY SPACE

An approach for Audio Automation Test

Page 13: APPLYING FUEGO WITH AUDIO TEST AUTOMATION TO …fuegotest.org/ffiles/AGL-AMM_Applying-Audio-Automation... · 2018-03-08 · Renesas Design Vietnam Co., Ltd. (RVC) was founded in October

© 2018 Renesas Electronics Corporation. All rights reserved. BIG IDEAS FOR EVERY SPACE

AN APPROACH FOR AUDIO AUTOMATION TEST

Audio issues:

We list the common audio issues which usually occurs in our testing (based on the

experimental)

Burst noise

Background noise

Gap (silence) issue

Left/Right Channel Reverse

Page 13

Page 14: APPLYING FUEGO WITH AUDIO TEST AUTOMATION TO …fuegotest.org/ffiles/AGL-AMM_Applying-Audio-Automation... · 2018-03-08 · Renesas Design Vietnam Co., Ltd. (RVC) was founded in October

© 2018 Renesas Electronics Corporation. All rights reserved. BIG IDEAS FOR EVERY SPACE

Definition:

Burst Noise is the sound we hear like popcorn (white

noise)

When transform the waveform in time domain to Frequency

domain and power domain, in which there are high energy

and almost random distribution of sample values across the

full bandwidth

Solution:

Utilize the Open Source Software tools (E.g. Audacity,

ffmpeg) to detect the noise

Limitation:

Wrong issue judgment if audio hardware’s quality is not good

Original Audio

Audio has Burst noise

Audio has Burst noise

AN APPROACH FOR AUDIO AUTOMATION TEST

Page 14

L

R

L

R

Page 15: APPLYING FUEGO WITH AUDIO TEST AUTOMATION TO …fuegotest.org/ffiles/AGL-AMM_Applying-Audio-Automation... · 2018-03-08 · Renesas Design Vietnam Co., Ltd. (RVC) was founded in October

© 2018 Renesas Electronics Corporation. All rights reserved. BIG IDEAS FOR EVERY SPACE

Definition:

Background noise is the pink noise which causes the

different waveform between original audio and recorded

audio

Solution:

Use Open Source Applications to compare the similarity

between recorded audio and original audio (E.g. ffmpeg,

Musly)

Original Audio

Audio has Background noise

Audio has Background noise

AN APPROACH FOR AUDIO AUTOMATION TEST

Page 15

L

R

L

R

L

R

Page 16: APPLYING FUEGO WITH AUDIO TEST AUTOMATION TO …fuegotest.org/ffiles/AGL-AMM_Applying-Audio-Automation... · 2018-03-08 · Renesas Design Vietnam Co., Ltd. (RVC) was founded in October

© 2018 Renesas Electronics Corporation. All rights reserved. BIG IDEAS FOR EVERY SPACE

Definition:

Gap or silence is the issue that there is silent part while

playing audio.

Solution:

Use silent detection feature in some Open Source

Applications to detect (E.g. ffmpeg, Audacity,…)

Limitation:

Now, the Open Source Applications cannot detect silent in

one audio channel

Original Audio

Audio has Gap issue

Audio has Gap issue in one channel

AN APPROACH FOR AUDIO AUTOMATION TEST

Page 16

L

R

L

R

L

R

Page 17: APPLYING FUEGO WITH AUDIO TEST AUTOMATION TO …fuegotest.org/ffiles/AGL-AMM_Applying-Audio-Automation... · 2018-03-08 · Renesas Design Vietnam Co., Ltd. (RVC) was founded in October

© 2018 Renesas Electronics Corporation. All rights reserved. BIG IDEAS FOR EVERY SPACE

Definition:

Left/Right Reverse is the issue that the Left and Right

channels of the recorded audio file are reversed.

Solution:

Use the Fast Dynamic Time Warping algorithm (*) to

compare the recorded file with the original file.

Original Audio

Audio has reversed channel

AN APPROACH FOR AUDIO AUTOMATION TEST

(*) https://pdfs.semanticscholar.org/05a2/0cde15e172fc82f32774dd0cf4fe5827cad2.pdf

Page 17

L

R

L

R

Page 18: APPLYING FUEGO WITH AUDIO TEST AUTOMATION TO …fuegotest.org/ffiles/AGL-AMM_Applying-Audio-Automation... · 2018-03-08 · Renesas Design Vietnam Co., Ltd. (RVC) was founded in October

© 2018 Renesas Electronics Corporation. All rights reserved. BIG IDEAS FOR EVERY SPACE

AN APPROACH FOR AUDIO AUTOMATION TEST

HUB

Fuego PC

Sound Card

Sound Card

Sound Card

Target board

Target board

Target board

Page 18

Page 19: APPLYING FUEGO WITH AUDIO TEST AUTOMATION TO …fuegotest.org/ffiles/AGL-AMM_Applying-Audio-Automation... · 2018-03-08 · Renesas Design Vietnam Co., Ltd. (RVC) was founded in October

© 2018 Renesas Electronics Corporation. All rights reserved. BIG IDEAS FOR EVERY SPACE

How to apply the audio automation test

Page 20: APPLYING FUEGO WITH AUDIO TEST AUTOMATION TO …fuegotest.org/ffiles/AGL-AMM_Applying-Audio-Automation... · 2018-03-08 · Renesas Design Vietnam Co., Ltd. (RVC) was founded in October

© 2018 Renesas Electronics Corporation. All rights reserved. BIG IDEAS FOR EVERY SPACE

Procedure to apply the Audio Automation Test:

Target Board:

Modify the Software on Target boards (E.g. Audio

Player) to synchronize Host PC and Target Board

HOW TO APPLY THE AUDIO AUTOMATION TEST

Audio Out

Page 20

Page 21: APPLYING FUEGO WITH AUDIO TEST AUTOMATION TO …fuegotest.org/ffiles/AGL-AMM_Applying-Audio-Automation... · 2018-03-08 · Renesas Design Vietnam Co., Ltd. (RVC) was founded in October

© 2018 Renesas Electronics Corporation. All rights reserved. BIG IDEAS FOR EVERY SPACE

Procedure to apply the Audio Automation Test:

Target Board:

Modify the Software on Target boards (E.g. Audio

Player) to synchronize Host PC and Target Board

Host PC:

Install Fuego on Host PC

Install the Audio Automation Test on Fuego

HOW TO APPLY THE AUDIO AUTOMATION TEST

Page 21

Page 22: APPLYING FUEGO WITH AUDIO TEST AUTOMATION TO …fuegotest.org/ffiles/AGL-AMM_Applying-Audio-Automation... · 2018-03-08 · Renesas Design Vietnam Co., Ltd. (RVC) was founded in October

© 2018 Renesas Electronics Corporation. All rights reserved. BIG IDEAS FOR EVERY SPACE

Procedure to apply the Audio Automation Test:

Target Board:

Modify the Software on Target boards (E.g. Audio

Player) to synchronize Host PC and Target Board

Host PC:

Install Fuego on Host PC

Install the Audio Automation Test on Fuego

Hardware Connection:

Connect the Audio Output from Target Board to the

Sound Card of Host PC

HOW TO APPLY THE AUDIO AUTOMATION TEST

Page 22

Audio cable

Page 23: APPLYING FUEGO WITH AUDIO TEST AUTOMATION TO …fuegotest.org/ffiles/AGL-AMM_Applying-Audio-Automation... · 2018-03-08 · Renesas Design Vietnam Co., Ltd. (RVC) was founded in October

© 2018 Renesas Electronics Corporation. All rights reserved. BIG IDEAS FOR EVERY SPACE

HOW TO APPLY THE AUDIO AUTOMATION TEST

HUB

Fuego PC

Sound Card

Sound Card

Sound Card

Target board

Target board

Target board

Page 23

Page 24: APPLYING FUEGO WITH AUDIO TEST AUTOMATION TO …fuegotest.org/ffiles/AGL-AMM_Applying-Audio-Automation... · 2018-03-08 · Renesas Design Vietnam Co., Ltd. (RVC) was founded in October

© 2018 Renesas Electronics Corporation. All rights reserved. BIG IDEAS FOR EVERY SPACE

Impact of Audio Automation Test:

Compare the testing time:

Audio – Manual Test:

Audio length (E.g: 4 mins)

Audio – Automation Test:

Audio length (4 mins)

Recording time (~15 secs)

Issue detection (~1min 30secs)

Total: ~6 mins (1.5 times comparing with

manual test)

HOW TO APPLY THE AUDIO AUTOMATION TEST

Page 24

Compare the productivity:

Audio – Manual Test:

1 person / 1 board / 1 day: 30 TCs

Audio – Automation Test:

1 person / 1 boards / 1 day (24-hours):

~100 TCs

(could use for overnight testing)

Page 25: APPLYING FUEGO WITH AUDIO TEST AUTOMATION TO …fuegotest.org/ffiles/AGL-AMM_Applying-Audio-Automation... · 2018-03-08 · Renesas Design Vietnam Co., Ltd. (RVC) was founded in October

© 2018 Renesas Electronics Corporation. All rights reserved. BIG IDEAS FOR EVERY SPACE

Limitation and Future plan

Page 26: APPLYING FUEGO WITH AUDIO TEST AUTOMATION TO …fuegotest.org/ffiles/AGL-AMM_Applying-Audio-Automation... · 2018-03-08 · Renesas Design Vietnam Co., Ltd. (RVC) was founded in October

© 2018 Renesas Electronics Corporation. All rights reserved. BIG IDEAS FOR EVERY SPACE

Current limitations:

“False-positive”:

Using the “bad-quality test stream” Result is always FAIL

MUST modify the software on Target Board

In order to synchronize the Target Board and Host PC while testing

Limitation of Open Source applications / tools:

Because of the current limitation of some Open Source applications (E.g. ffmpeg,

Audacity, …)

LIMITATION OF AUDIO AUTOMATION TEST

Page 26

Page 27: APPLYING FUEGO WITH AUDIO TEST AUTOMATION TO …fuegotest.org/ffiles/AGL-AMM_Applying-Audio-Automation... · 2018-03-08 · Renesas Design Vietnam Co., Ltd. (RVC) was founded in October

© 2018 Renesas Electronics Corporation. All rights reserved. BIG IDEAS FOR EVERY SPACE

Fix the current limitations:

“False-positive”:

Re-order the detection modules: Compare waveform Check issues

MUST modify the software on Target Board

Re-searching the solutions: E.g. Detect the first audio signal from target board, …

Limitation of Open Source applications / tools:

Try to feedback the limitations to the Community

Expand the Audio Automation Test for various systems

Make the Audio Automation Test become more friendly for every user

FUTURE PLAN

Page 27

Page 28: APPLYING FUEGO WITH AUDIO TEST AUTOMATION TO …fuegotest.org/ffiles/AGL-AMM_Applying-Audio-Automation... · 2018-03-08 · Renesas Design Vietnam Co., Ltd. (RVC) was founded in October

© 2018 Renesas Electronics Corporation. All rights reserved. BIG IDEAS FOR EVERY SPACE

CONCLUSION

By combination between the Fuego and the Open Source Applications, Renesas could make

an simple Audio Automation Test for Linux platform.

With the Audio automation test => reduce the testing workload and get the reliable results

But, still some current limitations (in the development and Open Source side)

Continue to fix these and promote the Audio automation test for various platforms

Page 28

Fuego OSS ToolsAudio

Automation Test

Page 29: APPLYING FUEGO WITH AUDIO TEST AUTOMATION TO …fuegotest.org/ffiles/AGL-AMM_Applying-Audio-Automation... · 2018-03-08 · Renesas Design Vietnam Co., Ltd. (RVC) was founded in October

© 2018 Renesas Electronics Corporation. All rights reserved. BIG IDEAS FOR EVERY SPACE

REFERENCE

http://waubrafoundation.org.au/wp-content/uploads/2013/04/Leventhall-LFN-Whatweknow.pdf

https://gi.cebitec.uni-bielefeld.de/teaching/2007summer/jclub/papers/Salvador2004.pdf

Page 29

Page 30: APPLYING FUEGO WITH AUDIO TEST AUTOMATION TO …fuegotest.org/ffiles/AGL-AMM_Applying-Audio-Automation... · 2018-03-08 · Renesas Design Vietnam Co., Ltd. (RVC) was founded in October

© 2018 Renesas Electronics Corporation. All rights reserved. BIG IDEAS FOR EVERY SPACE

THE END

THANK YOU VERY MUCH!

Page 31: APPLYING FUEGO WITH AUDIO TEST AUTOMATION TO …fuegotest.org/ffiles/AGL-AMM_Applying-Audio-Automation... · 2018-03-08 · Renesas Design Vietnam Co., Ltd. (RVC) was founded in October

© 2018 Renesas Electronics Corporation. All rights reserved. BIG IDEAS FOR EVERY SPACE

Q & A