Commit Graph

3 Commits

Author SHA1 Message Date
jmmv
63dd2c4874 Apply upstream change 1b82d0fe146031526b73454cc64bca7ee1f5b87a:
Fix fs_test:cleanup__mount_point__busy

The first call to kyua_fs_cleanup in this test was supposed to fail as
it is exercising an error path.  But the check was reversed, expecting
no error.  Fix this obvious mistake.
2013-03-17 05:56:46 +00:00
jmmv
8faee98977 Cherry-pick upstream commit 9f81e6f6fece7f7e26643022a5efb93c3595e9bc:
Escape backslashes in test metadata

The previous code in kyua-atf-tester escaped single quotes in the
metadata of test cases so that those single quotes did not yield
invalid Lua strings in the output of the tester.

It turns out we also need to escape backslashes for things to work
properly.  Backslashes also have special meaning within Lua strings.

Found while running the NetBSD test suite.  In particular, the
lib/libc/gen/t_fnmatch test program had the '\'' sequence in the
description of a test and this made the test program be reported
as bogus.
2013-02-23 21:04:28 +00:00
jmmv
754f425fc2 Initial import of Kyua Testers, version 0.1:
This is a component of Kyua and its build will be guarded by the MKKYUA
knob.  core@ has approved this import.

Description:

Kyua (pronounced Q.A.) is a testing framework for both developers and
users.  Kyua is different from most other testing frameworks in that it
puts the end user experience before anything else.  There are multiple
reasons for users to run the tests themselves, and Kyua ensures that
they can do so in the most convenient way.

This module, kyua-testers, provides scriptable interfaces to interact
with test programs of various kinds.  The interface of such testers
allows the caller to execute a single test case of a single test program
in a controlled and homogeneous manner.
2013-02-19 06:01:39 +00:00