github.com/vrothberg/storage@v1.12.13/tests/status.bats (about)

     1  #!/usr/bin/env bats
     2  
     3  load helpers
     4  
     5  @test "status" {
     6  	run storage --debug=false status
     7  	echo :"$output":
     8  	[ "$status" -eq 0 ]
     9  	# Expect the first line of the output to be the storage root directory location.
    10  	[ "${lines[0]/:*/}" = "Root" ]
    11  	[ "${lines[0]/*: /}" = "${TESTDIR}/root" ]
    12  	# Expect the second line of the output to be the storage runroot directory location.
    13  	[ "${lines[1]/:*/}" = "Run Root" ]
    14  	[ "${lines[1]/*: /}" = "${TESTDIR}/runroot" ]
    15  	# Expect the third line of the output to be "Driver Name: $STORAGE_DRIVER".
    16  	[ "${lines[2]/:*/}" = "Driver Name" ]
    17  	[ "${lines[2]/*: /}" = "$STORAGE_DRIVER" ]
    18  }