Skip to content
This repository has been archived by the owner on Feb 2, 2024. It is now read-only.

Commit

Permalink
Skipped failed tests (#91)
Browse files Browse the repository at this point in the history
* skip failed tests
* no features merges allowed until all enabled and work
  • Loading branch information
anmyachev authored and fschlimb committed Jul 15, 2019
1 parent f5469c4 commit 456a12e
Show file tree
Hide file tree
Showing 11 changed files with 412 additions and 6 deletions.
4 changes: 0 additions & 4 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,10 +14,6 @@ matrix:
- env: CONDA_ENV=travisci NUM_PES=2
- env: CONDA_ENV=travisci NUM_PES=3

branches:
only:
- master

before_install:
- buildscripts/setup_conda.sh
- export PATH=$HOME/miniconda3/bin:$PATH
Expand Down
21 changes: 20 additions & 1 deletion hpat/tests/test_basic.py
Original file line number Diff line number Diff line change
Expand Up @@ -51,6 +51,8 @@ def _follow_cpython(self, ptr, seed=2):


class TestBasic(BaseTest):

@unittest.skip('Error - fix needed\n')
def test_getitem(self):
def test_impl(N):
A = np.ones(N)
Expand All @@ -64,6 +66,7 @@ def test_impl(N):
self.assertEqual(count_array_REPs(), 0)
self.assertEqual(count_parfor_REPs(), 0)

@unittest.skip('Error - fix needed\n')
def test_setitem1(self):
def test_impl(N):
A = np.arange(10)+1.0
Expand All @@ -76,6 +79,7 @@ def test_impl(N):
self.assertEqual(count_array_REPs(), 0)
self.assertEqual(count_parfor_REPs(), 0)

@unittest.skip('Error - fix needed\n')
def test_setitem2(self):
def test_impl(N):
A = np.arange(10)+1.0
Expand All @@ -88,6 +92,7 @@ def test_impl(N):
self.assertEqual(count_array_REPs(), 0)
self.assertEqual(count_parfor_REPs(), 0)

@unittest.skip('Error - fix needed\n')
def test_astype(self):
def test_impl(N):
return np.ones(N).astype(np.int32).sum()
Expand Down Expand Up @@ -117,7 +122,7 @@ def test_impl(N):
# self.assertEqual(count_array_REPs(), 0)
# self.assertEqual(count_parfor_REPs(), 0)


@unittest.skip('Error - fix needed\n')
def test_inplace_binop(self):
def test_impl(N):
A = np.ones(N)
Expand All @@ -131,6 +136,7 @@ def test_impl(N):
self.assertEqual(count_array_REPs(), 0)
self.assertEqual(count_parfor_REPs(), 0)

@unittest.skip('Error - fix needed\n')
def test_getitem_multidim(self):
def test_impl(N):
A = np.ones((N, 3))
Expand All @@ -144,6 +150,7 @@ def test_impl(N):
self.assertEqual(count_array_REPs(), 0)
self.assertEqual(count_parfor_REPs(), 0)

@unittest.skip('Error - fix needed\n')
def test_whole_slice(self):
def test_impl(N):
X = np.ones((N, 4))
Expand All @@ -156,6 +163,7 @@ def test_impl(N):
self.assertEqual(count_array_REPs(), 0)
self.assertEqual(count_parfor_REPs(), 0)

@unittest.skip('Error - fix needed\n')
def test_strided_getitem(self):
def test_impl(N):
A = np.ones(N)
Expand All @@ -168,6 +176,7 @@ def test_impl(N):
self.assertEqual(count_array_REPs(), 0)
self.assertEqual(count_parfor_REPs(), 0)

@unittest.skip('Error - fix needed\n')
def test_assert(self):
# make sure assert in an inlined function works
def g(a):
Expand All @@ -193,6 +202,7 @@ def f():

pd.testing.assert_series_equal(hpat.jit(f)(), f())

@unittest.skip('Error - fix needed\n')
def test_reduce(self):
import sys
dtypes = ['float32', 'float64', 'int32', 'int64']
Expand All @@ -216,6 +226,7 @@ def test_reduce(self):
self.assertEqual(count_array_REPs(), 0)
self.assertEqual(count_parfor_REPs(), 0)

@unittest.skip('Error - fix needed\n')
def test_reduce2(self):
import sys
dtypes = ['float32', 'float64', 'int32', 'int64']
Expand All @@ -242,6 +253,7 @@ def test_reduce2(self):
self.assertEqual(count_array_REPs(), 0)
self.assertEqual(count_parfor_REPs(), 0)

@unittest.skip('Error - fix needed\n')
def test_reduce_filter1(self):
import sys
dtypes = ['float32', 'float64', 'int32', 'int64']
Expand Down Expand Up @@ -270,6 +282,7 @@ def test_reduce_filter1(self):
self.assertEqual(count_array_REPs(), 0)
self.assertEqual(count_parfor_REPs(), 0)

@unittest.skip('Error - fix needed\n')
def test_array_reduce(self):
binops = ['+=', '*=', '+=', '*=', '|=', '|=']
dtypes = ['np.float32', 'np.float32', 'np.float64', 'np.float64', 'np.int32', 'np.int64']
Expand All @@ -291,6 +304,7 @@ def test_array_reduce(self):
self.assertEqual(count_array_OneDs(), 0)
self.assertEqual(count_parfor_OneDs(), 1)

@unittest.skip('Error - fix needed\n')
def test_dist_return(self):
def test_impl(N):
A = np.arange(N)
Expand All @@ -307,6 +321,7 @@ def test_impl(N):
self.assertEqual(count_array_OneDs(), 1)
self.assertEqual(count_parfor_OneDs(), 1)

@unittest.skip('Error - fix needed\n')
def test_dist_return_tuple(self):
def test_impl(N):
A = np.arange(N)
Expand All @@ -326,6 +341,7 @@ def test_impl(N):
self.assertEqual(count_array_OneDs(), 2)
self.assertEqual(count_parfor_OneDs(), 2)

@unittest.skip('Error - fix needed\n')
def test_dist_input(self):
def test_impl(A):
return len(A)
Expand All @@ -336,6 +352,7 @@ def test_impl(A):
np.testing.assert_allclose(hpat_func(arr) / self.num_ranks, test_impl(arr))
self.assertEqual(count_array_OneDs(), 1)

@unittest.skip('Error - fix needed\n')
def test_rebalance(self):
def test_impl(N):
A = np.arange(n)
Expand All @@ -353,6 +370,7 @@ def test_impl(N):
finally:
hpat.distributed_analysis.auto_rebalance = False

@unittest.skip('Error - fix needed\n')
def test_rebalance_loop(self):
def test_impl(N):
A = np.arange(n)
Expand All @@ -373,6 +391,7 @@ def test_impl(N):
finally:
hpat.distributed_analysis.auto_rebalance = False

@unittest.skip('Error - fix needed\n')
def test_transpose(self):
def test_impl(n):
A = np.ones((30, 40, 50))
Expand Down
Loading

0 comments on commit 456a12e

Please sign in to comment.