Home
last modified time | relevance | path

Searched +full:self +full:- +full:test (Results 1 – 25 of 738) sorted by relevance

12345678910>>...30

/freebsd/contrib/googletest/googletest/test/
H A Dgoogletest-shuffle-test.py31 """Verifies that test shuffling works."""
34 from googletest.test import gtest_test_utils
36 # Command to run the googletest-shuffle-test_ program.
37 COMMAND = gtest_test_utils.GetTestExecutablePath('googletest-shuffle-test_')
39 # The environment variables for test sharding.
57 return '--gtest_also_run_disabled_tests'
61 return '--gtest_filter=%s' % (test_filter,)
65 return '--gtest_repeat=%s' % (n,)
69 return '--gtest_shuffle'
73 return '--gtest_random_seed=%s' % (n,)
[all …]
H A Dgoogletest-failfast-unittest.py31 """Unit test for Google Test fail_fast.
33 A user can specify if a Google Test program should continue test execution
34 after a test failure via the GTEST_FAIL_FAST environment variable or the
35 --gtest_fail_fast flag. The default value of the flag can also be changed
38 This script tests such functionality by invoking googletest-failfast-unittest_
39 (a program written with Google Test) with different environments and command
44 from googletest.test import gtest_test_utils
63 # Command to run the googletest-failfast-unittest_ program.
65 'googletest-failfast-unittest_'
68 # The command line flag to tell Google Test to output the list of tests it
[all …]
H A Dgoogletest-filter-unittest.py31 """Unit test for Google Test test filters.
33 A user can specify which test(s) in a Google Test program to run via either
34 the GTEST_FILTER environment variable or the --gtest_filter flag.
36 googletest-filter-unittest_ (a program written with Google Test) with different
39 Note that test sharding may also influence which tests are filtered. Therefore,
40 we test that here also.
51 from googletest.test import gtest_test_utils
64 [sys.executable, '-c', "import os; print('EMPTY_VAR' in os.environ)"]
70 # We set an env variable to a non-empty string, unset it, and invoke
80 [sys.executable, '-c', "import os; print('UNSET_VAR' not in os.environ)"]
[all …]
H A Dgoogletest-catch-exceptions-test.py31 """Tests Google Test's exception catching behavior.
33 This script invokes googletest-catch-exceptions-test_ and
34 googletest-catch-exceptions-ex-test_ (programs written with
35 Google Test) and verifies their output.
38 from googletest.test import gtest_test_utils
41 FLAG_PREFIX = '--gtest_'
46 # Path to the googletest-catch-exceptions-ex-test_ binary, compiled with
49 'googletest-catch-exceptions-ex-test_'
52 # Path to the googletest-catch-exceptions-test_ binary, compiled with
55 'googletest-catch-exceptions-no-ex-test_'
[all …]
H A Dgoogletest-global-environment-unittest.py28 """Unit test for Google Test's global test environment behavior.
30 A user can specify a global test environment via
35 googletest-global-environment-unittest_ (a program written with Google Test).
39 from googletest.test import gtest_test_utils
43 """Runs the test program and returns its output."""
48 'googletest-global-environment-unittest_'
56 """Tests global test environment failures."""
58 def testEnvironmentSetUpFails(self): argument
61 # Run the test.
65 self.assertIn('Canned environment setup error', txt)
[all …]
H A Dgoogletest-break-on-failure-unittest.py32 """Unit test for Google Test's break-on-failure mode.
34 A user can ask Google Test to seg-fault when an assertion fails, using
36 --gtest_break_on_failure flag. This script tests such functionality
37 by invoking googletest-break-on-failure-unittest_ (a program written with
38 Google Test) with different environments and command line flags.
42 from googletest.test import gtest_test_utils
48 # The environment variable for enabling/disabling the break-on-failure mode.
51 # The command line flag for enabling/disabling the break-on-failure mode.
54 # The environment variable for enabling/disabling the throw-on-failure mode.
57 # The environment variable for enabling/disabling the catch-exceptions mode.
[all …]
H A Dgtest_xml_outfiles_test.py32 """Unit test for the gtest_xml_output module."""
36 from googletest.test import gtest_test_utils
37 from googletest.test import gtest_xml_test_utils
43 EXPECTED_XML_1 = """<?xml version="1.0" encoding="UTF-8"?>
57 EXPECTED_XML_2 = """<?xml version="1.0" encoding="UTF-8"?>
82 """Unit test for Google Test's XML output functionality."""
84 def setUp(self): argument
86 # telling Google Test to create an output directory instead of a single file
88 self.output_dir_ = os.path.join(
91 self.DeleteFilesAndDir()
[all …]
H A Dgoogletest-json-outfiles-test.py31 """Unit test for the gtest_json_output module."""
35 from googletest.test import gtest_json_test_utils
36 from googletest.test import gtest_test_utils
117 """Unit test for Google Test's JSON output functionality."""
119 def setUp(self): argument
121 # telling Google Test to create an output directory instead of a single file
123 self.output_dir_ = os.path.join(
126 self.DeleteFilesAndDir()
128 def tearDown(self): argument
129 self.DeleteFilesAndDir()
[all …]
H A Dgoogletest-json-output-unittest.py31 """Unit test for the gtest_json_output module."""
40 from googletest.test import gtest_json_test_utils
41 from googletest.test import gtest_test_utils
43 GTEST_FILTER_FLAG = '--gtest_filter'
44 GTEST_LIST_TESTS_FLAG = '--gtest_list_tests'
45 GTEST_OUTPUT_FLAG = '--gtest_output'
50 NO_STACKTRACE_SUPPORT_FLAG = '--no_stacktrace_support'
169 'It is good practice to tell why you skip a test.\n'
194 'It is good practice to tell why you skip a test.\n'
281 'Failed\nXML output: <?xml encoding="utf-8">'
[all …]
H A Dgtest_xml_output_unittest.py32 """Unit test for the gtest_xml_output module"""
41 from googletest.test import gtest_test_utils
42 from googletest.test import gtest_xml_test_utils
44 GTEST_FILTER_FLAG = '--gtest_filter'
45 GTEST_LIST_TESTS_FLAG = '--gtest_list_tests'
46 GTEST_OUTPUT_FLAG = '--gtest_output'
51 NO_STACKTRACE_SUPPORT_FLAG = '--no_stacktrace_support'
53 # The environment variables for test sharding.
69 EXPECTED_NON_EMPTY_XML = """<?xml version="1.0" encoding="UTF-8"?>
98 …tput_unittest_.cc:*&#x0A;Failed&#x0A;XML output: &lt;?xml encoding=&quot;utf-8&quot;&gt;&lt;top&gt…
[all …]
/freebsd/sys/contrib/openzfs/tests/test-runner/bin/
H A Dtest-runner.py.in2 # SPDX-License-Identifier: CDDL-1.0
72 return t.tv_sec + t.tv_nsec * 1e-9
79 def __init__(self): argument
80 self.starttime = None
81 self.returncode = None
82 self.runtime = ''
83 self.stdout = []
84 self.stderr = []
85 self.kmemleak = ''
86 self.result = ''
[all …]
/freebsd/tests/atf_python/
H A Datf_pytest.py17 def runtest(self): argument
18 """Runs cleanup procedure for the test instead of the test itself"""
19 instance = self.parent.cls()
20 cleanup_name = "cleanup_{}".format(nodeid_to_method_name(self.nodeid))
23 cleanup(self.nodeid)
25 instance.cleanup(self.nodeid)
27 def setup_method_noop(self, method): argument
31 def teardown_method_noop(self, method): argument
37 def __init__(self, obj, has_cleanup): argument
38 # Use nodeid without name to properly name class-derived tests
[all …]
/freebsd/tests/examples/
H A Dtest_examples.py16 # Test classes should be inherited
21 @pytest.mark.skip(reason="comment me to run the test")
22 def test_one(self): argument
23 assert ToolsHelper.get_output("uname -s").strip() == "FreeBSD"
27 # List of required kernel modules (kldstat -v)
31 @pytest.mark.skip(reason="comment me to run the test")
32 def test_one(self): argument
33 """Optional test description
35 to the ATF test description.
39 @pytest.mark.skip(reason="comment me to run the test")
[all …]
/freebsd/crypto/openssl/test/recipes/
H A D25-test_req.t2 # Copyright 2015-2025 The OpenSSL Project Authors. All Rights Reserved.
13 use OpenSSL::Test::Utils;
14 use OpenSSL::Test qw/:DEFAULT srctop_file/;
20 require_ok(srctop_file('test', 'recipes', 'tconversion.pl'));
22 my @certs = qw(test certs);
27 @req_new = ("-newkey", "dsa:".srctop_file("apps", "dsa512.pem"));
29 @req_new = ("-new");
38 # Check for duplicate -addext parameters, and one "working" case.
39 my @addext_args = ( "openssl", "req", "-new", "-out", "testreq-addexts.pem",
40 "-key", srctop_file(@certs, "ee-key.pem"),
[all …]
/freebsd/contrib/ntp/sntp/unity/auto/
H A Dunity_test_summary.py3 # Unity Project - A Test Framework for C
14 def __init__(self): argument
15 self.report = ''
16 self.total_tests = 0
17 self.failures = 0
18 self.ignored = 0
20 def run(self): argument
23 for target in self.targets:
33 raise Exception("Empty test result file: %s" % result_file)
35 details = self.get_details(result_file, lines)
[all …]
/freebsd/sys/contrib/openzfs/config/
H A Dax_python_devel.m42 # https://www.gnu.org/software/autoconf-archive/ax_python_devel.html
24 # variable is declared as precious and thus reserved for the end-user.
41 # Copyright (c) 2009 Sebastian Huber <sebastian-huber@web.de>
80 if test -z "$2"; then
96 if test -z "$PYTHON"; then
105 if test $ax_python_devel_found = yes; then
110 ac_supports_python_ver=`$PYTHON -c "import sys; \
113 if test "$ac_supports_python_ver" != "True"; then
114 if test -z "$PYTHON_NOVERSIONCHECK"; then
119 2.1.0. You may need to re-run configure, setting the
[all …]
/freebsd/contrib/lib9p/pytest/
H A Dclient.py31 def __init__(self): argument
32 self.config = None
33 self.logger = None
34 self.successes = 0
35 self.skips = 0
36 self.failures = 0
37 self.exceptions = 0
38 self.clnt_tab = {}
39 self.mkclient = None
40 self.stop = False
[all …]
/freebsd/crypto/openssl/test/
H A Drun_tests.pl2 # Copyright 2015-2022 The OpenSSL Project Authors. All Rights Reserved.
32 my $recipesdir = catdir($srctop, "test", "recipes");
37 $ENV{OPENSSL_CONF_INCLUDE} = rel2abs(catdir($bldtop, "test"));
40 $ENV{CTLOG_FILE} = rel2abs(catfile($srctop, "test", "ct", "log_list.cnf"));
43 # set to a non-zero value. Can be helpful for detecting uninitialized reads in
50 switches => '-w',
65 # TAP::Harness->new(), they will be accessed directly, see the
89 # for parallel test runs, do slow tests first
91 $key =~ s/(\d+)-/01-/;
100 (my $x = basename($_)) =~ s|^[0-9][0-9]-(.*)\.t$|$1|;
[all …]
/freebsd/crypto/krb5/src/util/
H A Dk5test.py23 """A module for krb5 test scripts
25 To run test scripts during "make check" (if Python 2.5 or later is
28 check-pytests::
31 A sample test script:
35 # Run a test program under a variety of configurations:
39 # Run a test server and client under just the default configuration:
79 - $realm: The realm name
80 - $testdir: The realm storage directory (absolute path)
81 - $buildtop: The root of the build directory
82 - $srctop: The root of the source directory
[all …]
/freebsd/sbin/nvmecontrol/
H A Dselftest.c1 /*-
2 * SPDX-License-Identifier: BSD-2-Clause
49 uint8_t stc; /* Self-test Code */
66 err(EX_IOERR, "self-test request failed"); in selftest_op()
70 errx(EX_UNAVAILABLE, "device self-test in progress"); in selftest_op()
72 errx(EX_IOERR, "self-test request returned error"); in selftest_op()
95 errx(EX_USAGE, "must specify a Self-test Code"); in selftest()
97 errx(EX_DATAERR, "illegal Self-test Code 0x%x", opt.stc); in selftest()
103 errx(EX_UNAVAILABLE, "controller does not support self-test"); in selftest()
113 OPT("test-code", 'c', arg_uint8, opt, stc,
[all …]
/freebsd/crypto/openssl/doc/man3/
H A DOSSL_SELF_TEST_new.pod9 OSSL_SELF_TEST_onend - functionality to trigger a callback during a self test
26 diagnostic information during self testing.
31 The callback I<cb> may be triggered multiple times by a self test to indicate
37 OSSL_SELF_TEST_onbegin() may be inserted at the start of a block of self test
44 =item "st-phase" (B<OSSL_PROV_PARAM_SELF_TEST_PHASE>) <UTF8 string>
51 calculated, but before the self test compares the result. The first byte in the
54 The I<type> and I<desc> can be used to identify an individual self test to
61 =item "st-phase" (B<OSSL_PROV_PARAM_SELF_TEST_PHASE>) <UTF8 string>
67 OSSL_SELF_TEST_onend() may be inserted at the end of a block of self test code
68 just before cleanup to indicate if the test passed or failed. It can be used for
[all …]
/freebsd/secure/lib/libcrypto/man/man3/
H A DOSSL_SELF_TEST_new.31 .\" -*- mode: troff; coding: utf-8 -*-
58 .TH OSSL_SELF_TEST_NEW 3ossl 2025-09-30 3.5.4 OpenSSL
68 OSSL_SELF_TEST_onend \- functionality to trigger a callback during a self test
85 diagnostic information during self testing.
90 The callback \fIcb\fR may be triggered multiple times by a self test to indicate
96 \&\fBOSSL_SELF_TEST_onbegin()\fR may be inserted at the start of a block of self test
100 .IP """st-phase"" (\fBOSSL_PROV_PARAM_SELF_TEST_PHASE\fR) <UTF8 string>" 4
101 .IX Item """st-phase"" (OSSL_PROV_PARAM_SELF_TEST_PHASE) <UTF8 string>"
105 calculated, but before the self test compares the result. The first byte in the
108 The \fItype\fR and \fIdesc\fR can be used to identify an individual self test to
[all …]
/freebsd/contrib/googletest/googlemock/test/
H A Dgmock_leak_test.py34 from googlemock.test import gmock_test_utils
37 TEST_WITH_EXPECT_CALL = [PROGRAM_PATH, '--gtest_filter=*ExpectCall*']
38 TEST_WITH_ON_CALL = [PROGRAM_PATH, '--gtest_filter=*OnCall*']
39 TEST_MULTIPLE_LEAKS = [PROGRAM_PATH, '--gtest_filter=*MultipleLeaked*']
44 # Tests in this file run a Google-Test-based test program and expect it
46 # the premature-exit-file protocol by design. Unset the
47 # premature-exit filepath to prevent Google Test from creating
54 def testCatchesLeakedMockByDefault(self): argument
55 self.assertNotEqual(
61 self.assertNotEqual(
[all …]
/freebsd/sys/contrib/openzfs/cmd/zpool/zpool.d/
H A Dpend_sec15 nonmed: Show SMART non-medium errors (SAS).
27 smart_test: Show SMART self-test results summary.
28 test_type: Show SMART self-test type (short, long... ).
29 test_status: Show SMART self-test status.
30 test_progress: Show SMART self-test percentage done.
31 test_ended: Show when the last SMART self-test ended (if supported).
38 # useful if you want to test a bunch of different smartctl outputs. Also, if
46 # is chosen quasi-sequentially (based off our PID). This allows us to return
53 num_files=$(find "$dir" -maxdepth 1 -type f | wc -l)
56 find "$dir" -type f -printf '%f\n' | while read -r file ; do
[all …]
H A Dsmart15 nonmed: Show SMART non-medium errors (SAS).
27 smart_test: Show SMART self-test results summary.
28 test_type: Show SMART self-test type (short, long... ).
29 test_status: Show SMART self-test status.
30 test_progress: Show SMART self-test percentage done.
31 test_ended: Show when the last SMART self-test ended (if supported).
38 # useful if you want to test a bunch of different smartctl outputs. Also, if
46 # is chosen quasi-sequentially (based off our PID). This allows us to return
53 num_files=$(find "$dir" -maxdepth 1 -type f | wc -l)
56 find "$dir" -type f -printf '%f\n' | while read -r file ; do
[all …]

12345678910>>...30