Add unit tests for mch_[gs]etperm.

Use preprocessor trick proposed by @mahkoh to import 'defines' like
S_IRUSR.
This commit is contained in:
Thomas Wienecke
2014-03-11 19:11:46 +01:00
committed by Thiago de Arruda
parent 231d4511d1
commit 1f578ec5a1
7 changed files with 103 additions and 2 deletions

View File

@@ -6,4 +6,5 @@ eval "$(luarocks path)"
if [ -z "$BUSTED_OUTPUT_TYPE" ]; then
export BUSTED_OUTPUT_TYPE="utf_terminal"
fi
make -C ./test/includes
busted --pattern=.moon -o $BUSTED_OUTPUT_TYPE ./test