jehanne/qa/kern/devshr.rc

16 lines
326 B
Bash
Executable File
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

#!/cmd/rc
sys_rfork
@{sys_rfork n; mkdir '#σc'/testshr; ramfs -S testshr; echo 3 > '#σc'/testshr/ramfs <>[3]/srv/testshr; echo PASS > '#σ'/testshr/file }
bind '#σ' /shr
RESULT=`{cat /shr/testshr/file}
rm -fr '#σc'/testshr
rm /srv/testshr
if (~ $RESULT PASS) { echo PASS; exit PASS }
if not { echo FAIL; exit FAIL }