This directory contains tests for the bin/solr command-line scripts. For instructions on running these tests, run bin-test/test -h.
Where possible, these tests model themselves after the pattern well-established by JUnit.
@Test is emulated using the function name prefix: solr_test_ Any bash functions starting with that prefix are identified as tests.@Before and @After are imitated using the function names solr_unit_test_before, and solr_unit_test_after. If a suite contains these functions, they will be run before and after each test.@BeforeClass and @AfterClass are imitated using the function names: solr_suite_before, and solr_suite_after. If a suite contains these functions, they will be run at the very beginning and end of suite execution. || return 1, which ensures the test exists immediately if the assertion fails. Existing tests provided examples of this.A variety of assertions and general utilities are available for use in bin-test/utils/.