alltests: check alltests-recursive
alltests-recursive:
+ cd lib; $(MAKE) alltests-recursive
cd src; $(MAKE) alltests-recursive
updatetests:
for i in $(DESTDIR)$(scriptsdir)/*.py $(DESTDIR)$(scriptsdir)/listerrors ; do \
$(CHMOD) 755 $$i; \
done
+
+alltests: check alltests-recursive
+
+alltests-recursive:
+ cd lyx2lyx; $(MAKE) alltests-recursive
+
install-data-hook:
$(CHMOD) 755 $(DESTDIR)$(lyx2lyxdir)/lyx2lyx
+
+alltests: check alltests-recursive
+
+alltests-recursive:
+ @$(PYTHON) "$(srcdir)/test_parser_tools.py"; \
+ if test $$? -eq 0; then \
+ echo -e "=====================\nlyx2lyx tests passed.\n====================="; \
+ else \
+ echo -e "=====================\nlyx2lyx tests failed.\n====================="; \
+ fi
+
def test_find_token(self):
self.assertEquals(find_token(lines, '\\emph', 0), 7)
self.assertEquals(find_token(lines, '\\emph', 0, 5), -1)
- self.assertEquals(find_token(lines, '\\emp', 0, exact = True), -1)
- self.assertEquals(find_token(lines, '\\emp', 0, exact = False), 7)
+ self.assertEquals(find_token(lines, '\\emp', 0, 0, True), -1)
+ self.assertEquals(find_token(lines, '\\emp', 0, 0, False), 7)
self.assertEquals(find_token(lines, 'emph', 0), -1)