]> git.sur5r.net Git - bacula/bacula/commitdiff
Force DEVELOPER on during regression setup
authorKern Sibbald <kern@sibbald.com>
Fri, 21 Dec 2012 14:45:57 +0000 (15:45 +0100)
committerKern Sibbald <kern@sibbald.com>
Sat, 20 Apr 2013 12:51:03 +0000 (14:51 +0200)
regress/scripts/setup

index 7d66033e8ae82707a2e1012f8400a6bab6b96b2b..2f7a75d9ba6955b8e771a883939ca53e05ff2f50 100755 (executable)
@@ -40,6 +40,12 @@ scripts/create_sed
 echo "s%File = @sbindir@%File = @BUILD_DIR@%g" >tmp/t$$
 sed -f tmp/t$$ build/src/dird/bacula-dir.conf.in >tmp/o$$
 cp tmp/o$$ build/src/dird/bacula-dir.conf.in
+
+# Now turn on DEVELOPER for regression testing
+echo "s%^.*define DEVELOPER 1.*$%#define DEVELOPER 1%g" >tmp/t$$
+sed -f tmp/t$$ build/src/version.h >tmp/o$$
+cp tmp/o$$ build/src/version.h
+
 rm -f tmp/t$$ tmp/o$$
 # remove unneeded directories
 rm -rf build/txt build/src/testprogs