Skip to content

Commit 8ce6f87

Browse files
AlexDenisovAlexDenisov
authored and
AlexDenisov
committed
Update some strings
1 parent b78f3dd commit 8ce6f87

File tree

5 files changed

+31
-11
lines changed

5 files changed

+31
-11
lines changed

CMakeLists.txt

+2-1
Original file line numberDiff line numberDiff line change
@@ -25,8 +25,9 @@ endif()
2525

2626
set (PROJECT_VERSION ${MULL_VERSION})
2727

28-
set (PROJECT_DESCRIPTION "LLVM-based mutation testing")
28+
set (PROJECT_DESCRIPTION "Practical mutation testing for C and C++")
2929
set (PROJECT_HOMEPAGE_URL "https://github.com/mull-project/mull")
30+
set (PROJECT_DOCS_URL "https://mull.readthedocs.io")
3031

3132
include(${CMAKE_CURRENT_LIST_DIR}/cmake/properties.cmake)
3233
include(${CMAKE_CURRENT_LIST_DIR}/cmake/fixtures.cmake)

docs/conf.py

+2-1
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,7 @@
1515
# sys.path.insert(0, os.path.abspath('.'))
1616

1717
import re
18+
import datetime
1819
import guzzle_sphinx_theme
1920

2021
# -- Project information -----------------------------------------------------
@@ -27,7 +28,7 @@ def project_version():
2728
return m.group(1)
2829

2930
project = 'Mull'
30-
copyright = '2019, Mull Project'
31+
copyright = '2016-' + str(datetime.datetime.now().year) + ', Mull Project'
3132
author = 'Alex Denisov <[email protected]>, Stanislav Pankevich <[email protected]>'
3233

3334
version = project_version()

include/mull/Version.h

+1
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,7 @@ const char *mullVersionString();
1010
const char *mullCommitString();
1111
const char *mullDescriptionString();
1212
const char *mullHomepageString();
13+
const char *mullDocsPageString();
1314
const char *mullBuildDateString();
1415

1516
const char *llvmVersionString();

lib/Version.cpp

+23-7
Original file line numberDiff line numberDiff line change
@@ -4,17 +4,33 @@
44

55
namespace mull {
66

7-
const char *mullVersionString() { return "@PROJECT_VERSION@"; }
8-
const char *mullCommitString() { return "@GIT_COMMIT@"; }
9-
const char *mullBuildDateString() { return "@BUILD_DATE@"; }
10-
const char *mullDescriptionString() { return "@PROJECT_DESCRIPTION@"; }
11-
const char *mullHomepageString() { return "@PROJECT_HOMEPAGE_URL@"; }
7+
const char *mullVersionString() {
8+
return "@PROJECT_VERSION@";
9+
}
10+
const char *mullCommitString() {
11+
return "@GIT_COMMIT@";
12+
}
13+
const char *mullBuildDateString() {
14+
return "@BUILD_DATE@";
15+
}
16+
const char *mullDescriptionString() {
17+
return "@PROJECT_DESCRIPTION@";
18+
}
19+
const char *mullHomepageString() {
20+
return "@PROJECT_HOMEPAGE_URL@";
21+
}
22+
const char *mullDocsPageString() {
23+
return "@PROJECT_DOCS_URL@";
24+
}
1225

13-
const char *llvmVersionString() { return "@LLVM_VERSION@"; }
26+
const char *llvmVersionString() {
27+
return "@LLVM_VERSION@";
28+
}
1429

1530
void printVersionInformation(llvm::raw_ostream &out) {
1631
out << "Mull: " << mullDescriptionString() << "\n";
17-
out << mullHomepageString() << "\n";
32+
out << "Home: " << mullHomepageString() << "\n";
33+
out << "Docs: " << mullDocsPageString() << "\n";
1834
out << "Version: " << mullVersionString() << "\n";
1935
out << "Commit: " << mullCommitString() << "\n";
2036
out << "Date: " << mullBuildDateString() << "\n";

tests-lit/tests/tutorials/hello-world/step-1-version/sample.cpp

+3-2
Original file line numberDiff line numberDiff line change
@@ -2,8 +2,9 @@
22
/**
33
RUN: %mull_cxx -version 2>&1 | %filecheck %s --dump-input=fail --strict-whitespace --match-full-lines
44
RUN: %mull_runner -version 2>&1 | %filecheck %s --dump-input=fail --strict-whitespace --match-full-lines
5-
CHECK:Mull: LLVM-based mutation testing
6-
CHECK:https://github.com/mull-project/mull
5+
CHECK:Mull: Practical mutation testing for C and C++
6+
CHECK:Home: https://github.com/mull-project/mull
7+
CHECK:Docs: https://mull.readthedocs.io
78
CHECK:{{^Version: \d+\.\d+.\d+(-pr[0-9]+|-trunk[0-9]+)?$}}
89
CHECK:{{^Commit: [a-h0-9]+$}}
910
CHECK:{{^Date: .*$}}

0 commit comments

Comments
 (0)