Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
P
Postgres FD Implementation
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Abuhujair Javed
Postgres FD Implementation
Commits
d45cfb4b
Commit
d45cfb4b
authored
Nov 13, 2002
by
Tom Lane
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Use cat instead of echo or awk, to avoid portability problems with backslashes.
parent
63e97345
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
11 additions
and
5 deletions
+11
-5
src/test/regress/pg_regress.sh
src/test/regress/pg_regress.sh
+11
-5
No files found.
src/test/regress/pg_regress.sh
View file @
d45cfb4b
#! /bin/sh
#! /bin/sh
# $Header: /cvsroot/pgsql/src/test/regress/Attic/pg_regress.sh,v 1.2
8 2002/10/19 01:35:43 momjian
Exp $
# $Header: /cvsroot/pgsql/src/test/regress/Attic/pg_regress.sh,v 1.2
9 2002/11/13 16:40:23 tgl
Exp $
me
=
`
basename
$0
`
me
=
`
basename
$0
`
:
${
TMPDIR
=/tmp
}
:
${
TMPDIR
=/tmp
}
...
@@ -545,16 +545,22 @@ do
...
@@ -545,16 +545,22 @@ do
formatted
=
`
echo
$1
|
awk
'{printf "%-20.20s", $1;}'
`
formatted
=
`
echo
$1
|
awk
'{printf "%-20.20s", $1;}'
`
$ECHO_N
"test
$formatted
...
$ECHO_C
"
$ECHO_N
"test
$formatted
...
$ECHO_C
"
# use awk to properly output backslashes
(
cat
<<
EOF
(
echo
"SET autocommit TO 'on';"
;
awk
'BEGIN {printf "\\set ECHO all\n"}'
;
cat
"
$inputdir
/sql/
$1
.sql"
)
|
SET autocommit TO 'on';
\\
set ECHO all
EOF
cat
"
$inputdir
/sql/
$1
.sql"
)
|
\
$PSQL
-d
"
$dbname
"
>
"
$outputdir
/results/
$1
.out"
2>&1
$PSQL
-d
"
$dbname
"
>
"
$outputdir
/results/
$1
.out"
2>&1
else
else
# Start a parallel group
# Start a parallel group
$ECHO_N
"parallel group (
$#
tests):
$ECHO_C
"
$ECHO_N
"parallel group (
$#
tests):
$ECHO_C
"
for
name
do
for
name
do
(
(
# use awk to properly output backslashes
(
cat
<<
EOF
(
echo
"SET autocommit TO 'on';"
;
awk
'BEGIN {printf "\\set ECHO all\n"}'
;
cat
"
$inputdir
/sql/
$name
.sql"
)
|
SET autocommit TO 'on';
\\
set ECHO all
EOF
cat
"
$inputdir
/sql/
$name
.sql"
)
|
\
$PSQL
-d
$dbname
>
"
$outputdir
/results/
$name
.out"
2>&1
$PSQL
-d
$dbname
>
"
$outputdir
/results/
$name
.out"
2>&1
$ECHO_N
"
$name$ECHO_C
"
$ECHO_N
"
$name$ECHO_C
"
)
&
)
&
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment