1*ade38b8cSSeongJae Park#!/bin/bash 2*ade38b8cSSeongJae Park# SPDX-License-Identifier: GPL-2.0 3*ade38b8cSSeongJae Park 4*ade38b8cSSeongJae Parksource _debugfs_common.sh 5*ade38b8cSSeongJae Park 6*ade38b8cSSeongJae Park# Test duplicated context creation 7*ade38b8cSSeongJae Park# ================================ 8*ade38b8cSSeongJae Park 9*ade38b8cSSeongJae Parkif ! echo foo > "$DBGFS/mk_contexts" 10*ade38b8cSSeongJae Parkthen 11*ade38b8cSSeongJae Park echo "context creation failed" 12*ade38b8cSSeongJae Park exit 1 13*ade38b8cSSeongJae Parkfi 14*ade38b8cSSeongJae Park 15*ade38b8cSSeongJae Parkif echo foo > "$DBGFS/mk_contexts" 16*ade38b8cSSeongJae Parkthen 17*ade38b8cSSeongJae Park echo "duplicate context creation success" 18*ade38b8cSSeongJae Park exit 1 19*ade38b8cSSeongJae Parkfi 20*ade38b8cSSeongJae Park 21*ade38b8cSSeongJae Parkif ! echo foo > "$DBGFS/rm_contexts" 22*ade38b8cSSeongJae Parkthen 23*ade38b8cSSeongJae Park echo "context deletion failed" 24*ade38b8cSSeongJae Park exit 1 25*ade38b8cSSeongJae Parkfi 26*ade38b8cSSeongJae Park 27*ade38b8cSSeongJae Parkexit 0 28