@@ -91,6 +91,8 @@ private static void verifyToolsPaths() {
9191 closeDialog ();
9292 pythonExePath ();
9393 closeDialog ();
94+ cmakeAndNinjaPath ();
95+ closeDialog ();
9496 }
9597
9698 private static void idfToolsPath () {
@@ -100,7 +102,7 @@ private static void idfToolsPath() {
100102
101103 Path idfToolsPath = Paths .get (System .getProperty ("user.home" ), ".espressif" , IDFConstants .TOOLS_FOLDER );
102104 String actualPath = bot .textWithLabel ("Value:" ).getText ();
103- assertTrue (actualPath .equals (idfToolsPath .toString ()));
105+ assertTrue ("IDF_TOOLS_PATH mismatch" , actualPath .equals (idfToolsPath .toString ()));
104106 }
105107
106108 private static void idfPath () {
@@ -110,7 +112,7 @@ private static void idfPath() {
110112
111113 Path idfPath = Paths .get (IDFUtil .getIDFPath ());
112114 String actualPath = bot .textWithLabel ("Value:" ).getText ();
113- assertTrue (actualPath .equals (idfPath .toString ()));
115+ assertTrue ("IDF_PATH mismatch" , actualPath .equals (idfPath .toString ()));
114116 }
115117
116118 private static void openOCDScripts () {
@@ -124,7 +126,7 @@ private static void openOCDScripts() {
124126 + "/openocd-esp32/*/openocd-esp32/share/openocd/scripts" ;
125127
126128 PathMatcher matcher = FileSystems .getDefault ().getPathMatcher (pattern );
127- assertTrue (matcher .matches (Paths .get (actualPath )));
129+ assertTrue ("OPENOCD_SCRIPTS mismatch" , matcher .matches (Paths .get (actualPath )));
128130 }
129131
130132 private static void idfPythonEnvPath () {
@@ -137,7 +139,7 @@ private static void idfPythonEnvPath() {
137139 String pattern = "glob:" + home + "/.espressif/" + IDFConstants .TOOLS_FOLDER + "/python/*/venv" ;
138140
139141 PathMatcher matcher = FileSystems .getDefault ().getPathMatcher (pattern );
140- assertTrue (matcher .matches (Paths .get (actualPath )));
142+ assertTrue ("IDF_PYTHON_ENV_PATH mismatch" , matcher .matches (Paths .get (actualPath )));
141143 }
142144
143145 private static void pythonExePath () {
@@ -150,7 +152,17 @@ private static void pythonExePath() {
150152 String pattern = "glob:" + home + "/.espressif/" + IDFConstants .TOOLS_FOLDER + "/python/*/venv/bin/python" ;
151153
152154 PathMatcher matcher = FileSystems .getDefault ().getPathMatcher (pattern );
153- assertTrue (matcher .matches (Paths .get (actualPath )));
155+ assertTrue ("PYTHON_EXE_PATH mismatch" , matcher .matches (Paths .get (actualPath )));
156+ }
157+
158+ private static void cmakeAndNinjaPath () {
159+ bot .table ().select ("PATH" );
160+ bot .table ().getTableItem ("PATH" ).doubleClick ();
161+ TestWidgetWaitUtility .waitForDialogToAppear (bot , "Edit variable" , 5000 );
162+
163+ String actualPath = bot .textWithLabel ("Value:" ).getText ();
164+ assertTrue ("cmake not found in the PATH" , actualPath .contains ("cmake" ));
165+ assertTrue ("ninja not found in the PATH" , actualPath .contains ("ninja" ));
154166 }
155167
156168 private static void closeDialog () {
0 commit comments