File: run-test

package info (click to toggle)
patchutils 0.4.2-1
  • links: PTS
  • area: main
  • in suites: bookworm, bullseye, forky, sid, trixie
  • size: 1,248 kB
  • sloc: ansic: 6,181; sh: 6,143; xml: 2,750; perl: 409; makefile: 248; python: 23
file content (37 lines) | stat: -rwxr-xr-x 755 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
#!/bin/sh

# This is an interdiff(1) testcase.
# Deal with git format-patch output more intelligently.
# From: https://bugzilla.redhat.com/show_bug.cgi?id=1211062

. ${top_srcdir-.}/tests/common.sh

cat <<"EOF" > git-output
new file mode 100644
index 0000000..f0c06ab
--- /dev/null
+++ b/elf/tst-audit11mod1.c
@@ -0,0 +1,6 @@
+extern int f2 (void);
+int
+f1 (void)
+{
+  return f2 ();
+}
diff --git a/elf/tst-audit11mod2.c b/elf/tst-audit11mod2.c
new file mode 100644
index 0000000..cd3c9b1
--- /dev/null
+++ b/elf/tst-audit11mod2.c
@@ -0,0 +1,5 @@
+int
+f2 (void)
+{
+  return 42;
+}
EOF

${INTERDIFF} git-output git-output 2>errors >index || { cat errors; exit 1; }
[ -s errors ] && { cat errors; exit 1; }
[ -s index ] && { cat index; exit 1; }
exit 0