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() { ...@@ -75,8 +75,8 @@ save_cache_directories() {
for cachepath in ${@:3}; do for cachepath in ${@:3}; do
if [ -e "$build_dir/$cachepath" ]; then if [ -e "$build_dir/$cachepath" ]; then
echo "- $cachepath" echo "- $cachepath"
mkdir -p $(dirname "$cache_dir/node/$cachepath") mkdir -p "$cache_dir/node/$cachepath"
ln -s "$build_dir/$cachepath" "$cache_dir/node/$cachepath" cp -a "$build_dir/$cachepath" $(dirname "$cache_dir/node/$cachepath")
else else
echo "- $cachepath (nothing to cache)" echo "- $cachepath (nothing to cache)"
fi fi
......
#!/usr/bin/env bash #!/usr/bin/env bash
# See README.md for info on running these tests. # 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() { testDisableCache() {
cache=$(mktmpdir) cache=$(mktmpdir)
env_dir=$(mktmpdir) env_dir=$(mktmpdir)
...@@ -235,20 +250,6 @@ testBuildWithUserCacheDirectoriesCamel() { ...@@ -235,20 +250,6 @@ testBuildWithUserCacheDirectoriesCamel() {
assertCapturedSuccess 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() { testUserConfig() {
compile "userconfig" compile "userconfig"
assertCaptured "www.google.com" 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