Skip to content

Commit

Permalink
v1.5.1
Browse files Browse the repository at this point in the history
  • Loading branch information
nico committed Jun 27, 2014
2 parents 69bface + 5011595 commit 85e13c1
Show file tree
Hide file tree
Showing 5 changed files with 29 additions and 5 deletions.
7 changes: 6 additions & 1 deletion RELEASING
Original file line number Diff line number Diff line change
Expand Up @@ -2,11 +2,16 @@ Notes to myself on all the steps to make for a Ninja release.

Push new release branch:
1. Consider sending a heads-up to the ninja-build mailing list first
2. update src/version.cc with new version (with ".git"), commit to master
2. update src/version.cc with new version (with ".git"), then
git commit -a -m 'mark this 1.5.0.git'
3. git checkout release; git merge master
4. fix version number in src/version.cc (it will likely conflict in the above)
5. fix version in doc/manual.asciidoc
6. commit, tag, push (don't forget to push --tags)
git commit -a -m v1.5.0; git push origin release
git tag v1.5.0; git push --tags
# Push the 1.5.0.git change on master too:
git checkout master; git push origin master
7. construct release notes from prior notes
credits: git shortlog -s --no-merges REV..

Expand Down
2 changes: 1 addition & 1 deletion doc/manual.asciidoc
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
Ninja
=====
Evan Martin <martine@danga.com>
v1.5.0, June 2014
v1.5.1, June 2014


Introduction
Expand Down
2 changes: 0 additions & 2 deletions src/disk_interface.cc
Original file line number Diff line number Diff line change
Expand Up @@ -117,8 +117,6 @@ bool StatAllFilesInDir(const string& dir, map<string, TimeStamp>* stamps,
return false;
}
do {
if (ffd.dwFileAttributes & FILE_ATTRIBUTE_DIRECTORY)
continue;
string lowername = ffd.cFileName;
transform(lowername.begin(), lowername.end(), lowername.begin(), ::tolower);
stamps->insert(make_pair(lowername,
Expand Down
21 changes: 21 additions & 0 deletions src/disk_interface_test.cc
Original file line number Diff line number Diff line change
Expand Up @@ -76,13 +76,26 @@ TEST_F(DiskInterfaceTest, StatExistingFile) {
EXPECT_GT(disk_.Stat("file"), 1);
}

TEST_F(DiskInterfaceTest, StatExistingDir) {
ASSERT_TRUE(disk_.MakeDir("subdir"));
ASSERT_TRUE(disk_.MakeDir("subdir/subsubdir"));
EXPECT_GT(disk_.Stat("."), 1);
EXPECT_GT(disk_.Stat("subdir"), 1);
EXPECT_GT(disk_.Stat("subdir/subsubdir"), 1);

EXPECT_EQ(disk_.Stat("subdir"), disk_.Stat("subdir/."));
EXPECT_EQ(disk_.Stat("subdir"), disk_.Stat("subdir/subsubdir/.."));
EXPECT_EQ(disk_.Stat("subdir/subsubdir"), disk_.Stat("subdir/subsubdir/."));
}

#ifdef _WIN32
TEST_F(DiskInterfaceTest, StatCache) {
disk_.AllowStatCache(true);

ASSERT_TRUE(Touch("file1"));
ASSERT_TRUE(Touch("fiLE2"));
ASSERT_TRUE(disk_.MakeDir("subdir"));
ASSERT_TRUE(disk_.MakeDir("subdir/subsubdir"));
ASSERT_TRUE(Touch("subdir\\subfile1"));
ASSERT_TRUE(Touch("subdir\\SUBFILE2"));
ASSERT_TRUE(Touch("subdir\\SUBFILE3"));
Expand All @@ -93,6 +106,14 @@ TEST_F(DiskInterfaceTest, StatCache) {
EXPECT_GT(disk_.Stat("subdir/subfile2"), 1);
EXPECT_GT(disk_.Stat("sUbdir\\suBFile1"), 1);

EXPECT_GT(disk_.Stat("."), 1);
EXPECT_GT(disk_.Stat("subdir"), 1);
EXPECT_GT(disk_.Stat("subdir/subsubdir"), 1);

EXPECT_EQ(disk_.Stat("subdir"), disk_.Stat("subdir/."));
EXPECT_EQ(disk_.Stat("subdir"), disk_.Stat("subdir/subsubdir/.."));
EXPECT_EQ(disk_.Stat("subdir/subsubdir"), disk_.Stat("subdir/subsubdir/."));

// Test error cases.
disk_.quiet_ = true;
string bad_path("cc:\\foo");
Expand Down
2 changes: 1 addition & 1 deletion src/version.cc
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@

#include "util.h"

const char* kNinjaVersion = "1.5.0";
const char* kNinjaVersion = "1.5.1";

void ParseVersion(const string& version, int* major, int* minor) {
size_t end = version.find('.');
Expand Down

0 comments on commit 85e13c1

Please sign in to comment.