File: __init__.py

package info (click to toggle)
lttoolbox 3.8.2-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 1,516 kB
  • sloc: cpp: 13,541; ansic: 3,131; python: 1,212; makefile: 17
file content (23 lines) | stat: -rw-r--r-- 719 bytes parent folder | download | duplicates (3)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
# -*- coding: utf-8 -*-
from basictest import ProcTest
import unittest

class AppendProcTest(unittest.TestCase, ProcTest):
    dix1 = "data/append1.dix"
    dix2 = "data/append2.dix"
    dir1 = "lr"
    dir2 = "lr"
    procflags = ["-z"]

    def compileTest(self, tmpd):
        self.compileDix(self.dir1, self.dix1, binName=tmpd+'/dix1.bin')
        self.compileDix(self.dir2, self.dix2, binName=tmpd+'/dix2.bin')
        self.callProc('lt-append', [tmpd+"/dix1.bin",
                                    tmpd+"/dix2.bin",
                                    tmpd+"/compiled.bin"])
        return True

class SimpleAppend(AppendProcTest):
    inputs = ["a", "b"]
    expectedOutputs = ["^a/a<n>$",
					   "^b/b<v>$"]