summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJohn Kacur <jkacur@redhat.com>2015-07-09 14:28:28 +0200
committerJohn Kacur <jkacur@redhat.com>2015-07-09 14:31:01 +0200
commitb6b5c594b2861f10a615cfa7b324523800eea267 (patch)
treed47f40e47cb980fc524ff7488fe71d0e633530c8
parenta8725114cdf0f27710a415a5bec95973c42bb4a6 (diff)
downloadrt-tests-b6b5c594b2861f10a615cfa7b324523800eea267.tar.gz
Change VERSION_STRING to VERSION
Adding _STRING doesn't add any extra meaning, but the extra length makes the Makefile more unreadable than is necessary, so shorten this up Signed-off-by: John Kacur <jkacur@redhat.com>
-rw-r--r--Makefile20
-rw-r--r--src/backfire/sendme.c2
-rw-r--r--src/cyclictest/cyclictest.c2
-rw-r--r--src/pi_tests/pi_stress.c2
-rw-r--r--src/pmqtest/pmqtest.c2
-rw-r--r--src/ptsematest/ptsematest.c2
-rw-r--r--src/signaltest/signaltest.c2
-rw-r--r--src/sigwaittest/sigwaittest.c2
-rw-r--r--src/svsematest/svsematest.c2
9 files changed, 18 insertions, 18 deletions
diff --git a/Makefile b/Makefile
index a48e759..1f7640b 100644
--- a/Makefile
+++ b/Makefile
@@ -1,4 +1,4 @@
-VERSION_STRING = 0.92
+VERSION = 0.92
HAVE_NPTL ?= yes
@@ -60,7 +60,7 @@ VPATH += src/lib
VPATH += src/hackbench
%.o: %.c
- $(CC) -D VERSION_STRING=$(VERSION_STRING) -c $< $(CFLAGS) $(CPPFLAGS)
+ $(CC) -D VERSION=$(VERSION) -c $< $(CFLAGS) $(CPPFLAGS)
# Pattern rule to generate dependency files from .c files
%.d: %.c
@@ -158,23 +158,23 @@ release: distclean changelog
mkdir -p releases
mkdir -p tmp/rt-tests
cp -r Makefile COPYING ChangeLog MAINTAINERS doc README.markdown src tmp/rt-tests
- rm -f rt-tests-$(VERSION_STRING).tar rt-tests-$(VERSION_STRING).tar.asc
- tar -C tmp -cf rt-tests-$(VERSION_STRING).tar rt-tests
- gpg2 --default-key clrkwllms@kernel.org --detach-sign --armor rt-tests-$(VERSION_STRING).tar
- gzip rt-tests-$(VERSION_STRING).tar
+ rm -f rt-tests-$(VERSION).tar rt-tests-$(VERSION).tar.asc
+ tar -C tmp -cf rt-tests-$(VERSION).tar rt-tests
+ gpg2 --default-key clrkwllms@kernel.org --detach-sign --armor rt-tests-$(VERSION).tar
+ gzip rt-tests-$(VERSION).tar
rm -f ChangeLog
- cp rt-tests-$(VERSION_STRING).tar.gz rt-tests-$(VERSION_STRING).tar.asc releases
+ cp rt-tests-$(VERSION).tar.gz rt-tests-$(VERSION).tar.asc releases
.PHONY: push
push: release
- scripts/do-git-push $(VERSION_STRING)
+ scripts/do-git-push $(VERSION)
.PHONY: pushtest
pushtest: release
- scripts/do-git-push --test $(VERSION_STRING)
+ scripts/do-git-push --test $(VERSION)
rt-tests.spec: Makefile rt-tests.spec-in
- sed s/__VERSION__/$(VERSION_STRING)/ <$@-in >$@
+ sed s/__VERSION__/$(VERSION)/ <$@-in >$@
ifeq ($(NUMA),1)
sed -i -e 's/__MAKE_NUMA__/NUMA=1/' $@
sed -i -e 's/__BUILDREQUIRES_NUMA__/numactl-devel/' $@
diff --git a/src/backfire/sendme.c b/src/backfire/sendme.c
index 8c169dd..c1854d9 100644
--- a/src/backfire/sendme.c
+++ b/src/backfire/sendme.c
@@ -108,7 +108,7 @@ void stop_tracing(void)
static void display_help(void)
{
- printf("sendme V %1.2f\n", VERSION_STRING);
+ printf("sendme V %1.2f\n", VERSION);
puts("Usage: sendme <options>");
puts("Function: send a signal from driver to userspace");
puts(
diff --git a/src/cyclictest/cyclictest.c b/src/cyclictest/cyclictest.c
index 34053c5..94e383f 100644
--- a/src/cyclictest/cyclictest.c
+++ b/src/cyclictest/cyclictest.c
@@ -1016,7 +1016,7 @@ static void display_help(int error)
strcpy(tracers, "none");
}
- printf("cyclictest V %1.2f\n", VERSION_STRING);
+ printf("cyclictest V %1.2f\n", VERSION);
printf("Usage:\n"
"cyclictest <options>\n\n"
#if LIBNUMA_API_VERSION >= 2
diff --git a/src/pi_tests/pi_stress.c b/src/pi_tests/pi_stress.c
index 1d1cc58..a4e6e3d 100644
--- a/src/pi_tests/pi_stress.c
+++ b/src/pi_tests/pi_stress.c
@@ -1362,7 +1362,7 @@ void process_command_line(int argc, char **argv)
debugging = 1;
break;
case 'V':
- printf("pi_stress v%1.2f ", VERSION_STRING);
+ printf("pi_stress v%1.2f ", VERSION);
exit(0);
case 'u':
uniprocessor = 1;
diff --git a/src/pmqtest/pmqtest.c b/src/pmqtest/pmqtest.c
index 336a8eb..75d5ee8 100644
--- a/src/pmqtest/pmqtest.c
+++ b/src/pmqtest/pmqtest.c
@@ -240,7 +240,7 @@ void *pmqthread(void *param)
static void display_help(void)
{
- printf("pmqtest V %1.2f\n", VERSION_STRING);
+ printf("pmqtest V %1.2f\n", VERSION);
puts("Usage: pmqtest <options>");
puts("Function: test POSIX message queue latency");
puts(
diff --git a/src/ptsematest/ptsematest.c b/src/ptsematest/ptsematest.c
index 7558a41..a31c745 100644
--- a/src/ptsematest/ptsematest.c
+++ b/src/ptsematest/ptsematest.c
@@ -162,7 +162,7 @@ void *semathread(void *param)
static void display_help(void)
{
- printf("ptsematest V %1.2f\n", VERSION_STRING);
+ printf("ptsematest V %1.2f\n", VERSION);
puts("Usage: ptsematest <options>");
puts("Function: test POSIX threads mutex latency");
puts(
diff --git a/src/signaltest/signaltest.c b/src/signaltest/signaltest.c
index 9454a26..61259a0 100644
--- a/src/signaltest/signaltest.c
+++ b/src/signaltest/signaltest.c
@@ -202,7 +202,7 @@ out:
/* Print usage information */
static void display_help(void)
{
- printf("signaltest V %1.2f\n", VERSION_STRING);
+ printf("signaltest V %1.2f\n", VERSION);
printf("Usage:\n"
"signaltest <options>\n\n"
"-b USEC --breaktrace=USEC send break trace command when latency > USEC\n"
diff --git a/src/sigwaittest/sigwaittest.c b/src/sigwaittest/sigwaittest.c
index 428f5ce..91fcdaa 100644
--- a/src/sigwaittest/sigwaittest.c
+++ b/src/sigwaittest/sigwaittest.c
@@ -210,7 +210,7 @@ void *semathread(void *param)
static void display_help(void)
{
- printf("sigwaittest V %1.2f\n", VERSION_STRING);
+ printf("sigwaittest V %1.2f\n", VERSION);
puts("Usage: sigwaittest <options>");
puts("Function: test sigwait() latency");
puts(
diff --git a/src/svsematest/svsematest.c b/src/svsematest/svsematest.c
index c1128cc..eeb8285 100644
--- a/src/svsematest/svsematest.c
+++ b/src/svsematest/svsematest.c
@@ -236,7 +236,7 @@ union semun {
static void display_help(void)
{
- printf("svsematest V %1.2f\n", VERSION_STRING);
+ printf("svsematest V %1.2f\n", VERSION);
puts("Usage: svsematest <options>");
puts("Function: test SYSV semaphore latency");
puts(