How to set to spi slave mode

Thank you for answering.

I tried testing the slave mode as indicated, but I got an’invalid option’ error.
I downloaded the source from this link and tested it.

As you told me, how do I get ./spidev_test -D /dev/spidev0.0 -s 150000 -n100 -g30 -p4 -z to run?