MIR_PERFORMANCE_TESTS(1)
β¨ mir_performance_tests(1) β the Mir Display Server runtime tests, bestie edition β¨
okay so real talk, this is the manual for mir_performance_tests, which lives in the Mir Display Server Runtime Tests section of your friendly neighborhood man pages. she's giving "benchmark but make it Google Test." let's get into it π
πΈ NAME πΈ
mir_performance_tests β run Mir Display Server performance tests πβοΈπ¨
π DESCRIPTION π
bestie, this program is literally a bundle of Mir Display Server tests, and they're all written using Google Test. that's the whole vibe. π
and because Google Test is the icon it is, you get a whole toolbox of command line flags to boss it around with. here's every single one, no gatekeeping:
β¨ OPTIONS β¨
π§ͺ Test Selection π§ͺ
like, which tests are we even running today?
--gtest_list_testsβ don't run anything, just spill the names of all the tests. and heads up, a test calledTEST(Foo, Bar)shows up as"Foo.Bar". cute, right? π«Ά--gtest_filter=POSTIVE_PATTERNS[-NEGATIVE_PATTERNS]β only run tests whose name matches one of the positive patterns and none of the negative ones. the wildcard rules are:'?'matches any single character,'*'matches any substring, and':'separates two patterns. pattern-matching slay π₯
(and yes, the original really does spell it POSTIVE_PATTERNS β not a typo i made, i promise π i keep the facts exactly as they are.)
--gtest_also_run_disabled_testsβ the disabled tests said "not today" but you're saying "yes today" β this runs all of them too. π
π Test Execution π
how many times, in what order, chaos level: adjustable.
--gtest_repeat=[COUNT]β run the tests over and over. use a negative count and it literally repeats forever. forever. no cap. βΎοΈ--gtest_shuffleβ randomize the test order on every single iteration. keeps things spicy πΆοΈ--gtest_random_seed=[NUMBER]β the random number seed used for shuffling test orders. pick a number between1and99999, or use0to get a seed based on the current time. β°
π Test Output π
the aesthetic of your results, basically.
--gtest_color=(yes|no|auto)β turn colored output on or off. the default isauto. π--gtest_print_time=0β don't print how long each test took. clock stays quiet π€«--gtest_output=(json|xml)[:DIRECTORY_PATH/|:FILE_PATH]β generate a JSON or XML report, either dropped into the given directory or written to the given file name. and if you don't name the file?FILE_PATHdefaults totest_detail.xml. π--gtest_stream_result_to=HOST:PORTβ stream those test results straight to the given server. live feed energy π‘
π Assertion Behavior π
when stuff fails, how dramatic are we being?
--gtest_death_test_style=(fast|threadsafe)β sets the default death test style. π--gtest_break_on_failureβ turns assertion failures into debugger break-points. very "stop right there" of it π--gtest_throw_on_failureβ turns assertion failures into C++ exceptions, for when an external test framework is the one catching them. π£--gtest_catch_exceptions=0β do not report exceptions as test failures. instead, let them crash the program or throw a pop-up (on Windows). yeah. that's the deal. π
π the environment variable hack π
except for --gtest_list_tests, you can alternatively set the corresponding environment variable of a flag β and it's just the flag name with all letters in upper-case. for example, to disable colored text output you can either pass --gtest_color=no or set the GTEST_COLOR environment variable to no. same energy, different door πͺβ¨
π want more? π
for more info, please read the Google Test documentation at https://github.com/google/googletest/. and if you find a bug in Google Test (not one in your own code or tests, bestie, let's be honest π), please report it to <googletestframework@googlegroups.com>. they'd love to hear from you π«Ά
and that's the whole page!! this version is 1.8.0, dated April 2020, straight from the mir_performance_tests(1) manual β thanks for reading my little TED talk, go run some performance tests, and slay πβ¨ππ¦
π¦ where this page comes from
- debian bookworm: mir-test-tools 2.12.1-1 Β· GPL-3-or-GPL-2
- debian trixie: mir-test-tools 2.20.2-2 Β· LGPL-3-or-LGPL-2
- ubuntu noble: mir-test-tools 2.14.1-4.1ubuntu3 Β· GPL-3-or-GPL-2
- ubuntu questing: mir-test-tools 2.20.2-2ubuntu4
- ubuntu resolute: mir-test-tools 2.25.2-5 Β· LGPL-3-or-LGPL-2
- ubuntu stonking: mir-test-tools 2.28.0-4 Β· LGPL-3-or-LGPL-2
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms