mirror of
https://github.com/NixOS/nixpkgs.git
synced 2025-02-24 13:05:08 +00:00
gns3-server,gns3-gui: enable checkPhase
This commit is contained in:
parent
1387e36a73
commit
e206ee4cf3
@ -6,6 +6,7 @@
|
|||||||
{ lib
|
{ lib
|
||||||
, python3
|
, python3
|
||||||
, fetchFromGitHub
|
, fetchFromGitHub
|
||||||
|
, qt5
|
||||||
, wrapQtAppsHook
|
, wrapQtAppsHook
|
||||||
}:
|
}:
|
||||||
|
|
||||||
@ -36,14 +37,25 @@ python3.pkgs.buildPythonApplication rec {
|
|||||||
importlib-resources
|
importlib-resources
|
||||||
];
|
];
|
||||||
|
|
||||||
doCheck = false; # Failing
|
|
||||||
|
|
||||||
dontWrapQtApps = true;
|
dontWrapQtApps = true;
|
||||||
|
|
||||||
preFixup = ''
|
preFixup = ''
|
||||||
wrapQtApp "$out/bin/gns3"
|
wrapQtApp "$out/bin/gns3"
|
||||||
'';
|
'';
|
||||||
|
|
||||||
|
doCheck = true;
|
||||||
|
|
||||||
|
checkInputs = with python3.pkgs; [
|
||||||
|
pytestCheckHook
|
||||||
|
];
|
||||||
|
|
||||||
|
preCheck = ''
|
||||||
|
export HOME=$(mktemp -d)
|
||||||
|
export QT_PLUGIN_PATH="${qt5.qtbase.bin}/${qt5.qtbase.qtPluginPrefix}"
|
||||||
|
export QT_QPA_PLATFORM_PLUGIN_PATH="${qt5.qtbase.bin}/lib/qt-${qt5.qtbase.version}/plugins";
|
||||||
|
export QT_QPA_PLATFORM=offscreen
|
||||||
|
'';
|
||||||
|
|
||||||
meta = with lib; {
|
meta = with lib; {
|
||||||
description = "Graphical Network Simulator 3 GUI (${channel} release)";
|
description = "Graphical Network Simulator 3 GUI (${channel} release)";
|
||||||
longDescription = ''
|
longDescription = ''
|
||||||
|
@ -46,13 +46,31 @@ python3.pkgs.buildPythonApplication {
|
|||||||
zipstream
|
zipstream
|
||||||
];
|
];
|
||||||
|
|
||||||
# Requires network access
|
|
||||||
doCheck = false;
|
|
||||||
|
|
||||||
postInstall = ''
|
postInstall = ''
|
||||||
rm $out/bin/gns3loopback # For Windows only
|
rm $out/bin/gns3loopback # For Windows only
|
||||||
'';
|
'';
|
||||||
|
|
||||||
|
doCheck = true;
|
||||||
|
|
||||||
|
# Otherwise tests will fail to create directory
|
||||||
|
# Permission denied: '/homeless-shelter'
|
||||||
|
preCheck = ''
|
||||||
|
export HOME=$(mktemp -d)
|
||||||
|
'';
|
||||||
|
|
||||||
|
checkInputs = with python3.pkgs; [
|
||||||
|
pytest-aiohttp
|
||||||
|
pytest-rerunfailures
|
||||||
|
pytestCheckHook
|
||||||
|
];
|
||||||
|
|
||||||
|
pytestFlagsArray = [
|
||||||
|
# fails on ofborg because of lack of cpu vendor information
|
||||||
|
"--deselect=tests/controller/gns3vm/test_virtualbox_gns3_vm.py::test_cpu_vendor_id"
|
||||||
|
# Rerun failed tests up to three times (flaky tests)
|
||||||
|
"--reruns 3"
|
||||||
|
];
|
||||||
|
|
||||||
meta = with lib; {
|
meta = with lib; {
|
||||||
description = "Graphical Network Simulator 3 server (${channel} release)";
|
description = "Graphical Network Simulator 3 server (${channel} release)";
|
||||||
longDescription = ''
|
longDescription = ''
|
||||||
|
Loading…
Reference in New Issue
Block a user