test_generic_13.sh 550 B

12345678910111213141516171819
  1. #!/bin/bash
  2. # SPDX-License-Identifier: GPL-2.0
  3. . "$(cd "$(dirname "$0")" && pwd)"/test_common.sh
  4. ERR_CODE=0
  5. _prep_test "null" "check that feature list is complete"
  6. if ${UBLK_PROG} features | grep -q unknown; then
  7. echo "# unknown feature detected!"
  8. echo "# did you add a feature and forget to update feat_map in kublk?"
  9. echo "# this failure is expected if running an older test suite against"
  10. echo "# a newer kernel with new features added"
  11. ERR_CODE=255
  12. fi
  13. _cleanup_test "null"
  14. _show_result $TID $ERR_CODE