コード例 #1
0
ファイル: testing.py プロジェクト: Alex-C-Eltima/yuno
    def test_passed(Self, test, output):
        filename = path_from(test.source.path_to, test.source.name) + '.s'

        try:
            shutil.copyfile(config.compiler_output_file,
                path_from(config.assembly_output_folder, filename))
            print("DONE: " + filename)
        except OSError as e:
            print(e)
            print("FAIL: could not copy {} to {}".format(
                filename, config.assembly_output_folder))
コード例 #2
0
    def test_passed(Self, test, output):
        filename = path_from(test.source.path_to, test.source.name) + '.s'

        try:
            shutil.copyfile(config.compiler_output_file,
                            path_from(config.assembly_output_folder, filename))
            print("DONE: " + filename)
        except OSError as e:
            print(e)
            print("FAIL: could not copy {} to {}".format(
                filename, config.assembly_output_folder))
コード例 #3
0
ファイル: testing.py プロジェクト: Alex-C-Eltima/yuno
    def run_set(self, test_set):
        if len(test_set) == 0:
            raise errors.EmptyTestSet()

        with working_dir(config.test_folder):
            for test in test_set:
                test.run_in_harness(self)

        try:
            done_file = open(
                path_from(config.assembly_output_folder, '.done'), 'w+')
            done_file.close()
        except OSError:
            print("-" * 80)
            print("\nWARN: Failed to close this batch of tests.")
            print("      Run `yuno steel --finish` on ieng9 to fix this.")
コード例 #4
0
    def run_set(self, test_set):
        if len(test_set) == 0:
            raise errors.EmptyTestSet()

        with working_dir(config.test_folder):
            for test in test_set:
                test.run_in_harness(self)

        try:
            done_file = open(path_from(config.assembly_output_folder, '.done'),
                             'w+')
            done_file.close()
        except OSError:
            print("-" * 80)
            print("\nWARN: Failed to close this batch of tests.")
            print("      Run `yuno steel --finish` on ieng9 to fix this.")