File: skip-tests.patch

package info (click to toggle)
openmm 8.1.2%2Bdfsg-12
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 119,192 kB
  • sloc: xml: 377,325; cpp: 226,673; ansic: 42,767; python: 32,634; lisp: 2,441; sh: 440; makefile: 254; f90: 233; csh: 19
file content (86 lines) | stat: -rw-r--r-- 3,979 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
Description: Skipping tests that either take too long, require unsupported
 platforms, or are too memory-intensive.
Author: Andrius Merkys <merkys@debian.org>
Forwarded: not-needed
--- a/wrappers/python/tests/TestModeller.py
+++ b/wrappers/python/tests/TestModeller.py
@@ -1153,7 +1153,7 @@
                 expectedDist = 0.09 if j == 0 else 0.147
                 self.assertTrue(dist > (expectedDist-0.01)*nanometers and dist < (expectedDist+0.01)*nanometers)
 
-
+    @unittest.skipIf(True, "Skipping a test which takes too long")
     def test_addMembrane(self):
         """Test adding a membrane to a realistic system."""
 
--- a/wrappers/python/tests/TestCharmmFiles.py
+++ b/wrappers/python/tests/TestCharmmFiles.py
@@ -174,6 +174,7 @@
         energy = state.getPotentialEnergy().value_in_unit(kilocalories_per_mole)
         self.assertAlmostEqual(energy, 3.1166, delta=1e-4)
 
+    @unittest.skipIf(True, 'Skipping test failing due to missing platforms')
     def test_NBThole(self):
         """Tests CHARMM system with NBTHole"""
         warnings.filterwarnings('ignore', category=CharmmPSFWarning)
@@ -224,6 +225,7 @@
         self.assertAlmostEqual(pbv2[2][1]/nanometers, 0.963813269981581)
         self.assertAlmostEqual(pbv2[2][2]/nanometers, 2.1083683604879377)
 
+    @unittest.skipIf(True, 'Skipping test failing due to missing platforms')
     def test_Drude(self):
         """Test CHARMM systems with Drude force field"""
         warnings.filterwarnings('ignore', category=CharmmPSFWarning)
--- a/wrappers/python/tests/TestIntegrators.py
+++ b/wrappers/python/tests/TestIntegrators.py
@@ -200,6 +200,7 @@
         integrator.step(5)
         self.assertNotEqual(integrator.computeHeatBathEnergy(), 0.0*kilojoule_per_mole)
 
+    @unittest.skipIf(True, 'Skipping test failing due to missing platforms')
     def testDrudeNoseHooverIntegrator(self):
         """Test the DrudeNoseHooverIntegrator"""
         warnings.filterwarnings('ignore', category=CharmmPSFWarning)
--- a/wrappers/python/tests/TestForceField.py
+++ b/wrappers/python/tests/TestForceField.py
@@ -1111,6 +1111,7 @@
         # If the check is not done correctly, this will throw an exception.
         ff.createSystem(pdb.topology)
 
+    @unittest.skipIf(True, 'Skipping test failing due to missing platforms')
     def test_CharmmPolar(self):
         """Test the CHARMM polarizable force field."""
         pdb = PDBFile('systems/ala_ala_ala_drude.pdb')
@@ -1410,6 +1411,7 @@
         system = self.forcefield1.createSystem(self.pdb1.topology, rigidWater=None)
         self.assertEqual(0, system.getNumConstraints())
 
+    @unittest.skipIf(True, 'Skipping test failing due to missing platforms')
     def test_Forces(self):
         """Compute forces and compare them to ones generated with a previous version of OpenMM to ensure they haven't changed."""
 
@@ -1441,6 +1443,7 @@
             energies[f.getName()] = state.getPotentialEnergy().value_in_unit(kilocalories_per_mole)
         return energies
 
+    @unittest.skipIf(True, 'Skipping test failing due to missing platforms')
     def test_Amoeba18BPTI(self):
         """Test that AMOEBA18 computes energies correctly for BPTI."""
         energies = self.computeAmoeba18Energies('systems/bpti.pdb')
@@ -1458,6 +1461,7 @@
         self.assertAlmostEqual(-1323.5640-225.3660, energies['AmoebaMultipoleForce'], 2)
         self.assertAlmostEqual(-258.9676, sum(list(energies.values())), 2)
 
+    @unittest.skipIf(True, 'Skipping test failing due to missing platforms')
     def test_Amoeba18Nucleic(self):
         """Test that AMOEBA18 computes energies correctly for DNA and RNA."""
         energies = self.computeAmoeba18Energies('systems/nucleic.pdb')
--- a/platforms/cpu/tests/TestCpuNonbondedForce.cpp
+++ b/platforms/cpu/tests/TestCpuNonbondedForce.cpp
@@ -33,5 +33,5 @@
 #include "TestNonbondedForce.h"
 
 void runPlatformTests() {
-    testHugeSystem();
+    // testHugeSystem(); // fails with 'child killed'
 }