github.com/OpenFlowLabs/storage@v1.12.13/tests/changes.bats (about) 1 #!/usr/bin/env bats 2 3 load helpers 4 5 @test "changes" { 6 # Create and populate three interesting layers. 7 populate 8 9 # Mount the layers. 10 run storage --debug=false mount "$lowerlayer" 11 [ "$status" -eq 0 ] 12 lowermount="$output" 13 run storage --debug=false mount "$midlayer" 14 [ "$status" -eq 0 ] 15 midmount="$output" 16 run storage --debug=false mount "$upperlayer" 17 [ "$status" -eq 0 ] 18 uppermount="$output" 19 20 # Check the "changes" output. 21 checkchanges 22 23 # Unmount the layers. 24 storage unmount $lowerlayer 25 storage unmount $midlayer 26 storage unmount $upperlayer 27 28 # Now check the "changes" again. 29 checkchanges 30 }