Loading install.sh +1 −1 Original line number Diff line number Diff line Loading @@ -17,4 +17,4 @@ SHARE_PATH="${PREFIX}/share/ruby-build" mkdir -p "$BIN_PATH" "$SHARE_PATH" install -p bin/* "$BIN_PATH" install -p share/ruby-build/* "$SHARE_PATH" install -p -m 0644 share/ruby-build/* "$SHARE_PATH" test/installer.bats +12 −0 Original line number Diff line number Diff line Loading @@ -17,6 +17,18 @@ load test_helper assert [ -e share/ruby-build/ree-1.8.7-2012.02 ] } @test "build definitions don't have the executable bit" { cd "$TMP" PREFIX="${PWD}/usr" run "${BATS_TEST_DIRNAME}/../install.sh" assert_success "" run $BASH -c 'ls -l usr/share/ruby-build | tail -2 | cut -d" " -f1' assert_output <<OUT -rw-r--r-- -rw-r--r-- OUT } @test "overwrites old installation" { cd "$TMP" mkdir -p bin share/ruby-build Loading Loading
install.sh +1 −1 Original line number Diff line number Diff line Loading @@ -17,4 +17,4 @@ SHARE_PATH="${PREFIX}/share/ruby-build" mkdir -p "$BIN_PATH" "$SHARE_PATH" install -p bin/* "$BIN_PATH" install -p share/ruby-build/* "$SHARE_PATH" install -p -m 0644 share/ruby-build/* "$SHARE_PATH"
test/installer.bats +12 −0 Original line number Diff line number Diff line Loading @@ -17,6 +17,18 @@ load test_helper assert [ -e share/ruby-build/ree-1.8.7-2012.02 ] } @test "build definitions don't have the executable bit" { cd "$TMP" PREFIX="${PWD}/usr" run "${BATS_TEST_DIRNAME}/../install.sh" assert_success "" run $BASH -c 'ls -l usr/share/ruby-build | tail -2 | cut -d" " -f1' assert_output <<OUT -rw-r--r-- -rw-r--r-- OUT } @test "overwrites old installation" { cd "$TMP" mkdir -p bin share/ruby-build Loading