From 33058f2b292b3a581333bdfb21b8f671898c5060 Mon Sep 17 00:00:00 2001 From: Peter Bengtsson Date: Tue, 8 Dec 2020 14:40:17 -0500 Subject: initial commit --- .../automated_testing/tests_cppunit/index.html | 44 ++++++++++++++++++++++ 1 file changed, 44 insertions(+) create mode 100644 files/fr/archive/b2g_os/automated_testing/tests_cppunit/index.html (limited to 'files/fr/archive/b2g_os/automated_testing/tests_cppunit/index.html') diff --git a/files/fr/archive/b2g_os/automated_testing/tests_cppunit/index.html b/files/fr/archive/b2g_os/automated_testing/tests_cppunit/index.html new file mode 100644 index 0000000000..3f833b952f --- /dev/null +++ b/files/fr/archive/b2g_os/automated_testing/tests_cppunit/index.html @@ -0,0 +1,44 @@ +--- +title: Tests Cppunit +slug: Archive/B2G_OS/Automated_testing/Tests_Cppunit +tags: + - Automatisation + - cppunit + - tests +translation_of: Archive/B2G_OS/Automated_testing/Cppunit_Tests +--- +
+

Les tests Cppunit, sont des tests unitaires sans tête (headless) Gecko C++. Vous pouvez lancer les tests Cppunit sur B2G; dans cet article, nous verrons comment les réaliser. Actuellement, les tests sont effectués principalement sur l'émulateur, mais devrait en théorie fonctionner aussi bien sur les appareils.

+
+ +
+

A noter: Dans cet article, $B2G_HOME fait référence au clone du dépôt B2G.

+
+ +

À la dur

+ +

Actuellement, il n'y a pas de commande mach pour lancer les tests cppunit, alors nous sommes cantonnés à les lancer "à la dur".

+ +

Prérequis

+ + + +

Lancer les tests

+ +

Vous pouvez alors lancer les tests xpcshell en démarrant d'abord un émulateur puis en exécutant les commandes suivante:

+ +
cd $B2G_HOME/objdir-gecko
+make package-tests
+cd dist/test-stage/cppunittests
+python remotecppunittests.py --xre-path $B2G_HOME/objdir-gecko/dist/bin --adbpath $ADB_PATH --dm_trans=adb --addEnv LD_LIBRARY_PATH=/vendor/lib:/system/lib:/system/b2g <test1> <test2> ...
-- cgit v1.2.3-54-g00ecf