Commit 487f8b61 authored by Hunter Loftis's avatar Hunter Loftis

ln does not seem to work with codon cache

parent 2e2f28b7
......@@ -75,8 +75,8 @@ save_cache_directories() {
for cachepath in ${@:3}; do
if [ -e "$build_dir/$cachepath" ]; then
echo "- $cachepath"
mkdir -p $(dirname "$cache_dir/node/$cachepath")
ln -s "$build_dir/$cachepath" "$cache_dir/node/$cachepath"
mkdir -p "$cache_dir/node/$cachepath"
cp -a "$build_dir/$cachepath" $(dirname "$cache_dir/node/$cachepath")
else
echo "- $cachepath (nothing to cache)"
fi
......
#!/usr/bin/env bash
# See README.md for info on running these tests.
testModulesCheckedIn() {
cache=$(mktmpdir)
compile "modules-checked-in" $cache
assertCapturedSuccess
compile "modules-checked-in" $cache
assertCaptured "Prebuild detected"
assertCaptured "Rebuilding any native modules"
assertCaptured "(preinstall script)"
assertCaptured "Installing any new modules"
assertCaptured "(postinstall script)"
assertNotCaptured "Pruning any extraneous modules"
assertCapturedSuccess
}
testDisableCache() {
cache=$(mktmpdir)
env_dir=$(mktmpdir)
......@@ -235,20 +250,6 @@ testBuildWithUserCacheDirectoriesCamel() {
assertCapturedSuccess
}
testModulesCheckedIn() {
cache=$(mktmpdir)
compile "modules-checked-in" $cache
assertCapturedSuccess
compile "modules-checked-in" $cache
assertCaptured "Prebuild detected"
assertCaptured "Rebuilding any native modules"
assertCaptured "(preinstall script)"
assertCaptured "Installing any new modules"
assertCaptured "(postinstall script)"
assertCapturedSuccess
}
testUserConfig() {
compile "userconfig"
assertCaptured "www.google.com"
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment