diff --git a/test.sh b/test.sh index e629f2f..0f4bbc8 100755 --- a/test.sh +++ b/test.sh @@ -1,7 +1,7 @@ #!/usr/bin/env bash set -ev export PATH="$PWD/test/here/bin:$PATH" -HEREROCKS="python hererocks.py test/here --downloads test/cache --builds test/cache" +HEREROCKS="python hererocks.py test/here --downloads=test/cache" rm test/here -rf $HEREROCKS -l^ -r^ @@ -12,7 +12,7 @@ hererocks-test | grep "5\.3" $HEREROCKS -l^ -r^ | grep "already installed" rm test/here -rf -$HEREROCKS -j 2.1 -r^ +$HEREROCKS -j 2.1 -r^ | grep "Fetching" | grep "cached" lua -v luarocks --version luarocks make @@ -25,5 +25,8 @@ lua -e "(function(...) assert(arg == nil) end)()" lua -e "assert(math.mod == nil)" rm test/here -rf -$HEREROCKS -l 5.3 --compat=none +$HEREROCKS -l 5.3 --compat=none --builds=test/builds lua -e "assert(module == nil)" + +rm test/here -rf +$HEREROCKS -l 5.3 --compat=none --builds=test/builds | grep "Building" | grep "cached"