inspec/test/runner/bootstrap.sh
Dominik Richter 30c638a227 add docker runner test containers + boostrap
Signed-off-by: Dominik Richter <dominik.richter@gmail.com>
2015-09-24 10:36:20 +02:00

17 lines
359 B
Bash

#!/bin/sh
test ! -e /tmp/folder && \
mkdir /tmp/folder
chmod 0567 /tmp/folder
echo -n 'hello world' > /tmp/file
test ! -e /tmp/symlink && \
ln -s /tmp/file /tmp/symlink
chmod 0777 /tmp/symlink
chmod 0765 /tmp/file
test ! -e /tmp/pipe && \
mkfifo /tmp/pipe
test ! -e /tmp/block_device && \
mknod /tmp/block_device b 7 7
chmod 0666 /tmp/block_device