kkremitzki wrote:I don't think this will work on Windows... but would it be useful to use something like this to fire all GUI tests via make clean after a successful make?
Result after pasting code into FreeCAD console (I remove -daily because we don't have this on win)
Code: Select all
[FreeCAD Console mode <Use Ctrl-Z plus Return to exit.>]
>>> cat | freecadcmd &
File "<stdin>", line 1
cat | freecadcmd &
^
SyntaxError: invalid syntax
>>> fc_pid=$!
File "<stdin>", line 1
fc_pid=$!
^
SyntaxError: invalid syntax
>>> run_py () {
File "<stdin>", line 1
run_py () {
^
SyntaxError: invalid syntax
>>> echo "$1" > "/proc/$fc_pid/fd/0"
File "<stdin>", line 1
echo "$1" > "/proc/$fc_pid/fd/0"
^
IndentationError: unexpected indent
>>> }
File "<stdin>", line 1
}
^
SyntaxError: invalid syntax
>>> run_py "import FreeCADGui"
File "<stdin>", line 1
run_py "import FreeCADGui"
^
SyntaxError: invalid syntax
>>> run_py "FreeCADGui.showMainWindow()"
File "<stdin>", line 1
run_py "FreeCADGui.showMainWindow()"
^
SyntaxError: invalid syntax
>>> run_py "import QtUnitGui"
File "<stdin>", line 1
run_py "import QtUnitGui"
^
SyntaxError: invalid syntax
>>> run_py "QtUnitGui.addTest('TestApp.All')"
File "<stdin>", line 1
run_py "QtUnitGui.addTest('TestApp.All')"
^
SyntaxError: invalid syntax
>>> run_py "QtUnitGui.setTest('TestApp.All')"
File "<stdin>", line 1
run_py "QtUnitGui.setTest('TestApp.All')"
^
SyntaxError: invalid syntax
>>> run_py "import qtunittest, gc"
File "<stdin>", line 1
run_py "import qtunittest, gc"
^
SyntaxError: invalid syntax
>>> run_py "__qt_test__=qtunittest.QtTestRunner(0,'')"
File "<stdin>", line 1
run_py "__qt_test__=qtunittest.QtTestRunner(0,'')"
^
SyntaxError: invalid syntax
>>> run_py "__qt_test__.runClicked()"
File "<stdin>", line 1
run_py "__qt_test__.runClicked()"
^
SyntaxError: invalid syntax
>>> run_py "del __qt_test__"
File "<stdin>", line 1
run_py "del __qt_test__"
^
SyntaxError: invalid syntax
>>> run_py "gc.collect()"
File "<stdin>", line 1
run_py "gc.collect()"
^
SyntaxError: invalid syntax
>>>
ian.rees wrote:Tests certainly should not happen after "clean" - that target already has a well established meaning: delete all intermediate compilation files. -Ian-
+1
on win it could be a seperate project, like
make
make guitest
make install