Make a Makefile.
Get the 'real' mode from lstat.
Add test required files to mkefile
Add test.