# Tests to be run with testinfra tool def test_config_file(File): for d in "root offline_db logs checkpoints ssl tmp".split(): dir = File('/p4/1/%s' % d) assert dir.is_directory # @test "basic p4 dirs exist" { # for dir in ; do # echo "Checking $dir" # run stat /p4/1/$dir # [ $status = 0 ] # done # } # @test "p4 connectivity fails" { # run /p4/1/bin/p4_1 -p 1666 info # echo ${lines[0]} # echo ${lines[1]} # [ $status = 1 ] # } # @test "starts up" { # run /p4/1/bin/p4d_1_init start # echo ${lines[@]} # [ $status = 0 ] # run /p4/1/bin/p4_1 -p 1666 info # echo ${lines[@]} # [ $status = 0 ] # }