#!/bin/sh
export THEANO_FLAGS=base_compiledir=$AUTOPKGTEST_TMP/theanocache
testroot="/usr/lib/python3/dist-packages"
#Avoid importing the source tree
cd $testroot

#Tests that were failing or mistakenly skipped in 1.0.5+dfsg-7
python3 -m pytest -s -v --confcutdir=theano theano/tensor/tests/test_raw_random.py::Test_random_function::test_vector_arguments theano/tensor/tests/test_shared_randomstreams.py::Test_SharedRandomStreams::test_vector_arguments theano/tensor/tests/test_blas.py::TestAsScalar::test_basic_3 theano/tensor/tests/test_basic.py::TestTriangle::test_tril_triu theano/sparse/sandbox/test_sp.py
#A random-ish selection of upstream's tests, as the whole thing takes hours
python3 -m pytest -s -v --confcutdir=theano theano/tensor/tests/test_basic.py::TestAdd theano/tensor/tests/test_subtensor.py::TestSubtensor::test_noncontiguous_idx theano/tensor/tests/test_opt.py::test_log1p theano/tensor/tests/test_blas.py::TestSgemv::test_a_strides theano/tensor/tests/test_nlinalg.py::test_pseudoinverse_grad theano/tensor/tests/test_shared_randomstreams.py::Test_SharedRandomStreams::test_binomial_vector theano/tensor/tests/test_mpi.py theano/tensor/nnet/tests/test_sigm.py::TestUltraFastSigmoidBroadcast theano/tensor/signal/tests/test_pool.py::TestDownsampleFactorMax::test_max_pool_2d_2D theano/sparse/tests/test_opt.py::test_sd_csc theano/scan_module/tests/test_scan.py::Test_Scan::test_scan_merge_nodes theano/scalar/tests/test_basic.py::TestLogical theano/gof/tests/test_opt.py::TestPatternOptimizer::test_ambiguous theano/d3viz/tests/test_d3viz.py::TestD3Viz::test_mlp_profiled theano/compile/tests/test_pfunc.py::Test_pfunc::test_param_strict theano/typed_list/tests/test_basic.py::TestRemove theano/tests/test_printing.py::test_debugprint theano/tests/test_gradient.py::test_dxdx
