File: extra-testsuite.lua

package info (click to toggle)
monotone 1.1-4+deb8u2
  • links: PTS, VCS
  • area: main
  • in suites: jessie
  • size: 20,664 kB
  • ctags: 8,113
  • sloc: cpp: 86,443; sh: 6,906; perl: 924; makefile: 838; python: 517; lisp: 379; sql: 118; exp: 91; ansic: 52
file content (21 lines) | stat: -rw-r--r-- 763 bytes parent folder | download | duplicates (4)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
-- Copyright (C) 2011 Richard Levitte <richard@levitte.org>
--
-- This program is made available under the GNU GPL version 2.0 or
-- greater. See the accompanying file COPYING for details.
--
-- This program is distributed WITHOUT ANY WARRANTY; without even the
-- implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR
-- PURPOSE.

testdir = srcdir.."/extra"

function prepare_to_run_tests (P)
   -- We do a dirty trick and include the functional testsuite, because
   -- we want all the functionality available for the those tests.
   include("../func-testsuite.lua")

   -- Because it just got redefined, we need to reset testdir and to run
   -- the redefined prepare_to_run_tests.
   testdir = srcdir.."/extra"
   return prepare_to_run_tests(P)
end