Ejemplo n.º 1
0
    def test_parallel_shallow_domain(self):
        #print "Expect this test to fail if not run from the parallel directory."

        cmd = anuga.mpicmd(os.path.abspath(__file__))
        result = os.system(cmd)

        assert_(result == 0)
Ejemplo n.º 2
0
    def test_parallel_sw_flow(self):
        if verbose : print("Expect this test to fail if not run from the parallel directory.")

        cmd = anuga.mpicmd(os.path.abspath(__file__))
        result = os.system(cmd)

        assert_(result == 0)
    def test_distribute_three_processors(self):
        # Expect this test to fail if not run from the parallel directory.

        cmd = anuga.mpicmd(os.path.abspath(__file__))

        status = os.system(cmd)

        assert_(status == 0)
    def test_parallel_operator(self):
        #print "Expect this test to fail if not run from the parallel/test directory."

        cmd = anuga.mpicmd(os.path.abspath(__file__))
        exitstatus = os.system(cmd)
        #exitstatus = mpi_cmd(nprocs, abs_script_name)

        assert_(exitstatus == 0)
Ejemplo n.º 5
0
    def test_parallel_sw_flow(self):
        if verbose : print("START test_parallel_sw_flow UNITTEST")

        cmd = anuga.mpicmd(os.path.abspath(__file__))

        if verbose : print(cmd)
        returned_value = os.system(cmd)

        assert_(returned_value == 0)
    def test_parallel_sw_flow(self):
        if verbose:
            print(
                "Expect this test to fail if not run from the parallel directory."
            )

        cmd = anuga.mpicmd(os.path.abspath(__file__))
        result = os.system(cmd)

        # Just use the normal Python assert
        msg = 'Result == %i, expected 0' % result
        assert result == 0, msg