summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTom Hacohen <tom@stosb.com>2015-09-22 16:01:18 +0100
committerTom Hacohen <tom@stosb.com>2015-09-22 16:01:18 +0100
commit29cb2c77b7179136bc0e8d8a045f30885b6ced1e (patch)
tree6e7930e9ce23284b2850f3c5195676562cf0df3d
parentd6a34c008b7fb9a5b3fb714ef4464df7d763f197 (diff)
Added scripts to easily generate and compare dumps.
-rw-r--r--README6
-rwxr-xr-xcmpdump.sh12
-rwxr-xr-xgendump.sh11
3 files changed, 26 insertions, 3 deletions
diff --git a/README b/README
index 1727dc3..a103d4c 100644
--- a/README
+++ b/README
@@ -1,6 +1,6 @@
1Configs and dumps for http://ispras.linuxbase.org/index.php/ABI_compliance_checker 1Configs and dumps for http://ispras.linuxbase.org/index.php/ABI_compliance_checker
2 2
3Generation example: 3Generation example:
41. Generate the dump for the latest version: abi-compliance-checker -l elementary -dump elementary-1.10.0.xml 41. Generate the dump for the latest version: ./gendump.sh elementary 1.10.0
52. Generate the report: abi-compliance-checker -l elementary -old abi_dumps/elementary/elementary_1.9.4.abi.tar.gz -new abi_dumps/elementary/elementary_1.10.0.abi.tar.gz 52. Generate the report: ./cmpdump.sh elementary 1.9.4 1.10.0
6 Where abi_dumps/elementary/elementary_1.9.4.abi.tar.gz is a previously created dump for the old release we'd like to compare to. 6 Assuming abi_dumps/elementary/elementary_1.9.4.abi.tar.gz and one for 1.10.0 exist.
diff --git a/cmpdump.sh b/cmpdump.sh
new file mode 100755
index 0000000..9e3b6f8
--- /dev/null
+++ b/cmpdump.sh
@@ -0,0 +1,12 @@
1#!/bin/bash
2
3if [ "$#" -ne 3 ]; then
4 echo "Usage: $0 <library> <old version> <new version>"
5 exit 1
6fi
7
8libname="$1"
9liboldver="$2"
10libnewver="$3"
11
12abi-compliance-checker -l "${libname}" -old "abi_dumps/${libname}/${libname}_${liboldver}.abi.tar.gz" -new "abi_dumps/${libname}/${libname}_${libnewver}.abi.tar.gz"
diff --git a/gendump.sh b/gendump.sh
new file mode 100755
index 0000000..b83852f
--- /dev/null
+++ b/gendump.sh
@@ -0,0 +1,11 @@
1#!/bin/bash
2
3if [ "$#" -ne 2 ]; then
4 echo "Usage: $0 <library> <version>"
5 exit 1
6fi
7
8libname="$1"
9libver="$2"
10
11abi-compliance-checker -l "${libname}" -dump "${libname}-${libver}.xml"